Recent content by NobinPegasus

  1. N

    invalid access to map value, value_size=128 off=0 size=0; libbpf: prog 'xdp_parser_func': failed to load: -13

    I've completed the assignment as mentioned in the solutions. Here's the repo I'm trying to test on my local machine: https://github.com/xdp-project/xdp-tutorial/blob/master/packet01-parsing/README.org Here's my C code: /* SPDX-License-Identifier: GPL-2.0 */ #include <stddef.h> #include...
  2. N

    go install shows permission denied

    I'm new to Go. How can I find cmd? what is the <PATH_TO> here? How to set GOPATH? pegasus@pegasus:~$ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/home/pegasus/.cache/go-build" GOENV="/home/pegasus/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux"...
  3. N

    protoc-gen-go: program not found or is not executable

    I have installed the go plugins. Still when I try to run events.proto code it shows error: sudo go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest sudo go install google.golang.org/protobuf/cmd/protoc-gen-go@latest pegasus@pegasus:~/Documents/eBPF/go-xdp-examples/gRPC_test$ tree ...
  4. N

    go install shows permission denied

    Whenever I try to install any package in go. using go install it says permission denied. Then I have to do sudo go install. Is it normal? Or do I have to change some permissions? How can I fix it? pegasus@pegasus:~$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest...
  5. N

    Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-UFOYK2/org.freedesktop.Platform-FJ9MK2

    When I try to install using flatpak install I get this error. How can I fix it? Warning: Could not unmount revokefs-fuse filesystem at /var/tmp/flatpak-cache-UFOYK2/org.freedesktop.Platform.Locale-LEOYK2: Child process exited with code 1 Warning: Could not unmount revokefs-fuse filesystem at...
  6. N

    No openjdk development package found, please install JDK package,

    I have my java installed and linked. Still when I run another config it shows no openjdk development package found. pegasus@pegasus:~/Documents/perf-6.4.0$ make -C tools/perf/ make: Entering directory '/home/pegasus/Documents/perf-6.4.0/tools/perf' BUILD: Doing 'make -j16' parallel build...
  7. N

    Failing to build linux perf

    I have a custom built kernel. I want to build and install perf. How can I do it? pegasus@pegasus:/usr/src/linux-headers-6.4.0-060400-generic/tools/perf$ make BUILD: Doing 'make -j16' parallel build Makefile.perf:8: ../scripts/utilities.mak: No such file or directory make[1]: *** No rule to...
  8. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    I solved the issue. It was an issue with libelf. I downloaded a latest libelf version. Then Configured and installed it. libelf also had some dependency missing like specific versions of sqlite, libcurl, libarchive.
  9. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    I have uninstalled libelf-dev and now I found this pegasus@pegasus:~/Documents/eBPF/libbpf/src$ sudo apt search libelf Sorting... Done Full Text Search... Done libdwarf++0/lunar 0.3-3 amd64 C++11 DWARF parser libelf++0/lunar 0.3-3 amd64 C++11 ELF parser libelf-dev/lunar 0.188-2.1 amd64...
  10. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    You could also refer to here. Where I had a small chat about this issue. https://github.com/libbpf/libbpf/issues/784
  11. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    Also there are so many usdt.c. I'm not sure which one is getting used. pegasus@pegasus:~/Documents/eBPF/xdp-tutorial/libbpf/src$ locate usdt.c /home/pegasus/.local/share/Trash/files/bcc/build/src/cc/CMakeFiles/bcc-static.dir/usdt/usdt.cc.o...
  12. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    Also these are the library function they shouldn't be edited. It should work without be manipulating the source
  13. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    I'm not concerned about warnings. But the error message. I'm unable to build all the tools that comes in https://github.com/libbpf/libbpf libbpf repo. On a fresh ubuntu installation it works well. But on my local machine I've some kind of dependency conflicts. But unable to figure it out. It's...
  14. N

    unknown type name ‘GElf_Nhdr’; did you mean ‘GElf_Shdr’? while building libbpf

    Whenever I'm trying to build libbpf. I'm facing the following error. When I try to build tools related libbpf I also face the same errors. pegasus@pegasus:~/Documents/eBPF/libbpf/src$ make MKDIR staticobjs CC staticobjs/bpf.o CC staticobjs/btf.o CC...
  15. N

    Baobab (Disk Usage Analyzer) not fully showing usage?

    Here's the output of Baobab. It shows that I have 750 GB total. But when I press on it I could only find 566.7 GB. Where is the rest of the 124 GB? Why is it not showing? pegasus@pegasus:~$ df -h Filesystem Size Used Avail Use% Mounted on tmpfs 1.6G 3.9M 1.5G 1% /run...
Top