diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2009-09-12 01:52:47 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-19 05:42:10 -0400 |
commit | 393b2ad8c757ba3ccd2a99ca5bbcd6db4d3fa53d (patch) | |
tree | 8972e2e9647c814e71be74d37adb85b18e9c6732 /include/linux/perf_counter.h | |
parent | 929bf0d0156562ce631728b6fa53d68004d456d2 (diff) |
perf: Add a timestamp to fork events
perf timechart needs to know when a process forked, in order to be
able to visualize properly when tasks start.
This patch adds a time field to the event structure, and fills it
in appropriately.
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20090912130341.51ad2de2@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r-- | include/linux/perf_counter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index c7375f97aa19..bd341007c4fc 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -336,6 +336,7 @@ enum perf_event_type { | |||
336 | * struct perf_event_header header; | 336 | * struct perf_event_header header; |
337 | * u32 pid, ppid; | 337 | * u32 pid, ppid; |
338 | * u32 tid, ptid; | 338 | * u32 tid, ptid; |
339 | * u64 time; | ||
339 | * }; | 340 | * }; |
340 | */ | 341 | */ |
341 | PERF_EVENT_EXIT = 4, | 342 | PERF_EVENT_EXIT = 4, |
@@ -356,6 +357,7 @@ enum perf_event_type { | |||
356 | * struct perf_event_header header; | 357 | * struct perf_event_header header; |
357 | * u32 pid, ppid; | 358 | * u32 pid, ppid; |
358 | * u32 tid, ptid; | 359 | * u32 tid, ptid; |
360 | * { u64 time; } && PERF_SAMPLE_TIME | ||
359 | * }; | 361 | * }; |
360 | */ | 362 | */ |
361 | PERF_EVENT_FORK = 7, | 363 | PERF_EVENT_FORK = 7, |