Richard Brooksby
fd8a2cce0d
Adding more events corresponding to diagnostics.
...
Copied from Perforce
Change: 179141
ServerID: perforce.ravenbrook.com
2012-08-31 19:33:45 +01:00
Richard Brooksby
28c9bb13f3
Cool varieties now log events on the critical path too, whereas hot varieties only log elsewhere.
...
Copied from Perforce
Change: 179140
ServerID: perforce.ravenbrook.com
2012-08-31 17:26:48 +01:00
Richard Brooksby
d2eeaef394
Fixing event reader to use sizes read from log, not (wrong) assumptions about the layout of events.
...
Copied from Perforce
Change: 179139
ServerID: perforce.ravenbrook.com
2012-08-31 17:25:53 +01:00
Richard Brooksby
24eb124aa4
Now there is no measurable performance penalty for events, they're on in all varieties (except we).
...
Copied from Perforce
Change: 179137
ServerID: perforce.ravenbrook.com
2012-08-31 16:42:17 +01:00
Richard Brooksby
f8cad3754b
Writing events into separate buffers by kind.
...
Always recording events into buffers, but only writing them to the telemetry stream if they're enabled.
Copied from Perforce
Change: 179136
ServerID: perforce.ravenbrook.com
2012-08-31 16:09:07 +01:00
Richard Brooksby
767c9a231e
Avoid creating the telemetry output stream until there are events to log.
...
Copied from Perforce
Change: 179134
ServerID: perforce.ravenbrook.com
2012-08-31 15:37:29 +01:00
Richard Brooksby
05ff4da034
Adding an mps-style eventdescribe.
...
Removing deliberate assert and event debugging dump. Oops.
Copied from Perforce
Change: 179133
ServerID: perforce.ravenbrook.com
2012-08-31 15:14:09 +01:00
Richard Brooksby
09cf2f4f37
Writing event dumper to print recent events, and adding it to the default assertion handler.
...
NUL-terminating event strings to make them easier to print.
Copied from Perforce
Change: 179132
ServerID: perforce.ravenbrook.com
2012-08-31 14:12:23 +01:00
Richard Brooksby
477d5f3cc2
Recording events downwards from the top of the buffer so that they can be recovered by a backtrace.
...
Copied from Perforce
Change: 179131
ServerID: perforce.ravenbrook.com
2012-08-31 13:18:19 +01:00
Richard Brooksby
94e9227f38
Meaningful types on event functions.
...
Removing some cut-and-paste code.
Removing unnecessary and incorrect short-circuit macros when events are disabled.
Copied from Perforce
Change: 179126
ServerID: perforce.ravenbrook.com
2012-08-31 10:54:33 +01:00
Richard Brooksby
756742c46c
Adding consistency checks of the event definitions.
...
Tidying up comments and declaration order.
Copied from Perforce
Change: 179125
ServerID: perforce.ravenbrook.com
2012-08-31 10:33:46 +01:00
Richard Brooksby
f48c8cd039
Adding packed boolean event parameter type, partly to suppress warnings.
...
Copied from Perforce
Change: 179124
ServerID: perforce.ravenbrook.com
2012-08-31 05:17:20 +01:00
Richard Brooksby
9a8122b699
Eliminating old count and format columns from event definitions.
...
Copied from Perforce
Change: 179123
ServerID: perforce.ravenbrook.com
2012-08-31 04:38:42 +01:00
Richard Brooksby
a327f0cd7e
Expanded event parameters into separate macros annotated with parameter names, simplifying event definition macros.
...
Copied from Perforce
Change: 179122
ServerID: perforce.ravenbrook.com
2012-08-31 04:25:18 +01:00
Richard Brooksby
6ced7e36b8
Fixing further pedantic compilation issues on xci3gc.
...
Copied from Perforce
Change: 179057
ServerID: perforce.ravenbrook.com
2012-08-26 17:07:32 +01:00
Richard Brooksby
4311e93f88
Fixing compilation of event_clock on pedantic gcc, specifically xci3gc.
...
Copied from Perforce
Change: 179056
ServerID: perforce.ravenbrook.com
2012-08-26 16:44:17 +01:00
Richard Brooksby
d9322c5afb
Using fast clock to timestamp events, making event logging much quicker.
...
Copied from Perforce
Change: 179055
ServerID: perforce.ravenbrook.com
2012-08-26 15:31:40 +01:00
Richard Brooksby
0017b1b4a7
Moving event emitting macros from eventcom.h to event.h, as they aren't used except in the mps.
...
Tidying up the way event field addresses are fetched to do all the work during compilation and not emit scads of branches.
Copied from Perforce
Change: 179053
ServerID: perforce.ravenbrook.com
2012-08-26 14:43:35 +01:00
Richard Brooksby
8ee895e48d
Oops. missed file from changelist 179018.
...
Copied from Perforce
Change: 179020
ServerID: perforce.ravenbrook.com
2012-08-22 09:31:38 +01:00
Richard Brooksby
0de90204e0
Adding a size field to events so that a reader can skip unknown event codes (unimplemented).
...
Copied from Perforce
Change: 179019
ServerID: perforce.ravenbrook.com
2012-08-22 09:16:03 +01:00
Richard Brooksby
021e170720
Switching eventtypes (large hex constants) to codes (16-bit ids).
...
Copied from Perforce
Change: 179018
ServerID: perforce.ravenbrook.com
2012-08-22 09:03:25 +01:00
Richard Brooksby
deae9bd42b
Moving some common definitions to eventcom.h from event.h.
...
Fixing the types of EventCode etc. to use narrower types to compress things on 64-bit architectures.
Fixing some warnings.
Copied from Perforce
Change: 179015
ServerID: perforce.ravenbrook.com
2012-08-22 08:41:42 +01:00
Richard Brooksby
87a968330c
Tidying up table and making maximum event name length obvious.
...
Copied from Perforce
Change: 179014
ServerID: perforce.ravenbrook.com
2012-08-22 08:39:07 +01:00
Richard Brooksby
675205f23a
Removing unnecessary warning suppression for gcc on freebsd.
...
Copied from Perforce
Change: 179013
ServerID: perforce.ravenbrook.com
2012-08-22 08:03:05 +01:00
Richard Brooksby
c827b1323f
Subsuming eventgen.h into eventcom.h, now that it's no longer generated.
...
Copied from Perforce
Change: 179012
ServerID: perforce.ravenbrook.com
2012-08-22 07:53:24 +01:00
Richard Brooksby
ddcce429f4
Abolishing eventgen.pl. event structures are now expanded by the preprocessor.
...
Abolishing event formats. Each event now has its own structure.
Event parameters are now written directly into the event buffer, rather than being copied twice.
Copied from Perforce
Change: 179010
ServerID: perforce.ravenbrook.com
2012-08-21 22:48:11 +01:00
Richard Brooksby
a93b118df7
Replacing "relation" style event definition header with single higher-order macro that can be applied more flexibly.
...
Copied from Perforce
Change: 178997
ServerID: perforce.ravenbrook.com
2012-08-21 16:29:19 +01:00
Richard Brooksby
9e1e89cc6c
Removing no-longer-needed warning suppression.
...
Copied from Perforce
Change: 178941
ServerID: perforce.ravenbrook.com
2012-08-15 17:21:18 +01:00
Richard Brooksby
7050152d64
Removing no-longer-required warning suppression.
...
Copied from Perforce
Change: 178940
ServerID: perforce.ravenbrook.com
2012-08-15 17:04:55 +01:00
Richard Brooksby
198ea502b0
Removing no-longer-required warning supression.
...
Copied from Perforce
Change: 178939
ServerID: perforce.ravenbrook.com
2012-08-15 17:01:48 +01:00
Richard Brooksby
a43379ca54
Removing no-longer-needed warning suppression.
...
Copied from Perforce
Change: 178938
ServerID: perforce.ravenbrook.com
2012-08-15 17:00:58 +01:00
Richard Brooksby
3b469f5b21
Unifying code-identical protection implementations for linux.
...
Copied from Perforce
Change: 178937
ServerID: perforce.ravenbrook.com
2012-08-15 16:47:50 +01:00
Richard Brooksby
28ba81140b
Bringing mps.c definition up-to-date on freebsd i386.
...
Copied from Perforce
Change: 178936
ServerID: perforce.ravenbrook.com
2012-08-15 16:27:48 +01:00
Richard Brooksby
162f92cddd
Correcting misnamed i4 architecture to i3. this distinction was once slightly useful for optimisation, but no longer makes any sense.
...
Copied from Perforce
Change: 178935
ServerID: perforce.ravenbrook.com
2012-08-15 15:37:42 +01:00
Richard Brooksby
07381f2173
Removing obsolete m9 platform.
...
Removing obsolete Visual C setup script.
Copied from Perforce
Change: 178933
ServerID: perforce.ravenbrook.com
2012-08-15 15:10:27 +01:00
Richard Brooksby
f25180bcc9
Adding fri6gc (freebsd on amd64/x86_64) platform.
...
Unifying thfr.c with generalised thix.c for Posix threads.
Copied from Perforce
Change: 178928
ServerID: perforce.ravenbrook.com
2012-08-14 17:30:22 +01:00
Richard Brooksby
4640f3c9e1
Renaming thli.c to thix.c as it is now general to posix threads.
...
Copied from Perforce
Change: 178926
ServerID: perforce.ravenbrook.com
2012-08-14 17:10:48 +01:00
Richard Brooksby
8fae691bac
Moving linux-specific parts out of thli.c in order to unify with freebsd.
...
Copied from Perforce
Change: 178925
ServerID: perforce.ravenbrook.com
2012-08-14 17:05:11 +01:00
Richard Brooksby
7b40db17e9
Merging 64-bit linux port from branch/2012-07-26/linux-catchup
...
Copied from Perforce
Change: 178913
ServerID: perforce.ravenbrook.com
2012-08-13 13:53:20 +01:00
Richard Brooksby
424c9f9239
Removing references to obsolete platforms.
...
Copied from Perforce
Change: 178909
ServerID: perforce.ravenbrook.com
2012-08-12 23:29:49 +01:00
Richard Brooksby
81634e8cbb
Removing obsolete platforms:
...
LII3EG Linux on i386 with EGCS
LIPPGC Linux on POWER with GCC
S7PPMW Mac System 7 on PowerPC with Metrowerks Codewarrior
SOS8CX Solaris on SPARC 8 with cxref
SOS8GC Solaris on SPARC 8 with GCC
SOS8GP Solaris on SPARC 8 with GCC and gprof
SOS9SC Solaris on SPARC 9 with SunPro C
XCPPGC Mac OS X on PowerPC with GCC
Copied from Perforce
Change: 178908
ServerID: perforce.ravenbrook.com
2012-08-12 23:27:35 +01:00
Richard Brooksby
f1ed28cb37
Removing obsolete protso.c for solaris.
...
Copied from Perforce
Change: 178907
ServerID: perforce.ravenbrook.com
2012-08-12 23:03:32 +01:00
Richard Brooksby
1d0b04ae97
Fixing warnings revealed by xcode (clang).
...
Copied from Perforce
Change: 178898
ServerID: perforce.ravenbrook.com
2012-08-11 09:30:24 +01:00
Richard Brooksby
89173908d3
Adding linux and 64-bit windows builds to mps.c.
...
Copied from Perforce
Change: 178897
ServerID: perforce.ravenbrook.com
2012-08-11 09:27:19 +01:00
David Lovemore
d67ef40046
Deleted no longer used thlii4.c -- renamed to thli.c
...
Copied from Perforce
Change: 178877
ServerID: perforce.ravenbrook.com
2012-08-09 16:09:07 +01:00
David Lovemore
43c30eefdb
Made 64 bit linux port lii6gc. i've renamed thlii4.c to thli.c.
...
Copied from Perforce
Change: 178876
ServerID: perforce.ravenbrook.com
2012-08-09 16:05:08 +01:00
Richard Brooksby
0f4b6dc65d
Removed support for old or dead platforms: osf/1, irix, mac system 7, sunos, windows nt on alpha, windows nt on powerpc.
...
See <https://github.com/datafueled/memory-pool-system/pull/3 > for the origin of this change.
Copied from Perforce
Change: 178872
ServerID: perforce.ravenbrook.com
2012-08-08 19:02:57 +01:00
David Lovemore
aa3ba986f5
Correct addresses for registers in context.
...
Copied from Perforce
Change: 178846
ServerID: perforce.ravenbrook.com
2012-08-06 14:44:35 +01:00
Richard Brooksby
a667e4fbcf
Removed unused typedef. added some clarifications.
...
Copied from Perforce
Change: 178815
ServerID: perforce.ravenbrook.com
2012-08-02 13:04:46 +01:00
David Lovemore
025e16f239
Fix for unix stack scanner now that gcc sometimes omits frame pointers.
...
Copied from Perforce
Change: 178810
ServerID: perforce.ravenbrook.com
2012-08-01 20:45:29 +01:00