OSDN Git Service

perf test shell: Use a fallback to get the pathname in vfs_getname
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 4 Jan 2019 18:10:00 +0000 (15:10 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:25:39 +0000 (10:25 +0100)
commit46f0e6984c84a0eaaa3c85a649245bb998124d76
tree75d66f902d83fba8f8a39996cd81ed52f757b1ae
parentd20bfcb55003b6b4786128eafa1211d034e7423c
perf test shell: Use a fallback to get the pathname in vfs_getname

[ Upstream commit 03fa483821c0b4db7c2b1453d3332f397d82313f ]

Some kernels, like 4.19.13-300.fc29.x86_64 in fedora 29, fail with the
existing probe definition asking for the contents of result->name,
working when we ask for the 'filename' variable instead, so add a
fallback to that.

Now those tests are back working on fedora 29 systems with that kernel:

  # perf test vfs_getname
  65: Use vfs_getname probe to get syscall args filenames   : Ok
  66: Add vfs_getname probe to get syscall args filenames   : Ok
  67: Check open filename arg using perf trace + vfs_getname: Ok
  #

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-klt3n0i58dfqttveti09q3fi@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/tests/shell/lib/probe_vfs_getname.sh