diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-06-01 15:09:58 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-06-02 16:45:59 +0300 |
commit | b1a9651d48b42f3eddf095123c09f93e4df23060 (patch) | |
tree | 43ca17aae923e268087200f2d627d8a5cf0fdc13 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 12ca2c67d742d390c0aa1f8c1cfc49469df55ddf (diff) | |
download | linux-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