Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sample kprobe yaml with 9 global variables #339

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions config/samples/bpfman.io_v1alpha1_globals_kprobeprogram.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: bpfman.io/v1alpha1
kind: KprobeProgram
metadata:
labels:
app.kubernetes.io/name: kprobeprogram
name: kprobe-globals-test
spec:
bpffunctionname: kprobe_globals
# Select all nodes
nodeselector: {}
func_name: try_to_wake_up
offset: 0
retprobe: false
bytecode:
image:
url: quay.io/bpfman-bytecode/kprobe_globals:latest
globaldata:
sampling:
- 0x01
- 0x02
- 0x03
- 0x04
trace_messages:
- 0x05
enable_rtt:
- 0x06
enable_pca:
- 0x07
enable_dns_tracking:
- 0x08
enable_flows_filtering:
- 0x09
dns_port:
- 0x0A
- 0x0B
enable_network_events_monitoring:
- 0x0C
network_events_monitoring_groupid:
Copy link
Contributor

Choose a reason for hiding this comment

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

since this just sample can u use general var name instead of application specific ?

- 0x0D
Loading