perf test java symbol: Remove needless debuginfod queries
authorThomas Richter <tmricht@linux.ibm.com>
Tue, 9 May 2023 13:18:47 +0000 (15:18 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 10 May 2023 15:54:53 +0000 (12:54 -0300)
commit5f0b89e632ed81b69993f3e68ed924ca3874d0d0
tree5ac3e017f5f7016c844faf49662cea9515ccd894
parent327daf34554d20a6aa190dce5a625a555055435e
perf test java symbol: Remove needless debuginfod queries

Test case 'Test java symbol' might run for a long time. On Fedora 38 the
run time is very, very long:

  Output before:
  # time ./perf test 108
  108: Test java symbol                  : Ok
  real   22m15.775s
  user   3m42.584s
  sys    4m30.685s
  #

The reason is a lookup for the server for debug symbols as shown in:

  # cat /etc/debuginfod/elfutils.urls
  https://debuginfod.fedoraproject.org/
  #

This lookup is done for every symbol/sample, so about 3500 lookups
will take place.

To omit this lookup, which is not needed, unset environment variable
DEBUGINFOD_URLS=''.

  Output after:
  # time ./perf test 108
  108: Test java symbol                  : Ok

  real 0m6.242s
  user 0m4.982s
  sys 0m3.243s
  #

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Link: https://lore.kernel.org/r/20230509131847.835974-1-tmricht@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/test_java_symbol.sh