Closed zhaoyuxing18 closed 3 years ago
I want to trace kernel struct and derenference some elements and I've tried the following: cat test.ply
kprobe:tcp_set_state { printf("%v %v %v %v\n", pid, comm, str(((struct sock *)arg0)->sk_state), arg1); }
but there's an error:
It would be great if your example worked, alas you are trying to do multiple things that are currently not supported by ply:
I want to trace kernel struct and derenference some elements and I've tried the following: cat test.ply
!/sbin/ply
include <net/sock.h>
kprobe:tcp_set_state { printf("%v %v %v %v\n", pid, comm, str(((struct sock *)arg0)->sk_state), arg1); }
but there's an error: