Home
last modified time | relevance | path

Searched refs:mmap2 (Results 1 – 25 of 41) sorted by relevance

12

/linux/tools/perf/util/
H A Djitdump.c458 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 Dsynthetic-events.c461 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 Devent.c330 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 Dsession.c311 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 Dmachine.c1700 .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 Ddata-convert-bt.c935 __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 Dtool.h47 mmap2, member
H A Dtool.c244 tool->mmap2 = process_event_stub; in perf_tool__init()
H A Devsel.c170 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 Dperf_event_attr_fprintf.c309 PRINT_ATTRf(mmap2, p_unsigned); in perf_event_attr__fprintf()
H A Ddata-convert-json.c332 c.tool.mmap2 = perf_event__process_mmap2; in bt_convert__perf2json()
H A Devsel.h191 bool mmap2;
207 bool mmap2; global() member
/linux/tools/perf/bench/
H A Dinject-buildid.c182 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 Dsyscalls.c52 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 Dbuiltin-inject.c594 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 Dbuiltin-buildid-list.c104 build_id__mark_dso_hit_ops.mmap2 = perf_event__process_mmap2; in perf_session__list_build_ids()
H A Dbuiltin-mem.c279 mem->tool.mmap2 = perf_event__process_mmap2; in report_raw_events()
/linux/tools/perf/tests/attr/
H A Dtest-record-dummy-C0
H A Dsystem-wide-dummy
/linux/tools/perf/tests/shell/
H A Dpipe_test.sh123 test_inject_bids --mmap2-buildid-all
/linux/tools/perf/tests/
H A Dattr.c
H A Dperf-record.c255 mmap_filename = event->mmap2.filename; in test__PERF_RECORD()
/linux/tools/lib/perf/include/perf/
H A Devent.h487 struct perf_record_mmap2 mmap2; member
/linux/tools/perf/Documentation/
H A Dperf-inject.txt103 Currently only mmap, mmap2, comm, task, context_switch, ksymbol,
/linux/tools/include/uapi/linux/
H A Dperf_event.h448 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.

12