aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorTiezhu Yang <[email protected]>2025-05-14 14:18:10 +0000
committerHuacai Chen <[email protected]>2025-05-14 14:18:10 +0000
commit0b326b2371f94e798137cc1a3c5c2eef2bc69061 (patch)
treeddd5c5cae7fef993df8e7b0456629f97531cd800 /scripts/gcc-plugins/sancov_plugin.c
parentLoongArch: Save and restore CSR.CNTC for hibernation (diff)
downloadkernel-0b326b2371f94e798137cc1a3c5c2eef2bc69061.tar.gz
kernel-0b326b2371f94e798137cc1a3c5c2eef2bc69061.zip
LoongArch: uprobes: Remove user_{en,dis}able_single_step()
When executing the "perf probe" and "perf stat" test cases about some cryptographic algorithm, the output shows that "Trace/breakpoint trap". This is because it uses the software singlestep breakpoint for uprobes on LoongArch, and no need to use the hardware singlestep. So just remove the related function call to user_{en,dis}able_single_step() for uprobes on LoongArch. How to reproduce: Please make sure CONFIG_UPROBE_EVENTS is set and openssl supports sm2 algorithm, then execute the following command. cd tools/perf && make ./perf probe -x /usr/lib64/libcrypto.so BN_mod_mul_montgomery ./perf stat -e probe_libcrypto:BN_mod_mul_montgomery openssl speed sm2 Cc: [email protected] Fixes: 19bc6cb64092 ("LoongArch: Add uprobes support") Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions