Skip to content

Comments

Misc improvements#634

Merged
jschwinger233 merged 3 commits intomainfrom
pr/brb/misc-improvements
Jan 5, 2026
Merged

Misc improvements#634
jschwinger233 merged 3 commits intomainfrom
pr/brb/misc-improvements

Conversation

@brb
Copy link
Member

@brb brb commented Dec 31, 2025

Depends on #633. See commit msgs.

brb added 3 commits January 5, 2026 08:32
Currently, the k(ret)probes are loaded unconditionally even if
--filter-track-skb is not set. This change ensures they are only
loaded when the flag is explicitly provided.

See 7a33683 ("--filter-track-skb can track skbs re-built from
veth_convert_skb_to_xdp_buff") for more details.

Signed-off-by: Martynas Pumputis <[email protected]>
Add a simple PID-to-name cache to avoid repeated /proc lookups when
tracing events from the same processes.

Signed-off-by: Martynas Pumputis <[email protected]>
Replace multiple fmt.Fprintf calls with strings.Builder to batch
output formatting in memory before writing to the file. This reduces
syscall overhead:

- Before: 5061 ns/op, 688 B/op, 43 allocs/op
- After:  2745 ns/op, 1144 B/op, 42 allocs/op

Signed-off-by: Martynas Pumputis <[email protected]>
@brb brb force-pushed the pr/brb/misc-improvements branch from 12a3487 to e6a5086 Compare January 5, 2026 07:32
@brb brb marked this pull request as ready for review January 5, 2026 07:32
@brb brb requested a review from a team as a code owner January 5, 2026 07:32
@jschwinger233 jschwinger233 merged commit 3fbbf7b into main Jan 5, 2026
10 checks passed
@jschwinger233 jschwinger233 deleted the pr/brb/misc-improvements branch January 5, 2026 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants