lkml.org 
[lkml]   [2019]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH bpf-next 1/3] libbpf: add asm/unistd.h to xsk to get __NR_mmap2
    Date


    On 8/13/19 3:23 AM, Ivan Khoronzhuk wrote:
    > That's needed to get __NR_mmap2 when mmap2 syscall is used.

    It seems I did not have this issue on x64 machine e.g., Fedora 29.
    My glibc version is 2.28. gcc 8.2.1.

    What is your particular system glibc version?
    So needing kernel asm/unistd.h is because of older glibc on your
    system, or something else? Could you clarify?

    >
    > Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
    > ---
    > tools/lib/bpf/xsk.c | 1 +
    > 1 file changed, 1 insertion(+)
    >
    > diff --git a/tools/lib/bpf/xsk.c b/tools/lib/bpf/xsk.c
    > index 5007b5d4fd2c..f2fc40f9804c 100644
    > --- a/tools/lib/bpf/xsk.c
    > +++ b/tools/lib/bpf/xsk.c
    > @@ -12,6 +12,7 @@
    > #include <stdlib.h>
    > #include <string.h>
    > #include <unistd.h>
    > +#include <asm/unistd.h>
    > #include <arpa/inet.h>
    > #include <asm/barrier.h>
    > #include <linux/compiler.h>
    >
    \
     
     \ /
      Last update: 2019-08-14 02:34    [W:4.048 / U:0.532 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site