]> git.baikalelectronics.ru Git - kernel.git/commit
samples: Use KSYM_NAME_LEN for kprobes
authorTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 8 Jun 2022 01:23:22 +0000 (09:23 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 12 Jul 2022 20:36:45 +0000 (16:36 -0400)
commit176bd45f8f54c727cfbd242db3a1b15366fc8cd5
treeb61ebc847dc9301e37dab8c64bfd03a2d8d490de
parent9678d34f9b9f98ed02823ca22d868a1b9d54d548
samples: Use KSYM_NAME_LEN for kprobes

It is better and enough to use KSYM_NAME_LEN for kprobes
in samples, no need to define and use the other values.

Link: https://lkml.kernel.org/r/1654651402-21552-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
samples/kprobes/kprobe_example.c
samples/kprobes/kretprobe_example.c