The following kprobe_based event example works well:
$ echo 'p:myprobe do_sys_open' > /sys/kernel/debug/tracing/kprobe_events
But, adding fetching arguments doesn't work:
$ echo 'p:myprobe do_sys_open dfd=%ax filename=%dx flags=%cx mode=+4($stack)' > /sys/kernel/debug/tracing/kprobe_events
Invalid argument
I think that the problem is %ax, %dx...
What is their meaning? And how can I make this code work?