bpf: Use hyphens in directory names instead of underscores

This commit is contained in:
DaanDeMeyer
2025-07-13 12:45:37 +02:00
parent d962bfeb03
commit f4df5902d8
27 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
/* libbpf, clang and llc compile time dependencies are satisfied */
#include "bpf-dlopen.h"
#include "bpf-link.h"
#include "bpf/restrict_fs/restrict-fs-skel.h"
#include "bpf/restrict-fs/restrict-fs-skel.h"
#define CGROUP_HASH_SIZE_MAX 2048
+1 -1
View File
@@ -16,7 +16,7 @@
#include "bpf-dlopen.h"
#include "bpf-link.h"
#include "bpf/restrict_ifaces/restrict-ifaces-skel.h"
#include "bpf/restrict-ifaces/restrict-ifaces-skel.h"
static struct restrict_ifaces_bpf *restrict_ifaces_bpf_free(struct restrict_ifaces_bpf *obj) {
restrict_ifaces_bpf__destroy(obj);
+2 -2
View File
@@ -11,8 +11,8 @@
/* libbpf, clang, llvm and bpftool compile time dependencies are satisfied */
#include "bpf-dlopen.h"
#include "bpf-link.h"
#include "bpf/socket_bind/socket-bind-api.bpf.h"
#include "bpf/socket_bind/socket-bind-skel.h"
#include "bpf/socket-bind/socket-bind-api.bpf.h"
#include "bpf/socket-bind/socket-bind-skel.h"
static struct socket_bind_bpf *socket_bind_bpf_free(struct socket_bind_bpf *obj) {
/* socket_bind_bpf__destroy handles object == NULL case */
@@ -13,4 +13,4 @@
#define bpf_object__load_skeleton sym_bpf_object__load_skeleton
#define bpf_object__destroy_skeleton sym_bpf_object__destroy_skeleton
#include "bpf/restrict_fs/restrict-fs.skel.h"
#include "bpf/restrict-fs/restrict-fs.skel.h"
@@ -13,4 +13,4 @@
#define bpf_object__load_skeleton sym_bpf_object__load_skeleton
#define bpf_object__destroy_skeleton sym_bpf_object__destroy_skeleton
#include "bpf/restrict_ifaces/restrict-ifaces.skel.h"
#include "bpf/restrict-ifaces/restrict-ifaces.skel.h"
@@ -13,4 +13,4 @@
#define bpf_object__load_skeleton sym_bpf_object__load_skeleton
#define bpf_object__destroy_skeleton sym_bpf_object__destroy_skeleton
#include "bpf/socket_bind/socket-bind.skel.h"
#include "bpf/socket-bind/socket-bind.skel.h"
+1 -1
View File
@@ -54,7 +54,7 @@
#include "bpf-dlopen.h"
#include "bpf-link.h"
#include "bpf-restrict-fs.h"
#include "bpf/restrict_fs/restrict-fs-skel.h"
#include "bpf/restrict-fs/restrict-fs-skel.h"
#endif
#define CGROUP_CPU_QUOTA_DEFAULT_PERIOD_USEC (100 * USEC_PER_MSEC)
+3 -3
View File
@@ -70,9 +70,9 @@ libcore_sources = files(
'varlink-unit.c',
)
subdir('bpf/socket_bind')
subdir('bpf/restrict_fs')
subdir('bpf/restrict_ifaces')
subdir('bpf/socket-bind')
subdir('bpf/restrict-fs')
subdir('bpf/restrict-ifaces')
if conf.get('BPF_FRAMEWORK') == 1
libcore_sources += [