Commit Graph

38 Commits

Author SHA1 Message Date
9eb32f4340 Protect against NULL sym string. 2011-12-20 21:52:35 -05:00
d1f73304eb tracker: Fix the map look up
A few commits ago, an attempt to speed the map look up was done.
Unfortunatly, it was missing the case where you actually hit the speed
up (once the map is the first element of the array, you never return
it).

So, make sure that if i is 0, you return the first element of array,
while still doing the array reordering is i > 0.
2011-07-15 12:30:48 -04:00
e14788c87e tracker: Silence a debug message
The same way than the other ones, with #if 0.
2011-01-27 17:06:43 -05:00
f594fad6b0 Speed up map locating in tracker.c
Store the maps as a GArray rather than a GPtrArray to improve
locality; also move maps to front when they are looked up.
2011-01-27 17:00:02 -05:00
119b710ffc Fix use of uninitialized variable 2010-04-24 12:27:32 -04:00
539c3a8754 Make comm events reuse any existing process.
A comm event doesn't necessarily mean a new process was created. It
may just mean that an existing process changed its command line.
2010-04-24 10:27:27 -04:00
2d5cf4c93f Ignore fork events that are just new threads being spawned.
These would cause mysterious new processes to show up.
2010-03-10 06:58:22 -05:00
001d3b8e42 Update list of kernel symbols to take counter->event rename into account. 2010-02-20 15:04:35 -05:00
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