livepatch: Use kallsyms_on_each_match_symbol() to improve performance
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 2 Nov 2022 08:49:18 +0000 (16:49 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Sun, 13 Nov 2022 02:47:36 +0000 (18:47 -0800)
commit9cb37357dfce1b596041ad68a20407c8b4e76635
tree0fbab2cf56a95324e36a6ebed72477e56537bb8b
parent4dc533e0f2c04174e1ae4aa98e7cffc1c04b9998
livepatch: Use kallsyms_on_each_match_symbol() to improve performance

Based on the test results of kallsyms_on_each_match_symbol() and
kallsyms_on_each_symbol(), the average performance can be improved by
more than 1500 times.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/livepatch/core.c