mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
1bb5a4415257e02b9357a3a06e31ccd2826f1161
Create the /sys/fs/bpf/tc folder if it does not exist. Also check if pping is run as root, otherwise inform user that it must run as root. Libbpf will attempt to create the /sys/fs/bpf/tc/globals directory when pinning the map, however it will not do so recursivly (so will fail if /sys/fs/bpf/tc does not exist). So as a temporary solution, attempt to create /sys/fs/bpf/tc (however, if sys/fs/bpf is not mounted this will still fail). Signed-off-by: Simon Sundberg <simon.sundberg@kau.se>
Description
No description provided
Languages
C
93.6%
Shell
4.7%
Makefile
1.6%