diff options
Diffstat (limited to 'tools/perf/util/event.h')
| -rw-r--r-- | tools/perf/util/event.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index c735c53a26f8..e1d8166ebbd5 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h | |||
| @@ -39,6 +39,13 @@ struct comm_event { | |||
| 39 | char comm[16]; | 39 | char comm[16]; |
| 40 | }; | 40 | }; |
| 41 | 41 | ||
| 42 | struct namespaces_event { | ||
| 43 | struct perf_event_header header; | ||
| 44 | u32 pid, tid; | ||
| 45 | u64 nr_namespaces; | ||
| 46 | struct perf_ns_link_info link_info[]; | ||
| 47 | }; | ||
| 48 | |||
| 42 | struct fork_event { | 49 | struct fork_event { |
| 43 | struct perf_event_header header; | 50 | struct perf_event_header header; |
| 44 | u32 pid, ppid; | 51 | u32 pid, ppid; |
| @@ -485,6 +492,7 @@ union perf_event { | |||
| 485 | struct mmap_event mmap; | 492 | struct mmap_event mmap; |
| 486 | struct mmap2_event mmap2; | 493 | struct mmap2_event mmap2; |
| 487 | struct comm_event comm; | 494 | struct comm_event comm; |
| 495 | struct namespaces_event namespaces; | ||
| 488 | struct fork_event fork; | 496 | struct fork_event fork; |
| 489 | struct lost_event lost; | 497 | struct lost_event lost; |
| 490 | struct lost_samples_event lost_samples; | 498 | struct lost_samples_event lost_samples; |
| @@ -587,6 +595,10 @@ int perf_event__process_switch(struct perf_tool *tool, | |||
| 587 | union perf_event *event, | 595 | union perf_event *event, |
| 588 | struct perf_sample *sample, | 596 | struct perf_sample *sample, |
| 589 | struct machine *machine); | 597 | struct machine *machine); |
| 598 | int perf_event__process_namespaces(struct perf_tool *tool, | ||
| 599 | union perf_event *event, | ||
| 600 | struct perf_sample *sample, | ||
| 601 | struct machine *machine); | ||
| 590 | int perf_event__process_mmap(struct perf_tool *tool, | 602 | int perf_event__process_mmap(struct perf_tool *tool, |
| 591 | union perf_event *event, | 603 | union perf_event *event, |
| 592 | struct perf_sample *sample, | 604 | struct perf_sample *sample, |
| @@ -636,6 +648,12 @@ pid_t perf_event__synthesize_comm(struct perf_tool *tool, | |||
| 636 | perf_event__handler_t process, | 648 | perf_event__handler_t process, |
| 637 | struct machine *machine); | 649 | struct machine *machine); |
| 638 | 650 | ||
| 651 | int perf_event__synthesize_namespaces(struct perf_tool *tool, | ||
| 652 | union perf_event *event, | ||
| 653 | pid_t pid, pid_t tgid, | ||
| 654 | perf_event__handler_t process, | ||
| 655 | struct machine *machine); | ||
| 656 | |||
| 639 | int perf_event__synthesize_mmap_events(struct perf_tool *tool, | 657 | int perf_event__synthesize_mmap_events(struct perf_tool *tool, |
| 640 | union perf_event *event, | 658 | union perf_event *event, |
| 641 | pid_t pid, pid_t tgid, | 659 | pid_t pid, pid_t tgid, |
| @@ -653,6 +671,7 @@ size_t perf_event__fprintf_itrace_start(union perf_event *event, FILE *fp); | |||
| 653 | size_t perf_event__fprintf_switch(union perf_event *event, FILE *fp); | 671 | size_t perf_event__fprintf_switch(union perf_event *event, FILE *fp); |
| 654 | size_t perf_event__fprintf_thread_map(union perf_event *event, FILE *fp); | 672 | size_t perf_event__fprintf_thread_map(union perf_event *event, FILE *fp); |
| 655 | size_t perf_event__fprintf_cpu_map(union perf_event *event, FILE *fp); | 673 | size_t perf_event__fprintf_cpu_map(union perf_event *event, FILE *fp); |
| 674 | size_t perf_event__fprintf_namespaces(union perf_event *event, FILE *fp); | ||
| 656 | size_t perf_event__fprintf(union perf_event *event, FILE *fp); | 675 | size_t perf_event__fprintf(union perf_event *event, FILE *fp); |
| 657 | 676 | ||
| 658 | u64 kallsyms__get_function_start(const char *kallsyms_filename, | 677 | u64 kallsyms__get_function_start(const char *kallsyms_filename, |
