aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorDonglin Peng <[email protected]>2023-02-21 08:52:42 +0900
committerMasami Hiramatsu (Google) <[email protected]>2023-02-21 08:52:42 +0900
commit8478cca1e3abd183f309cd9c2491f484acf5d377 (patch)
tree22623d22350cc9f938a59ddc85b87da6bbb8ffdd /lib/memory-notifier-error-inject.c
parent96cd93af794cf3ef83ae1ad7291160029d7b525e (diff)
tracing/probe: add a char type to show the character value of traced arguments
There are scenes that we want to show the character value of traced arguments other than a decimal or hexadecimal or string value for debug convinience. I add a new type named 'char' to do it and a new test case file named 'kprobe_args_char.tc' to do selftest for char type. For example: The to be traced function is 'void demo_func(char type, char *name);', we can add a kprobe event as follows to show argument values as we want: echo 'p:myprobe demo_func $arg1:char +0($arg2):char[5]' > kprobe_events we will get the following trace log: ... myprobe: (demo_func+0x0/0x29) arg1='A' arg2={'b','p','f','1',''} Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Donglin Peng <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions