-
Notifications
You must be signed in to change notification settings - Fork 75
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
fix CLANG_BPF_CO_RE_PROBE_CMD #125
Conversation
#14 may be related to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks reasonable, thanks for looking into this and submitting the PR!
Can you please just update your commit title to prefix it with mirror:
? This helps filter commits that are added directly to the mirror repo from those that come from sync-ups with the kernel tree. Ideally, could you also wrap your commit description on 72 characters, please?
This problem may only occur here.
Yes probably, I reimplemented the checks for this repo. Looks like the kernel initialises its code already.
This commit still fails the check, can you give me more suggestions? For example, does "mirror:" have to be followed by a space? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I wasn't clear enough, can you please add a space after the prefix?
And the initial description was good, it explained better why the change is needed. Here's what I meant:
mirror: Fix CLANG_BPF_CO_RE_PROBE_CMD
When global variables are not initialized, the original command will get
incorrect results in some versions of clang environment.
Signed-off-by: ...
When global variables are not initialized, the original command will get incorrect results in some versions of clang environment. Signed-off-by: jinzhiguang <jinzhiguang@kylinos.cn>
thanks for your patient explanation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And thanks for quickly addressing the feedback! Looks all good this time 👍
When global variables are not initialized, the original command will get incorrect results in some versions of clang environment.
Take clang 10 as an example:
Not initialized (current code):
Initialized (new code):
This difference will affect the checking of clang-bpf-core features.
[root@localhost src]# make ... libbfd: [ on ] ... clang-bpf-co-re: [ OFF ] ... llvm: [ on ] ... libcap: [ on ]
This part of the code looks like this in the kernel:
This problem may only occur here.