perf trace: Show error message when not finding a field used in a filter expression
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Oct 2019 19:41:34 +0000 (16:41 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Oct 2019 20:26:35 +0000 (17:26 -0300)
commit3cdc8db91e0e73f94fa6ce3bf966b0152ccf0107
treec8f0c71ca99a3f4cfb1acb8319fd88d0df6682d7
parentdf604bfda6f550f088e1cffcd098bfec0eee9cdf
perf trace: Show error message when not finding a field used in a filter expression

It was there, but as pr_debug(), make it pr_err() so that we can see it
without -v:

  # trace -e syscalls:*lseek --filter="whenc==SET" sleep 1
  "whenc" not found in "syscalls:sys_enter_lseek", can't set filter "whenc==SET"
  #

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-ly4rgm1bto8uwc2itpaixjob@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c