aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorVamshi K Sthambamkadi <[email protected]>2020-08-28 17:02:46 +0530
committerBorislav Petkov <[email protected]>2020-09-04 14:40:42 +0200
commit2356bb4b8221d7dc8c7beb810418122ed90254c9 (patch)
tree4cc1ac3ba8af587ffdfcc5da8508eb97b51162dc /tools/perf/scripts/python/export-to-sqlite.py
parentccae0f36d500aef727f98acd8d0601e6b262a513 (diff)
tracing/kprobes, x86/ptrace: Fix regs argument order for i386
On i386, the order of parameters passed on regs is eax,edx,and ecx (as per regparm(3) calling conventions). Change the mapping in regs_get_kernel_argument(), so that arg1=ax arg2=dx, and arg3=cx. Running the selftests testcase kprobes_args_use.tc shows the result as passed. Fixes: 3c88ee194c28 ("x86: ptrace: Add function argument access API") Signed-off-by: Vamshi K Sthambamkadi <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Masami Hiramatsu <[email protected]> Acked-by: Peter Zijlstra (Intel) <[email protected]> Cc: <[email protected]> Link: https://lkml.kernel.org/r/20200828113242.GA1424@cosmos
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions