-
Notifications
You must be signed in to change notification settings - Fork 151
libbpf: Add debug messaging in dedup equivalence/identity matching #10343
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
base: bpf-next_base
Are you sure you want to change the base?
Conversation
|
Upstream branch: e0940c6 |
b0a5b86 to
44cbecf
Compare
|
Upstream branch: 792f258 |
414e8ee to
75c2826
Compare
|
Upstream branch: 792f258 |
75c2826 to
2c0a2c7
Compare
44cbecf to
e8ba78a
Compare
|
Upstream branch: 878ee3c |
2c0a2c7 to
7de6cf9
Compare
e8ba78a to
c1a1f03
Compare
|
Upstream branch: ae24fc8 |
7de6cf9 to
7ce4e39
Compare
c1a1f03 to
ca453f8
Compare
|
Upstream branch: 4dd3a48 |
7ce4e39 to
8b3585f
Compare
ca453f8 to
b3f74e5
Compare
|
Upstream branch: 8f7cf30 |
8b3585f to
990f909
Compare
b3f74e5 to
b57110f
Compare
|
Upstream branch: c427320 |
We have seen a number of issues like [1]; failures to deduplicate key kernel data structures like task_struct. These are often hard to debug from pahole even with verbose output, especially when identity/equivalence checks fail deep in a nested struct comparison. Here we add debug messages of the form libbpf: struct 'task_struct' (size 2560 vlen 194) appears equivalent but differs for 23-indexed cand/canon member 'sched_class'/'sched_class': 0 These will be emitted during dedup from pahole when --verbose/-V is specified. This greatly helps identify exactly where dedup failures are experienced. [1] https://lore.kernel.org/bpf/b8e8b560-bce5-414b-846d-0da6d22a9983@oracle.com/ Signed-off-by: Alan Maguire <alan.maguire@oracle.com> Acked-by: Eduard Zingerman <eddyz87@gmail.com>
990f909 to
b0bc5af
Compare
Pull request for series with
subject: libbpf: Add debug messaging in dedup equivalence/identity matching
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1026051