summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-06-01 15:09:58 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2023-06-02 16:45:59 +0300
commitb1a9651d48b42f3eddf095123c09f93e4df23060 (patch)
tree43ca17aae923e268087200f2d627d8a5cf0fdc13 /tools/perf/scripts/python/exported-sql-viewer.py
parent12ca2c67d742d390c0aa1f8c1cfc49469df55ddf (diff)
downloadlinux-b1a9651d48b42f3eddf095123c09f93e4df23060.tar.xz
modpost: refactor find_fromsym() and find_tosym()
find_fromsym() and find_tosym() are similar - both of them iterate in the .symtab section and return the nearest symbol. The difference between them is that find_tosym() allows a negative distance, but the distance must be less than 20. Factor out the common part into find_nearest_sym(). Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions