bpf: Use hyphens in directory names instead of underscores
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
+1
-1
@@ -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"
|
||||
+1
-1
@@ -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"
|
||||
+1
-1
@@ -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
@@ -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)
|
||||
|
||||
@@ -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 += [
|
||||
|
||||
Reference in New Issue
Block a user