@@ -12006,6 +12006,8 @@ bpf_program__attach_uprobe_multi(const struct bpf_program *prog,
12006
12006
ref_ctr_offsets = OPTS_GET (opts , ref_ctr_offsets , NULL );
12007
12007
cookies = OPTS_GET (opts , cookies , NULL );
12008
12008
cnt = OPTS_GET (opts , cnt , 0 );
12009
+ retprobe = OPTS_GET (opts , retprobe , false);
12010
+ session = OPTS_GET (opts , session , false);
12009
12011
12010
12012
/*
12011
12013
* User can specify 2 mutually exclusive set of inputs:
@@ -12034,6 +12036,9 @@ bpf_program__attach_uprobe_multi(const struct bpf_program *prog,
12034
12036
return libbpf_err_ptr (- EINVAL );
12035
12037
}
12036
12038
12039
+ if (retprobe && session )
12040
+ return libbpf_err_ptr (- EINVAL );
12041
+
12037
12042
if (func_pattern ) {
12038
12043
if (!strchr (path , '/' )) {
12039
12044
err = resolve_full_path (path , full_path , sizeof (full_path ));
@@ -12057,12 +12062,6 @@ bpf_program__attach_uprobe_multi(const struct bpf_program *prog,
12057
12062
offsets = resolved_offsets ;
12058
12063
}
12059
12064
12060
- retprobe = OPTS_GET (opts , retprobe , false);
12061
- session = OPTS_GET (opts , session , false);
12062
-
12063
- if (retprobe && session )
12064
- return libbpf_err_ptr (- EINVAL );
12065
-
12066
12065
attach_type = session ? BPF_TRACE_UPROBE_SESSION : BPF_TRACE_UPROBE_MULTI ;
12067
12066
12068
12067
lopts .uprobe_multi .path = path ;
0 commit comments