aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2019-07-16 17:55:57 +0000
committerArnaldo Carvalho de Melo <[email protected]>2019-07-29 21:34:41 +0000
commit8d5da2649d8211e63c5f65ccf8945f2c46a9c0b8 (patch)
treeb253336f074c366aae78cf9f01da18c2b4f3a1e5 /tools/perf/util/trace-event-scripting.c
parentperf augmented_raw_syscalls: Switch to using BPF_MAP_TYPE_PROG_ARRAY (diff)
downloadkernel-8d5da2649d8211e63c5f65ccf8945f2c46a9c0b8.tar.gz
kernel-8d5da2649d8211e63c5f65ccf8945f2c46a9c0b8.zip
perf augmented_raw_syscalls: Support copying two string syscall args
Starting with the renameat and renameat2 syscall, that both receive as second and fourth parameters a pathname: # perf trace -e rename* mv one ANOTHER LLVM: dumping /home/acme/git/perf/tools/perf/examples/bpf/augmented_raw_syscalls.o mv: cannot stat 'one': No such file or directory renameat2(AT_FDCWD, "one", AT_FDCWD, "ANOTHER", RENAME_NOREPLACE) = -1 ENOENT (No such file or directory) # Since the per CPU scratch buffer map has space for two maximum sized pathnames, the verifier is satisfied that there will be no overrun. Cc: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Luis Cláudio Gonçalves <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions