diff options
author | 2022-05-05 12:52:11 +0900 | |
---|---|---|
committer | 2022-05-12 10:29:41 -0700 | |
commit | cdd66eb52fdaa9bdab7f1be8dc9162bf4acc64ae (patch) | |
tree | 47bff8f5ca3ca2889c69b29c557fc39e486fd1f8 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | module: do not pass opaque pointer for symbol search (diff) | |
download | linux-dev-cdd66eb52fdaa9bdab7f1be8dc9162bf4acc64ae.tar.xz linux-dev-cdd66eb52fdaa9bdab7f1be8dc9162bf4acc64ae.zip |
module: do not binary-search in __ksymtab_gpl if fsa->gplok is false
Currently, !fsa->gplok && syms->license == GPL_ONLY) is checked after
bsearch() succeeds.
It is meaningless to do the binary search in the GPL symbol table when
fsa->gplok is false because we know find_exported_symbol_in_section()
will fail anyway.
This check should be done before bsearch().
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions