diff options
author | Ivan Krylov <[email protected]> | 2018-10-14 11:18:03 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-01-04 12:54:49 -0300 |
commit | 442b4eb3af44906fcbb526d98c314b27f8c9acf3 (patch) | |
tree | 7733b87f0816c18fe1b08cf3d03b814c0044e759 /net/lapb/lapb_timer.c | |
parent | a3366db06bb656cef2e03f30f780d93059bcc594 (diff) |
perf annotate: Pass filename to objdump via execl
The symbol__disassemble() function uses shell to launch objdump and
filter its output via grep. Passing filenames by interpolating them into
the command line via "%s" may lead to problems if said filenames contain
special characters.
Instead, pass the filename as a command line argument where it is not
subject to any kind of interpretation, then use quoted shell
interpolation to build the strings we need safely.
Signed-off-by: Ivan Krylov <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/20181014111803.5d83b806@Tarkus
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions