/linux/tools/perf/util/ |
H A D | jitdump.c | 458 filename = event->mmap2.filename; in jit_repipe_code_load() 490 event->mmap2.header.type = PERF_RECORD_MMAP2; in jit_repipe_code_load() 491 event->mmap2.header.misc = PERF_RECORD_MISC_USER; in jit_repipe_code_load() 492 event->mmap2.header.size = (sizeof(event->mmap2) - in jit_repipe_code_load() 493 (sizeof(event->mmap2.filename) - size) + idr_size); in jit_repipe_code_load() 495 event->mmap2.pgoff = GEN_ELF_TEXT_OFFSET; in jit_repipe_code_load() 496 event->mmap2.start = addr; in jit_repipe_code_load() 497 event->mmap2.len = usize ? ALIGN_8(csize) + usize : csize; in jit_repipe_code_load() 498 event->mmap2.pid = pid; in jit_repipe_code_load() 499 event->mmap2.tid = tid; in jit_repipe_code_load() [all …]
|
H A D | synthetic-events.c | 461 event->mmap2.filename[0] = '\0'; in perf_event__synthesize_mmap_events() 465 &event->mmap2.start, in perf_event__synthesize_mmap_events() 466 &event->mmap2.len, in perf_event__synthesize_mmap_events() 467 &event->mmap2.prot, in perf_event__synthesize_mmap_events() 468 &event->mmap2.flags, in perf_event__synthesize_mmap_events() 469 &event->mmap2.pgoff, in perf_event__synthesize_mmap_events() 470 &event->mmap2.maj, in perf_event__synthesize_mmap_events() 471 &event->mmap2.min, in perf_event__synthesize_mmap_events() 472 &event->mmap2.ino, in perf_event__synthesize_mmap_events() 473 sizeof(event->mmap2.filename), in perf_event__synthesize_mmap_events() [all …]
|
H A D | event.c | 330 build_id__init(&bid, event->mmap2.build_id, in perf_event__fprintf_mmap2() 331 event->mmap2.build_id_size); in perf_event__fprintf_mmap2() 336 event->mmap2.pid, event->mmap2.tid, event->mmap2.start, in perf_event__fprintf_mmap2() 337 event->mmap2.len, event->mmap2.pgoff, sbuild_id, in perf_event__fprintf_mmap2() 338 (event->mmap2.prot & PROT_READ) ? 'r' : '-', in perf_event__fprintf_mmap2() 339 (event->mmap2.prot & PROT_WRITE) ? 'w' : '-', in perf_event__fprintf_mmap2() 340 (event->mmap2.prot & PROT_EXEC) ? 'x' : '-', in perf_event__fprintf_mmap2() 341 (event->mmap2.flags & MAP_SHARED) ? 's' : 'p', in perf_event__fprintf_mmap2() 342 event->mmap2.filename); in perf_event__fprintf_mmap2() 346 event->mmap2.pid, event->mmap2.tid, event->mmap2.start, in perf_event__fprintf_mmap2() [all …]
|
H A D | session.c | 311 event->mmap2.pid = bswap_32(event->mmap2.pid); in perf_event__mmap2_swap() 312 event->mmap2.tid = bswap_32(event->mmap2.tid); in perf_event__mmap2_swap() 313 event->mmap2.start = bswap_64(event->mmap2.start); in perf_event__mmap2_swap() 314 event->mmap2.len = bswap_64(event->mmap2.len); in perf_event__mmap2_swap() 315 event->mmap2.pgoff = bswap_64(event->mmap2 in perf_event__mmap2_swap() [all...] |
H A D | machine.c | 1700 .maj = event->mmap2.maj, in machine__process_mmap2_event() 1701 .min = event->mmap2.min, in machine__process_mmap2_event() 1702 .ino = event->mmap2.ino, in machine__process_mmap2_event() 1703 .ino_generation = event->mmap2.ino_generation, in machine__process_mmap2_event() 1713 build_id__init(bid, event->mmap2.build_id, event->mmap2.build_id_size); in machine__process_mmap2_event() 1719 .start = event->mmap2.start, in machine__process_mmap2_event() 1720 .end = event->mmap2.start + event->mmap2.len, in machine__process_mmap2_event() 1721 .pgoff = event->mmap2 in machine__process_mmap2_event() [all...] |
H A D | data-convert-bt.c | 935 __FUNC_PROCESS_NON_SAMPLE(mmap2, 936 __NON_SAMPLE_SET_FIELD(mmap2, u32, pid); 937 __NON_SAMPLE_SET_FIELD(mmap2, u32, tid); 938 __NON_SAMPLE_SET_FIELD(mmap2, u64_hex, start); 939 __NON_SAMPLE_SET_FIELD(mmap2, string, filename); 1287 __FUNC_ADD_NON_SAMPLE_EVENT_CLASS(mmap2, 1617 c.tool.mmap2 = perf_event__process_mmap2; in bt_convert__perf2ctf() 1632 c.tool.mmap2 = process_mmap2_event; in bt_convert__perf2ctf()
|
H A D | tool.h | 47 mmap2, member
|
H A D | tool.c | 244 tool->mmap2 = process_event_stub; in perf_tool__init()
|
H A D | evsel.c | 170 WRITE_ASS(mmap2, "d"); in __perf_evsel__calc_id_pos() 1367 attr->mmap2 = track && !perf_missing_features.mmap2; in evsel__config() 2060 if (perf_missing_features.mmap2) in __evsel__prepare_open() 2061 evsel->core.attr.mmap2 = 0; in __evsel__prepare_open() 2333 attr.mmap2 = 1; in evsel__open_cpu() 2336 perf_missing_features.mmap2 = true; in evsel__open_cpu() 2337 pr_debug2_peo("switching off mmap2\n"); in evsel__open_cpu() 2338 attr.mmap2 = 0; in evsel__open_cpu() 2388 if (evsel->core.attr.mmap2 in evsel__open_cpu() [all...] |
H A D | perf_event_attr_fprintf.c | 309 PRINT_ATTRf(mmap2, p_unsigned); in perf_event_attr__fprintf()
|
H A D | data-convert-json.c | 332 c.tool.mmap2 = perf_event__process_mmap2; in bt_convert__perf2json()
|
H A D | evsel.h | 191 bool mmap2; 207 bool mmap2; global() member
|
/linux/tools/perf/bench/ |
H A D | inject-buildid.c | 182 memset(&event, 0, min(len, sizeof(event.mmap2))); in synthesize_mmap() 188 event.mmap2.pid = data->pid; in synthesize_mmap() 189 event.mmap2.tid = data->pid; in synthesize_mmap() 190 event.mmap2.maj = MMAP_DEV_MAJOR; in synthesize_mmap() 191 event.mmap2.ino = dso->ino; in synthesize_mmap() 193 strcpy(event.mmap2.filename, dso->name); in synthesize_mmap() 195 event.mmap2.start = dso_map_addr(dso); in synthesize_mmap() 196 event.mmap2.len = 4096; in synthesize_mmap() 197 event.mmap2.prot = PROT_EXEC; in synthesize_mmap() 199 if (len > sizeof(event.mmap2)) { in synthesize_mmap() [all...] |
/linux/arch/powerpc/kernel/ |
H A D | syscalls.c | 52 SYSCALL_DEFINE6(mmap2, unsigned long, addr, size_t, len, in SYSCALL_DEFINE6() argument 60 COMPAT_SYSCALL_DEFINE6(mmap2, in COMPAT_SYSCALL_DEFINE6() argument
|
/linux/tools/perf/ |
H A D | builtin-inject.c | 594 id.maj = event->mmap2.maj; in perf_event__repipe_mmap2() 595 id.min = event->mmap2.min; in perf_event__repipe_mmap2() 596 id.ino = event->mmap2.ino; in perf_event__repipe_mmap2() 597 id.ino_generation = event->mmap2.ino_generation; in perf_event__repipe_mmap2() 603 event->mmap2.pid, event->mmap2.tid, in perf_event__repipe_mmap2() 604 event->mmap2.start, event->mmap2.len, event->mmap2.pgoff, in perf_event__repipe_mmap2() 605 event->mmap2.flags, event->mmap2.prot, in perf_event__repipe_mmap2() 606 event->mmap2.filename, dso_id, in perf_event__repipe_mmap2() 1420 gs->tool.mmap2 = guest_session__repipe; in guest_session__start() 2181 inject->tool.mmap2 = perf_event__repipe_mmap2; in __cmd_inject() [all …]
|
H A D | builtin-buildid-list.c | 104 build_id__mark_dso_hit_ops.mmap2 = perf_event__process_mmap2; in perf_session__list_build_ids()
|
H A D | builtin-mem.c | 279 mem->tool.mmap2 = perf_event__process_mmap2; in report_raw_events()
|
/linux/tools/perf/tests/attr/ |
H A D | test-record-dummy-C0 |
|
H A D | system-wide-dummy |
|
/linux/tools/perf/tests/shell/ |
H A D | pipe_test.sh | 123 test_inject_bids --mmap2-buildid-all
|
/linux/tools/perf/tests/ |
H A D | attr.c |
|
H A D | perf-record.c | 255 mmap_filename = event->mmap2.filename; in test__PERF_RECORD()
|
/linux/tools/lib/perf/include/perf/ |
H A D | event.h | 487 struct perf_record_mmap2 mmap2; member
|
/linux/tools/perf/Documentation/ |
H A D | perf-inject.txt | 103 Currently only mmap, mmap2, comm, task, context_switch, ksymbol,
|
/linux/tools/include/uapi/linux/ |
H A D | perf_event.h | 448 mmap2 : 1, /* include mmap with inode data */ member 459 build_id : 1, /* use build id in mmap2 events */ 814 * Indicates that mmap2 event carries build id data.
|