Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dynamic: Fix unpatch for -fpatchable-function-entry
We have missed handling -U option to functions compiled with -fpatchable-function-entry. This patch fixes the problem as follows. Before: $ ./runtest.py "265|266" Start 2 tests with 2 worker Compiler gcc clang Runtime test case pg finstrument-fu fpatchable-fun pg finstrument-fu fpatchable-fun ------------------------: O0 O1 O2 O3 Os O0 O1 O2 O3 Os O0 O1 O2 O3 Os O0 O1 O2 O3 Os O0 O1 O2 O3 Os O0 O1 O2 O3 Os 265 patchable_dynamic3 : NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG 266 patchable_dynamic4 : NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG NG After: $ ./runtest.py "265|266" Start 2 tests with 2 worker Compiler gcc clang Runtime test case pg finstrument-fu fpatchable-fun pg finstrument-fu fpatchable-fun ------------------------: O0 O1 O2 O3 Os O0 O1 O2 O3 Os O0 O1 O2 O3 Os O0 O1 O2 O3 Os O0 O1 O2 O3 Os O0 O1 O2 O3 Os 265 patchable_dynamic3 : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK 266 patchable_dynamic4 : OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK This is verified in both x86_64 and aarch64. Fixes: 151fb61 ("dynamic: Refactor 'match_pattern_list'") Signed-off-by: Honggyu Kim <[email protected]>
- Loading branch information