Arnaldo Carvalho de Melo <[email protected]> writes: > > Humm, I wonder if we could try to attach a 'perf probe' (uprobes) to > some JVM method that is known to invalidate JITted code -> symtab > mappings so that we would use it as a PERF_RECORD_MMAP equivalent... > I.e. we would know that that map overlaps the previous one and that the > symtab is a new one for that addr range, etc, just like we do for > executable mmaps coming from the kernel (PERF_RECORD_MMAP).
JAVA already has a API to get all these information. That is what oprofile, Vtune and Brendan's agent uses. It just needs a better interface from the agent to perf, to pass all needed information, including symbols, line numbers, executable code (for PT decoding and for showing diassembler), and ordering it by time so that no hacks are needed. BTW other JITs (LLVM, Mono, V8, ...) have similar interfaces. Longer term as the kernel gets more JITed (eBPF etc.) it likely needs some kind of JIT interface too. -Andi -- [email protected] -- Speaking for myself only -- To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
