]> 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)
commit7d5ee269ca7a8d6be9e4f057cbcf1741272443a8
treeb61ebc847dc9301e37dab8c64bfd03a2d8d490de
parent73c4271f529b98256e0f156d2924edec59fce001
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