Commit Graph

25 Commits

Author SHA1 Message Date
Emery Berger
4ceb44a831 Merge pull request #75 from petterreinholdtsen/pthread-create-init
Do not crash when pthread_create() is called before main()
2016-10-11 13:20:51 -04:00
Charlie Curtsinger
8388195f4b Somehow these changes were lost. Related to #53 and #58. 2016-08-15 11:15:03 -05:00
Petter Reinholdtsen
b6c844c6ec Add simple check target.
This will test the coz library and make sure it is linkable and
the resulting binary is runnable.

This test detects a problem with GCC 6 when combined with clang that
is missing with 4.9.
2016-08-15 14:14:08 +02:00
Petter Reinholdtsen
9d1a28447f Do not crash when pthread_create() is called before main()
Make sure to initialize coz if pthread_create() is called before main().
This happend with openalpr when a shared library initialized a thread
in the library initialization code.

Fixes issue #54
2016-08-14 22:08:30 +02:00
Petter Reinholdtsen
9c34d16c2f Port code to build using GCC.
GCC 6 complains with "sorry, unimplemented: non-trivial designated
initializers not supported/" for the original struct initializers.
Rewrite code to clear structs and assign individual members instead.

The designated initializers feature is only part of standard C, not
(at least not yet) part of standard C++.
2016-08-11 13:56:40 +02:00
Charlie Curtsinger
5cd402164b Updated licenses and copyright notices in source files. Fixes #51 2016-08-09 21:13:30 -05:00
Charlie Curtsinger
6701430b7e Use ifdef guards to support older libc <4.6.3. Fixes #16 2016-07-14 11:24:41 -05:00
Charlie Curtsinger
e33f58d531 Merge pull request #50 from petterreinholdtsen/install-target
Implement 'make install DESTDIR=target'.
2016-07-14 11:06:37 -05:00
Petter Reinholdtsen
781409b49e Implement 'make install DESTDIR=target'. 2016-07-11 05:08:50 +00:00
Petter Reinholdtsen
b86b9a6958 Include path of link when unable to read symlink. 2016-07-10 20:42:46 +02:00
Charlie Curtsinger
ac9f6c7420 Fixing race condition in real.cpp. Fixes #29 2016-04-06 14:30:32 -05:00
Charlie Curtsinger
810c9eea96 Small bug broke fixed-line experiments 2016-03-21 13:30:54 -05:00
Michael McConville
6202fe7f39 Use ptrdiff_t for memory offset
The type of copy_from_ring_buffer's index argument was inconsistent
between the function's prototype and definition. Emery suggested using
ptrdiff_t rather than size_t, as index represents a memory offset rather
than a size.

We need to include cstddef for ptrdiff_t, so I added that as well.
2016-01-06 19:53:19 -05:00
Michael McConville
114f645b1f Sync types of copy_from_ring_buffer and its prototype
The prototype declares index as a size_t while the definition declares
it as a uint64_t. If I understand correctly, it's used a memory offset,
so size_t seems preferable.

This causes a build failure with Clang 3.4 on Ubuntu 14.04.3 LTS.
2016-01-06 15:23:17 -05:00
Emery Berger
665d323212 causal -> coz. 2015-10-26 10:09:27 -05:00
Charlie Curtsinger
95128f89f5 Restored end-to-end mode. That was simpler than expected. 2015-10-26 10:09:27 -05:00
Charlie Curtsinger
d4e57a8f5f Cleanup 2015-10-12 21:41:31 -04:00
Charlie Curtsinger
336a423856 Switched from delay counts to delay times 2015-10-12 21:10:19 -04:00
Charlie Curtsinger
1f0eba173a Dropped sample-only option because there was no way to process the results. 2015-10-11 21:59:01 -04:00
Charlie Curtsinger
841a22bfdf Whoops, subtracting in the wrong order. Changed log output slightly to match new plotting code. 2015-10-11 20:40:49 -05:00
Charlie Curtsinger
8424a76693 Naming consistency 2015-10-11 21:19:32 -04:00
Charlie Curtsinger
b4cee6d397 Cleaned up progress points for throughput and latency. Named progress point support. 2015-10-11 21:12:05 -04:00
emeryberger
44f6e90764 Changed to fix inode overflow. 2015-10-09 22:03:48 -04:00
Charlie Curtsinger
2039e628fd Dropped dependence on hw_breakpoint.h. This should resolve #16. 2015-10-06 12:22:50 -04:00
Charlie Curtsinger
80a200c52d Cleaned up and reorganized build 2015-04-08 17:31:18 -04:00