aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2019-07-03 16:02:09 -0300
committerArnaldo Carvalho de Melo <[email protected]>2019-07-09 09:33:55 -0300
commit40978e9bf2137223993e70921de2731201788049 (patch)
tree6a30fc456b6dbed75fc7a8def8ee6b9fb284b836 /tools/perf/scripts/python/bin/export-to-postgresql-report
parent363bbaef63ffebcc745239fe80a953ebb5ac9ec9 (diff)
perf inject: The tool->read() call may pass a NULL evsel, handle it
Check first, as machines__deliver_event() may have perf_evlist__id2evsel() returning NULL. This was found while checking a report from Leo Yan that used the smatch tool to find places where a pointer is checked before use and then, later in the same function gets used without checking. Cc: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Leo Yan <[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/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions