diff options
author | 2015-05-21 01:03:39 +0900 | |
---|---|---|
committer | 2015-05-27 12:21:44 -0300 | |
commit | 71ff824a60a7b0d9d0746e6e237fe4735077e5b4 (patch) | |
tree | 573fd8686995d141c6f62105264cbce8c848de3a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | perf machine: Do not call map_groups__delete(), drop refcnt instead (diff) | |
download | linux-dev-71ff824a60a7b0d9d0746e6e237fe4735077e5b4.tar.xz linux-dev-71ff824a60a7b0d9d0746e6e237fe4735077e5b4.zip |
perf tools: Fix dso__data_read_offset() file opening
When dso__data_read_offset/addr() is called without prior dso__data_fd()
(or other functions which call it internally), it failed to open dso in
data_file_size() since its binary type was not identified.
However calling dso__data_fd() in dso__data_read_offset() will hurt
performance as it grabs a global lock everytime. So factor out the loop
on the binary type in dso__data_fd(), and call it from both.
Reported-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1432137821-10853-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions