aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2015-01-30 11:33:27 +0900
committerArnaldo Carvalho de Melo <[email protected]>2015-02-06 11:46:35 +0100
commit66af43d56345a7ca549ba1089fe11a6953072417 (patch)
tree31cde2a8c56eac05aaf0fcbdf72c9ca3efb0eaa2 /tools/perf/scripts/python/export-to-postgresql.py
parent2fde4f94e0a9531251e706fa57131b51b0df042e (diff)
perf test: Fix dso cache testcase
The current dso cache permits to keep dso->data.fd is open under a half of open file limit. But test__dso_data_cache() sets dso_cnt to limit / 2 + 1 so it'll reach the limit in the loop even though the loop count is one less than the dso_cnt and it makes the final dso__data_fd() after the loop meaningless. I guess the intention was dsos[0]->data.fd is open before the last open and gets closed after it. So add an assert before the last open. Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions