diff options
| author | 2026-10-01 23:54:40 -0700 | |
|---|---|---|
| committer | 2026-10-02 18:05:04 +0200 | |
| commit | 21c09c18b40c0fbb16175d4b9cc3e62939b3fd95 (patch) | |
| tree | e952c5aea8b9119abb79e7d833161255e2579d29 /scripts/Makefile.thinlto | |
| parent | perf trace: Only call bpf_get_current_pid_tgid() when filtering tasks (diff) | |
perf trace: Increase TRACE_AUG_MAX_BUF to 128 and document beauty_map encoding
With sockaddr arguments copied as buffers via beauty_map_enter, the
32-byte TRACE_AUG_MAX_BUF limit only held 2 bytes of sa_family plus 30
bytes of AF_LOCAL sun_path, truncating longer socket paths such as
"/var/run/.heim_org.h5l.kcm-socket".
Since struct augmented_arg already reserves PATH_MAX (4096) bytes,
increase TRACE_AUG_MAX_BUF to 128 (SS_MAXSIZE, the size of struct
sockaddr_storage), which covers all 110 bytes of struct sockaddr_un
without changing map sizes. Also document the 1-based negative -(arg_idx
+ 1) encoding used in beauty_array for paired length arguments.
Committer testing:
root@x2:~# perf trace -e connect,bind --max-events=5
0.000 ( 0.021 ms): DNS Res~r #244/2760970 bind(fd: 202, umyaddr: { .family: NETLINK }, addrlen: 12) = 0
18446744073709.250 ( 0.031 ms): DNS Res~r #245/2765812 bind(fd: 202, umyaddr: { .family: NETLINK }, addrlen: 12) = 0
0.306 ( 0.086 ms): DNS Res~r #245/2765812 connect(fd: 202, uservaddr: { .family: LOCAL, path: /run/systemd/resolve/io.systemd.Resolve }, addrlen: 42) = 0
0.551 ( 0.056 ms): DNS Res~r #244/2760970 connect(fd: 204, uservaddr: { .family: LOCAL, path: /run/systemd/resolve/io.systemd.Resolve }, addrlen: 42) = 0
2.074 ( 0.069 ms): systemd-resolv/103685 connect(fd: 27, uservaddr: { .family: INET, port: 53, addr: 192.168.30.1 }, addrlen: 16) = 0
root@x2:~#
Suggested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Howard Chu <howardchu95@gmail.com>
Cc: Jakub Brnak <jbrnak@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
