History

bpf: Add test ops for BPF_PROG_TYPE_TRACING

The current fexit and fentry tests rely on a different program to exercise the functions they attach to. Instead of doing this, implement the test operations for tracing which will also be used for BPF_MODIFY_RETURN in a subsequent patch. Also, clean up the fexit test to use the generated skeleton.

KP Singh committed 6 years ago

Commit da00d2f1 parent aca228c6 files · +67 −76Browse files

Showing the changes to kernel (1 of 6 files). Show all

Unified · Split

kernel/trace/bpf_trace.c+1−0
@@ -1266,6 +1266,7 @@ const struct bpf_verifier_ops tracing_verifier_ops = { · 1265 unmodified lines
12661266 };
12671267
12681268 const struct bpf_prog_ops tracing_prog_ops = {
1269+ .test_run = bpf_prog_test_run_tracing,
12691270 };
12701271
12711272 static bool raw_tp_writable_prog_is_valid_access(int off, int size,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t