Commit Graph

30 Commits

Author SHA1 Message Date
71f2cd3a64 Return error when the counter can't be opened. 2009-11-02 13:30:04 -05:00
1b64f1d924 Also filter out NMI stack 2009-10-29 07:40:51 -04:00
ae77f078d3 Skip symbols from IRQ stack.
There is a bug in the kernel where it includes the stack of the IRQ
that generated the event, so that the stack ends up looking like this:

	[ip] [irq stack] [real stack].

As a temporary workaround, this patch filters out the irq stack
symbols.
2009-10-29 07:31:31 -04:00
ecb15e0b7f Show the "-- kernel --" marker in kernel threads
The innermost context is normally user mode, so we don't show. For
kernel threads, the innermost context is the kernel, so don't filter
it out.
2009-10-21 12:28:43 -04:00
2c4422c46e Make the events more compact by packing type and pid into one uint32_t. 2009-10-21 08:57:08 -04:00
8df1145c84 Comment out some debugging spam; update copyright 2009-09-25 11:24:40 -04:00
a33678df26 Update TODO 2009-09-14 04:59:28 -04:00
08fc4f64a9 Read data before stopping collector.
Stop debug spew.
2009-09-11 04:07:11 -04:00
09ffea0d57 TODO, plus a number of other fixes 2009-09-08 19:35:03 -04:00
75c5a39c72 Avoid mallocs in process_sample() 2009-09-08 03:24:46 -04:00
6dabcefec5 Better handling of events without stacktraces 2009-09-08 03:03:38 -04:00
e277712037 Initial support for fork/exit events 2009-09-08 03:03:24 -04:00
6e1e43ff3b Make sure parser->symbols is non-NULL after read_table()
Otherwise, we would read the file over and over.

Also get the process name from /proc/pid/cmdline, falling back to
/proc/pid/status if there is nothing there.
2009-09-08 03:03:23 -04:00
985db99fed Destroy state object after use, don't keep bin files in map objects 2009-09-08 03:03:19 -04:00
0ceaff7a66 Move bin file cache to state object 2009-09-08 03:03:18 -04:00
b8364e2847 Don't compile process.[ch] anymore 2009-09-08 03:03:14 -04:00
8dd28de710 Update TODO 2009-09-08 03:03:13 -04:00
43e419f774 Simpler message formatting 2009-09-08 03:03:11 -04:00
c3288467bc More informative errors when symbols can't be found 2009-09-08 03:03:10 -04:00
29e270cb8d Various debug spew 2009-09-08 03:03:08 -04:00
d34a1cf460 Add symbol resolution to tracker 2009-09-08 03:03:07 -04:00
cdc7ce7e12 Add process and map tracking to tracker 2009-09-08 03:03:06 -04:00
5072c23f42 Add events to tracker instead of stash 2009-09-08 03:03:04 -04:00
b86b04910f Fake new_process and new_map events when a tracker is created 2009-09-08 03:03:03 -04:00
139acd0287 Hook up dead period, and only call back after a complete batch of samples 2009-09-08 03:03:01 -04:00
7b75070125 Implement tracker_add_sample() 2009-09-08 03:03:00 -04:00
e1cfbc4c53 Add code to append map and process events 2009-09-08 03:02:55 -04:00
4ef449b6db Add array resizing code 2009-09-08 03:02:53 -04:00
978ecd5d75 Create data types 2009-09-08 03:02:52 -04:00
b7d7998eba Add tracker.[ch] 2009-09-08 03:02:50 -04:00