iovisor / ply

Dynamic Tracing in Linux
GNU General Public License v2.0
969 stars 90 forks source link

tracepoint argument handling needs to be updated for newer kernels #93

Open rganesan opened 2 weeks ago

rganesan commented 2 weeks ago

Recent kernels provide easier access to tracepoint char strings, instead of the __data_loc indirection. ply needs to be updated to handle char * fields directly instead of the roundabout dyn mechanism.

rganesan commented 2 weeks ago

"ply 'tracepoint:syscalls/sys_enter_openat { printf("%v(%v): %s\n", comm, uid, str(data->filename)); }'" works as recommended by ismhong's comment on issue 87 (https://github.com/iovisor/ply/issues/87#issuecomment-1578144963)