Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support automatic selection of whether to load kprobe #320

Merged
merged 5 commits into from
Sep 20, 2022

Conversation

jundizhou
Copy link
Collaborator

Signed-off-by: jundizhou jundizhou@harmonycloud.cn

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Signed-off-by: jundizhou <jundizhou@harmonycloud.cn>
@jundizhou jundizhou changed the title update agent-libs version Support automatic selection of whether to load kprobe Sep 20, 2022
@sanyangji
Copy link
Collaborator

I review the code of agent-libs, the name SCAP_UNKNOW_KPROBE cannot be used for the program type of tracepoint (scap_bpf.c, line: 649, 837). I think some name like SCAP_LOAD_FAILED may be better.
Besides, UNKNOW should be UNKNOWN.
Others: format for scap_bpf.c:839: redundant blank before delimiter.

For this commit, I think the update aims to tolerate some errors of loading kprobe programs, changing the title may be better. Besides, I wonder if the program will output error info when skip loading kprobe programs

@jundizhou
Copy link
Collaborator Author

我会修改unknow->unkown,代码逻辑只有kprobe会返回这个类型。

@sanyangji
Copy link
Collaborator

我会修改unknow->unkown,代码逻辑只有kprobe会返回这个类型。

looks like tracepoint may reach this branch. scap_bpf.c

Signed-off-by: jundizhou <jundizhou@harmonycloud.cn>
sanyangji
sanyangji previously approved these changes Sep 20, 2022
@dxsup
Copy link
Member

dxsup commented Sep 20, 2022

Please update the changelog. I suggest this as an enhancement.

Signed-off-by: jundizhou <jundizhou@harmonycloud.cn>
jundizhou and others added 2 commits September 20, 2022 20:44
Signed-off-by: jundizhou <jundizhou@harmonycloud.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants