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...
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"...
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
...
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...
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...
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...
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...
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.
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...
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...
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...
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...
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...