diff options
Diffstat (limited to 'include/linux/perf_counter.h')
-rw-r--r-- | include/linux/perf_counter.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/include/linux/perf_counter.h b/include/linux/perf_counter.h index 5e970c7d3fd5..e604e6ef72dd 100644 --- a/include/linux/perf_counter.h +++ b/include/linux/perf_counter.h | |||
@@ -120,8 +120,9 @@ enum perf_counter_sample_format { | |||
120 | PERF_SAMPLE_ID = 1U << 6, | 120 | PERF_SAMPLE_ID = 1U << 6, |
121 | PERF_SAMPLE_CPU = 1U << 7, | 121 | PERF_SAMPLE_CPU = 1U << 7, |
122 | PERF_SAMPLE_PERIOD = 1U << 8, | 122 | PERF_SAMPLE_PERIOD = 1U << 8, |
123 | PERF_SAMPLE_STREAM_ID = 1U << 9, | ||
123 | 124 | ||
124 | PERF_SAMPLE_MAX = 1U << 9, /* non-ABI */ | 125 | PERF_SAMPLE_MAX = 1U << 10, /* non-ABI */ |
125 | }; | 126 | }; |
126 | 127 | ||
127 | /* | 128 | /* |
@@ -180,8 +181,9 @@ struct perf_counter_attr { | |||
180 | freq : 1, /* use freq, not period */ | 181 | freq : 1, /* use freq, not period */ |
181 | inherit_stat : 1, /* per task counts */ | 182 | inherit_stat : 1, /* per task counts */ |
182 | enable_on_exec : 1, /* next exec enables */ | 183 | enable_on_exec : 1, /* next exec enables */ |
184 | task : 1, /* trace fork/exit */ | ||
183 | 185 | ||
184 | __reserved_1 : 51; | 186 | __reserved_1 : 50; |
185 | 187 | ||
186 | __u32 wakeup_events; /* wakeup every n events */ | 188 | __u32 wakeup_events; /* wakeup every n events */ |
187 | __u32 __reserved_2; | 189 | __u32 __reserved_2; |
@@ -310,18 +312,18 @@ enum perf_event_type { | |||
310 | /* | 312 | /* |
311 | * struct { | 313 | * struct { |
312 | * struct perf_event_header header; | 314 | * struct perf_event_header header; |
313 | * u64 time; | 315 | * u32 pid, ppid; |
314 | * u64 id; | 316 | * u32 tid, ptid; |
315 | * u64 sample_period; | ||
316 | * }; | 317 | * }; |
317 | */ | 318 | */ |
318 | PERF_EVENT_PERIOD = 4, | 319 | PERF_EVENT_EXIT = 4, |
319 | 320 | ||
320 | /* | 321 | /* |
321 | * struct { | 322 | * struct { |
322 | * struct perf_event_header header; | 323 | * struct perf_event_header header; |
323 | * u64 time; | 324 | * u64 time; |
324 | * u64 id; | 325 | * u64 id; |
326 | * u64 stream_id; | ||
325 | * }; | 327 | * }; |
326 | */ | 328 | */ |
327 | PERF_EVENT_THROTTLE = 5, | 329 | PERF_EVENT_THROTTLE = 5, |
@@ -331,6 +333,7 @@ enum perf_event_type { | |||
331 | * struct { | 333 | * struct { |
332 | * struct perf_event_header header; | 334 | * struct perf_event_header header; |
333 | * u32 pid, ppid; | 335 | * u32 pid, ppid; |
336 | * u32 tid, ptid; | ||
334 | * }; | 337 | * }; |
335 | */ | 338 | */ |
336 | PERF_EVENT_FORK = 7, | 339 | PERF_EVENT_FORK = 7, |
@@ -356,6 +359,7 @@ enum perf_event_type { | |||
356 | * { u64 time; } && PERF_SAMPLE_TIME | 359 | * { u64 time; } && PERF_SAMPLE_TIME |
357 | * { u64 addr; } && PERF_SAMPLE_ADDR | 360 | * { u64 addr; } && PERF_SAMPLE_ADDR |
358 | * { u64 id; } && PERF_SAMPLE_ID | 361 | * { u64 id; } && PERF_SAMPLE_ID |
362 | * { u64 stream_id;} && PERF_SAMPLE_STREAM_ID | ||
359 | * { u32 cpu, res; } && PERF_SAMPLE_CPU | 363 | * { u32 cpu, res; } && PERF_SAMPLE_CPU |
360 | * { u64 period; } && PERF_SAMPLE_PERIOD | 364 | * { u64 period; } && PERF_SAMPLE_PERIOD |
361 | * | 365 | * |