We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d0c269 commit f3e9f59Copy full SHA for f3e9f59
net/bpf/test_run.c
@@ -841,10 +841,16 @@ static void
841
__bpf_prog_test_run_raw_tp(void *data)
842
{
843
struct bpf_raw_tp_test_run_info *info = data;
844
+ struct bpf_trace_run_ctx run_ctx = {};
845
+ struct bpf_run_ctx *old_run_ctx;
846
+
847
+ old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx);
848
849
rcu_read_lock();
850
info->retval = bpf_prog_run(info->prog, info->ctx);
851
rcu_read_unlock();
852
853
+ bpf_reset_run_ctx(old_run_ctx);
854
}
855
856
int bpf_prog_test_run_raw_tp(struct bpf_prog *prog,
0 commit comments