modules/java-base/balloon/jvm_balloon.cc.
But I have not tested it myself.
Can you give us your example?
Waldek
This is my example code.#include <stdio.h>#include <osv/trace.hh>TRACEPOINT(trace_hello, "i=%d", int);int main(){printf("Hello from C code\n");printf("enabled: %lx\n", trace_hello.enabled());for(int i =0; i<128;++i){trace_hello(i);}return 0;}It seems that TRACEPOINT use tracepoint_patch_sites sections which are linked to loader. (arch/x64/arch-trace.hh)However, application or modules are dynamically linked, so their tracepoint are not visible to GDB.
loader.ld's tracepoint_patch_sites:.tracepoint_patch_sites ALIGN(8) : AT(ADDR(.tracepoint_patch_sites) - OSV_KERNEL_VM_SHIFT) {__tracepoint_patch_sites_start = .;*(.tracepoint_patch_sites)__tracepoint_patch_sites_end = .;} : text