From 09f7ed7312df33512c8a4be6be281ba9868ba57d Mon Sep 17 00:00:00 2001 From: Adam_pi3 Date: Sat, 24 Aug 2024 01:45:48 +0000 Subject: [PATCH] Add support for JUMP_LABEL batch-mode feature for ARM64 ARM64 added support for JUMP_LABEL batch-mode feature. This commit adds support for it and addresses #351 --- .../p_arch_jump_label_transform/p_arch_jump_label_transform.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform/p_arch_jump_label_transform.c b/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform/p_arch_jump_label_transform.c index c583add3..961609d2 100644 --- a/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform/p_arch_jump_label_transform.c +++ b/src/modules/database/JUMP_LABEL/p_arch_jump_label_transform/p_arch_jump_label_transform.c @@ -32,7 +32,11 @@ char p_arch_jump_label_transform_kretprobe_state = 0; p_lkrg_counter_lock p_jl_lock; static struct kretprobe p_arch_jump_label_transform_kretprobe = { +#if defined(CONFIG_ARM64) && defined(HAVE_JUMP_LABEL_BATCH) + .kp.symbol_name = "arch_jump_label_transform_queue", +#else .kp.symbol_name = "arch_jump_label_transform", +#endif .handler = p_arch_jump_label_transform_ret, .entry_handler = p_arch_jump_label_transform_entry, .data_size = sizeof(struct p_arch_jump_label_transform_data),