Adrian Hunter c1c49204b0 perf auxtrace: Improve address filter error message when there is no DSO
The message does not indicate the possibility that the symbol is not
found because the file does not exist.

Before:

  $ perf record -e intel_pt//u --filter 'filter strcmp / strcpy @ foo ' ls
  Symbol 'strcmp' not found.
  Note that symbols must be functions.
  Failed to parse address filter: 'filter strcmp / strcpy @ foo '
  Filter format is: filter|start|stop|tracestop <start symbol or address> [/ <end symbol or size>] [@<file name>]
  Where multiple filters are separated by space or comma.

After:

  $ perf record -e intel_pt//u --filter 'filter strcmp / strcpy @ foo ' ls
  File 'foo' not found or has no symbols.
  Symbol 'strcmp' not found.
  Note that symbols must be functions.
  Failed to parse address filter: 'filter strcmp / strcpy @ foo '
  Filter format is: filter|start|stop|tracestop <start symbol or address> [/ <end symbol or size>] [@<file name>]
  Where multiple filters are separated by space or comma.

Reported-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: https://lkml.kernel.org/n/tip-dvngzxd0jkplzw1ary69dilb@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2019-03-01 14:47:06 -03:00
..
2019-02-19 16:11:56 -03:00
2019-02-19 16:11:56 -03:00
2019-02-19 16:11:56 -03:00
2019-02-19 12:21:06 -03:00
2019-02-06 10:00:38 -03:00
2019-01-25 15:12:10 +01:00
2019-02-06 10:00:39 -03:00
2019-02-06 10:00:39 -03:00
2018-10-18 11:16:38 -03:00
2019-02-06 10:00:40 -03:00
2019-02-06 10:00:40 -03:00
2015-08-21 11:34:10 -03:00
2016-10-24 11:07:39 -03:00
2018-03-16 13:52:37 -03:00
2018-03-16 13:52:37 -03:00
2019-02-06 10:00:39 -03:00
2019-02-06 10:00:39 -03:00
2018-03-05 11:52:41 -03:00
2017-07-18 23:14:08 -03:00
2019-02-06 10:00:38 -03:00
2018-12-17 14:57:07 -03:00
2019-01-25 15:12:09 +01:00
2019-02-09 13:16:01 +01:00
2019-02-06 10:00:38 -03:00
2019-02-06 10:00:38 -03:00
2019-01-21 15:15:57 -03:00