aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r--tools/perf/util/event.h19
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
42struct 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
42struct fork_event { 49struct 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);
598int perf_event__process_namespaces(struct perf_tool *tool,
599 union perf_event *event,
600 struct perf_sample *sample,
601 struct machine *machine);
590int perf_event__process_mmap(struct perf_tool *tool, 602int 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
651int 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
639int perf_event__synthesize_mmap_events(struct perf_tool *tool, 657int 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);
653size_t perf_event__fprintf_switch(union perf_event *event, FILE *fp); 671size_t perf_event__fprintf_switch(union perf_event *event, FILE *fp);
654size_t perf_event__fprintf_thread_map(union perf_event *event, FILE *fp); 672size_t perf_event__fprintf_thread_map(union perf_event *event, FILE *fp);
655size_t perf_event__fprintf_cpu_map(union perf_event *event, FILE *fp); 673size_t perf_event__fprintf_cpu_map(union perf_event *event, FILE *fp);
674size_t perf_event__fprintf_namespaces(union perf_event *event, FILE *fp);
656size_t perf_event__fprintf(union perf_event *event, FILE *fp); 675size_t perf_event__fprintf(union perf_event *event, FILE *fp);
657 676
658u64 kallsyms__get_function_start(const char *kallsyms_filename, 677u64 kallsyms__get_function_start(const char *kallsyms_filename,