-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
libbpf-tools: Fix llx printf modifiers in futexctn #4836
base: master
Are you sure you want to change the base?
Commits on Oct 12, 2023
-
libbpf-tools: Fix misaligned pointer accesses in exitsnoop
The perf buffer in exit snoop doesn't maintain 8 byte alignment for start_time and exit_time in struct event. When building with "-fsanitize=alignment -fsanitize-undefined-trap-on-error" failures happen in handle_event. Fix these by copying the event from the perf buffer before accessing. Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 19305b3 - Browse repository at this point
Copy the full SHA 19305b3View commit details
Commits on Dec 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f4d4975 - Browse repository at this point
Copy the full SHA f4d4975View commit details
Commits on Dec 5, 2023
-
libbpf-tools: Fix misaligned pointer accesses in biosnoop
The perf buffer in biosnoop doesn't maintain 8 byte alignment for delta, qdelta, ts and sector in struct event. When building with "-fsanitize=alignment -fsanitize-trap=undefined" failures happen in handle_event. Fix these by copying the event from the perf buffer before accessing. This is similar to a fix in exitsnoop where different ways to handle misaligned pointers were discussed: iovisor#4760 Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5cf8f55 - Browse repository at this point
Copy the full SHA 5cf8f55View commit details -
libbpf-tools: Fix misaligned pointer accesses in filelife
The perf buffer in filelife doesn't maintain 8 byte alignment for delta_ns in struct event. When building with "-fsanitize=alignment -fsanitize-trap=undefined" failures happen in handle_event. Fix these by copying the event from the perf buffer before accessing. This is similar to a fix in exitsnoop where different ways to handle misaligned pointers were discussed: iovisor#4760 Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8a686cf - Browse repository at this point
Copy the full SHA 8a686cfView commit details -
libbpf-tools: Fix misaligned pointer accesses in fsslower
The perf buffer in fsslower doesn't maintain 8 byte alignment for delta_us, end_ns, offset and size in struct event. When building with "-fsanitize=alignment -fsanitize-trap=undefined" failures happen in handle_event. Fix these by copying the event from the perf buffer before accessing. This is similar to a fix in exitsnoop where different ways to handle misaligned pointers were discussed: iovisor#4760 Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0139b0a - Browse repository at this point
Copy the full SHA 0139b0aView commit details -
libbpf-tools: Fix misaligned pointer accesses in gethostlatency
The perf buffer in gethostlatency doesn't maintain 8 byte alignment for time in struct event. When building with "-fsanitize=alignment -fsanitize-trap=undefined" failures happen in handle_event. Fix these by copying the event from the perf buffer before accessing. This is similar to a fix in exitsnoop where different ways to handle misaligned pointers were discussed: iovisor#4760 Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0a6b8bc - Browse repository at this point
Copy the full SHA 0a6b8bcView commit details -
libbpf-tools: Fix misaligned pointer accesses in opensnoop
The perf buffer in opensnoop doesn't maintain 8 byte alignment for ts and callers in struct event. When building with " -fsanitize=alignment -fsanitize-trap=undefined" failures happen in handle_event. Fix these by copying the event from the perf buffer before accessing. This is similar to a fix in exitsnoop where different ways to handle misaligned pointers were discussed: iovisor#4760 Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 93fb8fd - Browse repository at this point
Copy the full SHA 93fb8fdView commit details -
libbpf-tools: Fix misaligned pointer accesses in runqslower
The perf buffer in runqslower doesn't maintain 8 byte alignment for delta_us in struct event. When building with "-fsanitize=alignment -fsanitize-trap=undefined" failures happen in handle_event. Fix these by copying the event from the perf buffer before accessing. This is similar to a fix in exitsnoop where different ways to handle misaligned pointers were discussed: iovisor#4760 Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fa2cdb1 - Browse repository at this point
Copy the full SHA fa2cdb1View commit details -
libbpf-tools: Fix misaligned pointer accesses in statsnoop
The perf buffer in statsnoop doesn't maintain 8 byte alignment for ts_ns in struct event. When building with "-fsanitize=alignment -fsanitize-trap=undefined" failures happen in handle_event. Fix these by copying the event from the perf buffer before accessing. This is similar to a fix in exitsnoop where different ways to handle misaligned pointers were discussed: iovisor#4760 Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8084eed - Browse repository at this point
Copy the full SHA 8084eedView commit details -
libbpf-tools: Fix misaligned pointer accesses in tcpconnect
The perf buffer in tcpconnect doesn't maintain 8 byte alignment for ts_us in struct event. When building with "-fsanitize=alignment -fsanitize-trap=undefined" failures happen in handle_event. Fix these by copying the event from the perf buffer before accessing. This is similar to a fix in exitsnoop where different ways to handle misaligned pointers were discussed: iovisor#4760 Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1b01a7c - Browse repository at this point
Copy the full SHA 1b01a7cView commit details -
libbpf-tools: Fix misaligned pointer accesses in tcplife
The perf buffer in tcplife doesn't maintain 8 byte alignment for saddr, daddr, ts_us, span_us, rx_b and tx_b in struct event. When building with "-fsanitize=alignment -fsanitize-trap=undefined" failures happen in handle_event. Fix these by copying the event from the perf buffer before accessing. This is similar to a fix in exitsnoop where different ways to handle misaligned pointers were discussed: iovisor#4760 Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6024904 - Browse repository at this point
Copy the full SHA 6024904View commit details -
libbpf-tools: Fix misaligned pointer accesses in tcpstates
The perf buffer in tcpstates doesn't maintain 8 byte alignment for saddr, daddr, skaddr, ts_us and delta_us in struct event. When building with "-fsanitize=alignment -fsanitize-trap=undefined" failures happen in handle_event. Fix these by copying the event from the perf buffer before accessing. This is similar to a fix in exitsnoop where different ways to handle misaligned pointers were discussed: iovisor#4760 Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3c4ddc2 - Browse repository at this point
Copy the full SHA 3c4ddc2View commit details -
libbpf-tools: Fix misaligned pointer accesses in tcptracer
The perf buffer in tcptracer doesn't maintain 8 byte alignment for saddr_v4, daddr_v4 and ts_us in struct event. When building with "-fsanitize=alignment -fsanitize-trap=undefined" failures happen in handle_event. Fix these by copying the event from the perf buffer before accessing. This is similar to a fix in exitsnoop where different ways to handle misaligned pointers were discussed: iovisor#4760 Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f50a604 - Browse repository at this point
Copy the full SHA f50a604View commit details -
libbpf-tools: Fix misaligned pointer accesses in drsnoop
The perf buffer in drsnoop doesn't maintain 8 byte alignment for delta_ns, nr_reclaimed and nr_free_pages in struct event. When building with "-fsanitize=alignment -fsanitize-trap=undefined" failures happen in handle_event. Fix these by copying the event from the perf buffer before accessing. This is similar to a fix in exitsnoop where different ways to handle misaligned pointers were discussed: iovisor#4760 Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 53f0193 - Browse repository at this point
Copy the full SHA 53f0193View commit details
Commits on Dec 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1435c04 - Browse repository at this point
Copy the full SHA 1435c04View commit details -
libbpf-tools: Fix printf modifier
Fix the following warning: ``` $ make futexctn ... futexctn.c: In function ‘print_stack’: futexctn.c:236:59: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 236 | printf(" #%-2d 0x%016llx [unknown]\n", idx++, ip[i]); | ~~~~~~^ ~~~~~ | | | | long long unsigned int uint64_t {aka long unsigned int} | %016lx futexctn.c:249:51: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 249 | printf(" #%-2d 0x%016llx", idx++, ip[i]); | ~~~~~~^ ~~~~~ | | | | | uint64_t {aka long unsigned int} | long long unsigned int | %016lx ... ``` by using inttypes.h. Signed-off-by: Ian Rogers <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1daa2c1 - Browse repository at this point
Copy the full SHA 1daa2c1View commit details