diff options
author | 2022-09-24 15:26:29 +0800 | |
---|---|---|
committer | 2022-09-27 14:48:26 -0400 | |
commit | ae398ad89456847aab9f12b0e63c51443af5da48 (patch) | |
tree | 02d86c0c4d9ff63cbb18fd4486e57c8370816a62 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ftrace: Remove obsoleted code from ftrace and task_struct (diff) | |
download | wireguard-linux-ae398ad89456847aab9f12b0e63c51443af5da48.tar.xz wireguard-linux-ae398ad89456847aab9f12b0e63c51443af5da48.zip |
x86: kprobes: Remove unused macro stack_addr
An unused macro reported by [-Wunused-macros].
This macro is used to access the sp in pt_regs because at that time
x86_32 can only get sp by kernel_stack_pointer(regs).
'3c88c692c287 ("x86/stackframe/32: Provide consistent pt_regs")'
This commit have unified the pt_regs and from them we can get sp from
pt_regs with regs->sp easily. Nowhere is using this macro anymore.
Refrencing pt_regs directly is more clear. Remove this macro for
code cleaning.
Link: https://lkml.kernel.org/r/20220924072629.104759-1-chenzhongjin@huawei.com
Signed-off-by: Chen Zhongjin <chenzhongjin@huawei.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions