| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
To simplify interface Read*Symbols were moved out from symbolizer.Symbolizer.
|
| |
|
|
|
|
|
| |
Function sizes reported by the Linux kernel do not match symbol tables.
The kernel computes size of a symbol based on the start of the next symbol.
We need to do the same to match kernel sizes to be able to find the right
symbol across multiple symbols with the same name.
|
| | |
|
| |
|
|
| |
In preparation to support big-endian architectures.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Overall idea of netlink checking.
Currnetly we check netlink policies for common detectable mistakes.
First, we detect what looks like a netlink policy in our descriptions
(these are structs/unions only with nlattr/nlnext/nlnetw fields).
Then we find corresponding symbols (offset/size) in vmlinux using nm.
Then we read elf headers and locate where these symbols are in the rodata section.
Then read in the symbol data, which is an array of nla_policy structs.
These structs allow to easily figure out type/size of attributes.
Finally we compare our descriptions with the kernel policy description.
Update #590
|
| |
|
|
|
|
|
|
|
| |
On OpenBSD, nm(1) does not support the `-S' option.
The order of symbols from nm(1) varies between platforms, therefore rework the
test case to cope with that.
Fixes #723
|
| |
|
|
| |
The test fails on openbsd, and probably everything else other than linux.
|
| |
|