commit e4587a276454d5c08cddebc48989f91ecaf08bd3
Author: Vasudev Kamath <kamathvasudev@gmail.com>
Date: Thu Oct 15 14:58:15 2026 +0530
Release 0.37.0-8 to unstable fixing ppc64el issues
Gbp-Dch: ignore
commit a48f518fcf3488fe5ed0791bbe5ed03964341f0d
Author: Vasudev Kamath <kamathvasudev@gmail.com>
Date: Thu Oct 15 13:11:10 2026 +0530
debian/patches/2004: fix u64 format strings across libbpf-tools for all arches
Use PRIu64/PRIx64 macros with (uint64_t) casts for __u64 fields to fix
-Werror=format on architectures where unsigned long != unsigned long long
(ppc64el, loong64, riscv64) and x86_64 where PRIu64 expands to %lu.
Fixed files:
- biosnoop.c: e.sector, e.len (handle_event)
- biotop.c: value->bytes/1024 (print_stat)
- cachestat.c: hits, misses, mbd, buffers/1024, cached/1024 (main)
- drsnoop.c: e.nr_reclaimed, e.nr_free_pages*page_size/1024 (handle_event)
- execsnoop.c: e.args_count, e.arg* (handle_event)
- exitsnoop.c: e.pid, e.tid, e.exit_code, e.duration_ns (handle_event)
- filetop.c: reads, writes, read_bytes/1024, write_bytes/1024 (print_stat)
- javagc.c: e->ts/1000 (handle_event)
- numamove.c: obj->bss->num, obj->bss->latency (main loop)
- runqslower.c: e.delta_us (handle_event)
- slabratetop.c: values[i].count, values[i].size (print_stat)
- tcpconnect.c: counts[i] (print_count_ipv4/ipv6)
- tcpstates.c: e.skaddr (handle_event)
- wakeuptime.c: e.delta_us (handle_event)
- biopattern.c: e.count (handle_event)
- filelife.c: e.nsecs, e.bytes (handle_event)
- fsslower.c: e.latency_ns (handle_event)
- offlife.c: e.start_time, e.end_time (handle_event)
- softirqs.c: e.vec, e.action (handle_event)
- statsnoop.c: e.pid, e.tid, e.cpu, e.flags (handle_event)
- syscount.c: e.count (handle_event)
Added #include <inttypes.h> where missing for PRIu64/PRIx64 macros.
commit 7195a2449a3ea3bf0d3bedd0a689b9fd789393ef
Author: Vasudev Kamath <kamathvasudev@gmail.com>
Date: Wed Oct 14 10:48:15 2026 +0530
# This is a combination of 13 commits.
# This is the 1st commit message:
2004-fix-u64-format-strings.patch: Add biopattern.c and fix wakeuptime.c cast
Fix __u64 format strings for ppc64el/loong64/riscv64 where unsigned long != unsigned long long.
- biopattern.c: Add PRIu64 with (uint64_t) cast for counter.bytes
- wakeuptime.c: Add (uint64_t) cast for val to match PRIu64 on all arches
# This is the commit message #2:
debian/patches/2004: fix u64 format strings in biosnoop.c handle_event
Use PRIu64 macro for __u64 sector field to fix -Werror=format on
architectures where unsigned long != unsigned long long (ppc64el, loong64, riscv64).
Also adds #include <inttypes.h>.
# This is the commit message #3:
debian/patches/2004: fix u64 format strings in biosnoop.c handle_event for all arches
Use PRIu64 macro with (uint64_t) cast for __u64 sector field to fix
-Werror=format on architectures where unsigned long != unsigned long long
(ppc64el, loong64, riscv64) and x86_64 where PRIu64 expands to %lu.
Also adds #include <inttypes.h> for PRIu64 macro.
# This is the commit message #4:
debian/patches/2004: fix u64 format strings in biotop.c print_stat
Use PRIu64 macro with (uint64_t) cast for __u64 bytes field to fix
-Werror=format on architectures where unsigned long != unsigned long long
(ppc64el, loong64, riscv64) and x86_64 where PRIu64 expands to %lu.
Also adds #include <inttypes.h> for PRIu64 macro.
# This is the commit message #5:
debian/patches/2004: fix u64 format strings in cachestat.c main
Use PRId64/PRIu64 macros for __s64/__u64 fields to fix
-Werror=format on architectures where unsigned long != unsigned long long
(ppc64el, loong64, riscv64) and x86_64 where macros expand to %lu/%ld.
Variables fixed: hits, misses (__s64), mbd, buffers, cached (__u64).
Already includes <inttypes.h> from previous patch update.
# This is the commit message #6:
debian/patches/2004: fix cachestat.c printf with explicit casts for x86_64
On x86_64, PRId64 expands to 'ld' (expects long) and PRIu64 to 'lu'
(expects unsigned long), but __s64/__u64 are long long. Add explicit
(int64_t)/(uint64_t) casts to match format macro expectations.
Variables: hits, misses -> (int64_t); mbd, buffers, cached -> (uint64_t).
# This is the commit message #7:
debian/patches/2004: fix u64 format strings in drsnoop.c handle_event
Use PRIu64 macro with (uint64_t) casts for __u64 fields to fix
-Werror=format on architectures where unsigned long != unsigned long long
(ppc64el, loong64, riscv64) and x86_64 where PRIu64 expands to %lu.
Fixed: nr_reclaimed, nr_free_pages * page_size / 1024.
Also adds #include <inttypes.h> for PRIu64 macro.
# This is the commit message #8:
debian/patches/2004: fix u64 format strings in filetop.c print_stat
Use PRIu64 macro with (uint64_t) casts for __u64 fields to fix
-Werror=format on architectures where unsigned long != unsigned long long
(ppc64el, loong64, riscv64) and x86_64 where PRIu64 expands to %lu.
Fixed: reads, writes, read_bytes/1024, write_bytes/1024.
Also adds #include <inttypes.h> for PRIu64 macro.
# This is the commit message #9:
debian/patches/2004: fix u64 format strings in javagc.c handle_event
Use PRIu64 macro with (uint64_t) cast for __u64 ts field to fix
-Werror=format on architectures where unsigned long != unsigned long long
(ppc64el, loong64, riscv64) and x86_64 where PRIu64 expands to %lu.
Fixed: ts/1000.
Also adds #include <inttypes.h> for PRIu64 macro.
# This is the commit message #10:
debian/patches/2004: fix u64 format strings in numamove.c main loop
Use PRIu64 macro with (uint64_t) casts for __u64 num and latency fields
to fix -Werror=format on architectures where unsigned long != unsigned long long
(ppc64el, loong64, riscv64) and x86_64 where PRIu64 expands to %lu.
Fixed: obj->bss->num, obj->bss->latency.
Also adds #include <inttypes.h> for PRIu64 macro.
# This is the commit message #11:
debian/patches/2004: fix u64 format strings in runqslower.c handle_event
Use PRIu64 macro with (uint64_t) cast for __u64 delta_us field to fix
-Werror=format on architectures where unsigned long != unsigned long long
(ppc64el, loong64, riscv64) and x86_64 where PRIu64 expands to %lu.
Already includes <inttypes.h>.
# This is the commit message #12:
debian/patches/2004: fix u64 format strings in slabratetop.c print_stat
Use PRIu64 macro with (uint64_t) casts for __u64 count and size fields
to fix -Werror=format on architectures where unsigned long != unsigned long long
(ppc64el, loong64, riscv64) and x86_64 where PRIu64 expands to %lu.
Also adds #include <inttypes.h> for PRIu64 macro.
# This is the commit message #13:
debian/patches/2004: fix u64 format strings in tcpconnect.c print_count_ipv4/ipv6
Use PRIu64 macro for __u64 counts array to fix -Werror=format on
architectures where unsigned long != unsigned long long
(ppc64el, loong64, riscv64) and x86_64 where PRIu64 expands to %lu.
Fixed: counts[i] in both print_count_ipv4() and print_count_ipv6().
Also adds #include <inttypes.h> for PRIu64 macro.
commit 0b96c010b69530b2907ab64bfda770885fb4cef4
Author: Vasudev Kamath <kamathvasudev@gmail.com>
Date: Wed Oct 14 10:34:07 2026 +0530
Add biopattern fix for ppc64el build failure in patch 2004
Among the 6 debian patches available in version 0.37.0+ds-8 of the package, we noticed the following issues: