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 2884dc7 commit d0d1df8Copy full SHA for d0d1df8
net/bpf/test_run.c
@@ -727,10 +727,16 @@ static void
727
__bpf_prog_test_run_raw_tp(void *data)
728
{
729
struct bpf_raw_tp_test_run_info *info = data;
730
+ struct bpf_trace_run_ctx run_ctx = {};
731
+ struct bpf_run_ctx *old_run_ctx;
732
+
733
+ old_run_ctx = bpf_set_run_ctx(&run_ctx.run_ctx);
734
735
rcu_read_lock();
736
info->retval = bpf_prog_run(info->prog, info->ctx);
737
rcu_read_unlock();
738
739
+ bpf_reset_run_ctx(old_run_ctx);
740
}
741
742
int bpf_prog_test_run_raw_tp(struct bpf_prog *prog,
0 commit comments