Commit 2c0a2c7
libbpf: Add debug messaging in dedup equivalence/identity matching
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>1 parent 44cbecf commit 2c0a2c7
1 file changed
+31
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4431 | 4431 | | |
4432 | 4432 | | |
4433 | 4433 | | |
4434 | | - | |
4435 | | - | |
4436 | | - | |
4437 | 4434 | | |
4438 | 4435 | | |
| 4436 | + | |
| 4437 | + | |
| 4438 | + | |
| 4439 | + | |
| 4440 | + | |
| 4441 | + | |
4439 | 4442 | | |
4440 | 4443 | | |
4441 | 4444 | | |
| |||
4497 | 4500 | | |
4498 | 4501 | | |
4499 | 4502 | | |
4500 | | - | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
| 4507 | + | |
| 4508 | + | |
| 4509 | + | |
| 4510 | + | |
| 4511 | + | |
| 4512 | + | |
4501 | 4513 | | |
| 4514 | + | |
4502 | 4515 | | |
4503 | 4516 | | |
4504 | 4517 | | |
| |||
4739 | 4752 | | |
4740 | 4753 | | |
4741 | 4754 | | |
4742 | | - | |
| 4755 | + | |
| 4756 | + | |
| 4757 | + | |
| 4758 | + | |
| 4759 | + | |
| 4760 | + | |
| 4761 | + | |
| 4762 | + | |
| 4763 | + | |
| 4764 | + | |
| 4765 | + | |
| 4766 | + | |
| 4767 | + | |
4743 | 4768 | | |
| 4769 | + | |
4744 | 4770 | | |
4745 | 4771 | | |
4746 | 4772 | | |
| |||
0 commit comments