Lines Matching refs:perf_event
8 #include <linux/perf_event.h>
366 jsonw_bool_field(wtr, "retprobe", info->perf_event.type == BPF_PERF_EVENT_KRETPROBE);
367 jsonw_uint_field(wtr, "addr", info->perf_event.kprobe.addr);
369 u64_to_ptr(info->perf_event.kprobe.func_name));
370 jsonw_uint_field(wtr, "offset", info->perf_event.kprobe.offset);
371 jsonw_uint_field(wtr, "missed", info->perf_event.kprobe.missed);
372 jsonw_uint_field(wtr, "cookie", info->perf_event.kprobe.cookie);
378 jsonw_bool_field(wtr, "retprobe", info->perf_event.type == BPF_PERF_EVENT_URETPROBE);
380 u64_to_ptr(info->perf_event.uprobe.file_name));
381 jsonw_uint_field(wtr, "offset", info->perf_event.uprobe.offset);
382 jsonw_uint_field(wtr, "cookie", info->perf_event.uprobe.cookie);
389 u64_to_ptr(info->perf_event.tracepoint.tp_name));
390 jsonw_uint_field(wtr, "cookie", info->perf_event.tracepoint.cookie);
451 __u64 config = info->perf_event.event.config;
452 __u32 type = info->perf_event.event.type;
467 jsonw_uint_field(wtr, "cookie", info->perf_event.event.cookie);
547 switch (info->perf_event.type) {
791 buf = u64_to_ptr(info->perf_event.kprobe.func_name);
792 if (buf[0] == '\0' && !info->perf_event.kprobe.addr)
795 if (info->perf_event.type == BPF_PERF_EVENT_KRETPROBE)
799 if (info->perf_event.kprobe.addr)
800 printf("%llx ", info->perf_event.kprobe.addr);
802 if (info->perf_event.kprobe.offset)
803 printf("+%#x", info->perf_event.kprobe.offset);
804 if (info->perf_event.kprobe.missed)
805 printf(" missed %llu", info->perf_event.kprobe.missed);
806 if (info->perf_event.kprobe.cookie)
807 printf(" cookie %llu", info->perf_event.kprobe.cookie);
815 buf = u64_to_ptr(info->perf_event.uprobe.file_name);
819 if (info->perf_event.type == BPF_PERF_EVENT_URETPROBE)
823 printf("%s+%#x ", buf, info->perf_event.uprobe.offset);
824 if (info->perf_event.uprobe.cookie)
825 printf("cookie %llu ", info->perf_event.uprobe.cookie);
832 buf = u64_to_ptr(info->perf_event.tracepoint.tp_name);
837 if (info->perf_event.tracepoint.cookie)
838 printf("cookie %llu ", info->perf_event.tracepoint.cookie);
843 __u64 config = info->perf_event.event.config;
844 __u32 type = info->perf_event.event.type;
860 if (info->perf_event.event.cookie)
861 printf("cookie %llu ", info->perf_event.event.cookie);
938 switch (info->perf_event.type) {
1063 switch (info.perf_event.type) {
1065 if (!info.perf_event.tracepoint.tp_name) {
1066 info.perf_event.tracepoint.tp_name = ptr_to_u64(&buf);
1067 info.perf_event.tracepoint.name_len = sizeof(buf);
1073 if (!info.perf_event.kprobe.func_name) {
1074 info.perf_event.kprobe.func_name = ptr_to_u64(&buf);
1075 info.perf_event.kprobe.name_len = sizeof(buf);
1081 if (!info.perf_event.uprobe.file_name) {
1082 info.perf_event.uprobe.file_name = ptr_to_u64(&buf);
1083 info.perf_event.uprobe.name_len = sizeof(buf);