Skip to content

Conversation

@josedonizetti
Copy link
Collaborator

@josedonizetti josedonizetti commented Nov 2, 2025

Replace deprecated buffer flags with unified --buffers flag

Flag Migration
Old flags → New flags:
--perf-buffer-size → --buffers kernel-events=
--blob-perf-buffer-size → --buffers kernel-blob=
--pipeline-channel-size → --buffers pipeline=
(new) --buffers control-plane-events=

Config Format
YAML/JSON:

Oldperf-buffer-size: 1024blob-perf-buffer-size: 1024# Newbuffers: kernel-events: 1024 kernel-blob: 1024 control-plane-events: 1024 pipeline: 20000

Helm values:
config.perfBufferSize → config.kernelEvents
config.blobPerfBufferSize → config.kernelBlob
(new) config.controlPlaneEvents
(new) config.pipeline

All buffer values default to empty (no defaults).

⚠️ Breaking change: Old flags are removed.

@codecov
Copy link

codecov bot commented Nov 2, 2025

Codecov Report

❌ Patch coverage is 54.80769% with 47 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@584c3eb). Learn more about missing BASE report.

Files with missing lines Patch % Lines
pkg/cmd/cobra/cobra.go 0.00% 12 Missing ⚠️
cmd/tracee/cmd/root.go 0.00% 10 Missing ⚠️
pkg/cmd/flags/buffers.go 80.43% 9 Missing ⚠️
pkg/cmd/urfave/urfave.go 0.00% 9 Missing ⚠️
cmd/tracee/cmd/man.go 40.00% 3 Missing ⚠️
pkg/cmd/flags/help.go 0.00% 3 Missing ⚠️
pkg/ebpf/controlplane/controller.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5007   +/-   ##
=======================================
  Coverage        ?   29.85%           
=======================================
  Files           ?      235           
  Lines           ?    26249           
  Branches        ?        0           
=======================================
  Hits            ?     7836           
  Misses          ?    17874           
  Partials        ?      539           
Flag Coverage Δ
unit 29.85% <54.80%> (?)
Files with missing lines Coverage Δ
cmd/tracee-ebpf/main.go 0.00% <ø> (ø)
pkg/cmd/cobra/config.go 90.11% <100.00%> (ø)
pkg/config/config.go 0.00% <ø> (ø)
pkg/ebpf/tracee.go 0.00% <ø> (ø)
pkg/ebpf/controlplane/controller.go 16.76% <0.00%> (ø)
cmd/tracee/cmd/man.go 40.62% <40.00%> (ø)
pkg/cmd/flags/help.go 0.00% <0.00%> (ø)
pkg/cmd/flags/buffers.go 80.43% <80.43%> (ø)
pkg/cmd/urfave/urfave.go 0.00% <0.00%> (ø)
cmd/tracee/cmd/root.go 0.00% <0.00%> (ø)
... and 1 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@josedonizetti josedonizetti force-pushed the newBufferFlag branch 3 times, most recently from 737f6b5 to c54bcd5 Compare November 7, 2025 23:15
@josedonizetti josedonizetti marked this pull request as ready for review November 8, 2025 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant