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 2faf618 commit 1ad610aCopy full SHA for 1ad610a
bpf_queue.c
@@ -348,9 +348,6 @@ bpf_queue_open1(struct quark_queue *qq, int use_fentry)
348
349
libbpf_set_print(libbpf_print_fn);
350
351
- if ((qq->flags & QQ_EBPF) == 0)
352
- return (errno = ENOTSUP, -1);
353
-
354
if ((bqq = calloc(1, sizeof(*bqq))) == NULL)
355
return (-1);
356
@@ -510,6 +507,9 @@ bpf_queue_open1(struct quark_queue *qq, int use_fentry)
510
507
int
511
508
bpf_queue_open(struct quark_queue *qq)
512
509
{
+ if ((qq->flags & QQ_EBPF) == 0)
+ return (errno = ENOTSUP, -1);
+
513
if (bpf_queue_open1(qq, 1) == -1) {
514
qwarn("bpf_queue_open failed with fentry, trying kprobe");
515
return bpf_queue_open1(qq, 0);
0 commit comments