Skip to content

Conversation

olsajiri
Copy link
Contributor

@olsajiri olsajiri commented Jun 11, 2025

proper cleanup for uprobe and tracepoint sensors, please see changelogs

@olsajiri olsajiri added the release-note/minor This PR introduces a minor user-visible change label Jun 11, 2025
@olsajiri olsajiri force-pushed the pr/olsajiri/fixes branch 2 times, most recently from 2f22dd8 to f567041 Compare June 11, 2025 12:40
@olsajiri olsajiri changed the title tetragon: assorted fixes tetragon: do proper cleanup for uprobe and tracepoint sensors Jun 11, 2025
olsajiri added 2 commits June 11, 2025 13:37
Properly release uprobe entries when sensor is destroyed.

Signed-off-by: Jiri Olsa <[email protected]>
Properly release tracepoint entries when sensor is destroyed.

Signed-off-by: Jiri Olsa <[email protected]>
@olsajiri olsajiri force-pushed the pr/olsajiri/fixes branch from f567041 to 1d38d2c Compare June 11, 2025 13:38
@olsajiri olsajiri marked this pull request as ready for review June 11, 2025 13:39
@olsajiri olsajiri requested a review from a team as a code owner June 11, 2025 13:39
@olsajiri olsajiri requested review from kkourt and tpapagian June 11, 2025 13:39
@@ -70,15 +66,14 @@ func init() {

// genericTracepoint is the internal representation of a tracepoint
type genericTracepoint struct {
tableId idtable.EntryID
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit for coherence

Suggested change
tableId idtable.EntryID
tableID idtable.EntryID

Copy link
Contributor Author

@olsajiri olsajiri Jun 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hum, seems like we use tableId everywhere:

pkg/sensors/tracing/genericlsm.go:      tableId   idtable.EntryID
pkg/sensors/tracing/generickprobe.go:   tableId idtable.EntryID
pkg/sensors/tracing/generictracepoint.go:       tableId idtable.EntryID
pkg/sensors/tracing/genericuprobe.go:   tableId      idtable.EntryID

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I'll spin a follow up if we decide we want that change

@olsajiri olsajiri merged commit 159fd10 into main Jun 11, 2025
47 checks passed
@olsajiri olsajiri deleted the pr/olsajiri/fixes branch June 11, 2025 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/minor This PR introduces a minor user-visible change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants