diff options
| author | 2026-10-13 12:26:28 +0200 | |
|---|---|---|
| committer | 2026-10-13 12:26:29 +0200 | |
| commit | 6607154049fd5af948f855682b95502b7534bf15 (patch) | |
| tree | 8e64c5864f12c5d89a192abcef0ad1ce1d82f162 /scripts/Makefile.thinlto | |
| parent | calipso: hash the cache key, not the option start, in calipso_cache_add() (diff) | |
| parent | ipv4: Report netns cookie in fib_table_lookup tracepoint (diff) | |
Merge branch 'report-netns-cookie-in-fib-lookup-tracepoints'
Ido Schimmel says:
====================
Report netns cookie in FIB lookup tracepoints
The fib:fib_table_lookup and fib6:fib6_table_lookup tracepoints do not
report the network namespace in which the lookup was performed, so
lookups performed in different namespaces cannot be told apart. The
recorded PID does not help either, as lookups in the receive path are
performed in softIRQ context.
This is a problem, for example, for netns-aware tracers [1] and
multi-ASIC systems where each ASIC and its ports reside in a separate
network namespace.
This patchset reports the network namespace cookie in both tracepoints,
as commit 27cb3de7f43a ("net: add net cookie for net device trace
events") did for the net device tracepoints. This allows filtering
lookups performed in a specific network namespace, for example:
# perf record -a -e fib:fib_table_lookup --filter 'net_cookie == 12'
The cookie of a given network namespace can be retrieved using "ip netns
cookie" [2].
Patch #1 reports the cookie in the IPv6 tracepoint, which is already
passed the network namespace.
Patch #2 passes the network namespace to fib_table_lookup() and from
there to the IPv4 tracepoint.
Patch #3 reports the cookie in the IPv4 tracepoint.
v1: https://lore.kernel.org/netdev/20261006155454.853588-1-idosch@nvidia.com/
[1] https://lore.kernel.org/netdev/c28ded3224734ca62187ed9a41f7ab39ceecb610.camel@fejes.dev/
[2] https://lore.kernel.org/netdev/20260923161756.2914560-1-idosch@nvidia.com/
====================
Link: https://patch.msgid.link/20261008133158.1438907-1-idosch@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
