1 Star 0 Fork 10

jinlun/dim_9

forked from src-openEuler/dim 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Remove-unused-symbol-in-dim_core.patch 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
From 79ad6482e5156c864973ca9e9f7f1a0e68290aa8 Mon Sep 17 00:00:00 2001
From: Huaxin Lu <luhuaxin1@huawei.com>
Date: Tue, 30 Apr 2024 00:42:43 +0800
Subject: [PATCH 09/28] Remove unused symbol in dim_core
---
src/core/dim_core_symbol.c | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/src/core/dim_core_symbol.c b/src/core/dim_core_symbol.c
index eeb9240..38c9f02 100644
--- a/src/core/dim_core_symbol.c
+++ b/src/core/dim_core_symbol.c
@@ -45,20 +45,12 @@ int dim_core_kallsyms_init(void)
k->find_get_task_by_vpid = (DIM_FIND_GET_TASK_BY_VPID)
dim_kallsyms_lookup_name("find_get_task_by_vpid");
#endif
-#ifndef JUMP_LABEL_NOP_SIZE
- k->arch_jump_entry_size = (DIM_ARCH_JUMP_ENTRY_SIZE)
- dim_kallsyms_lookup_name("arch_jump_entry_size");
-#endif
return (k->stext == NULL || k->etext == NULL ||
-#ifndef JUMP_LABEL_NOP_SIZE
- k->arch_jump_entry_size == NULL ||
-#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)
k->find_module == NULL || k->find_get_task_by_vpid == NULL ||
#endif
- k->start_jump_table == NULL || k->stop_jump_table == NULL ||
- k->jump_label_lock == NULL || k->jump_label_lock == NULL ||
- k->walk_process_tree == NULL) ? -ENOENT : 0;
+ k->start_jump_table == NULL || k->stop_jump_table == NULL ||
+ k->jump_label_lock == NULL || k->jump_label_lock == NULL ||
+ k->walk_process_tree == NULL) ? -ENOENT : 0;
}
-
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jinlun123123/dim_9.git
git@gitee.com:jinlun123123/dim_9.git
jinlun123123
dim_9
dim_9
master

搜索帮助