scx_layered: fix lsp etc on util.bpf.c

This commit is contained in:
Pat Somaru 2024-10-11 08:02:23 -04:00
parent 4b817dc54b
commit 7627e1cc42
No known key found for this signature in database
GPG Key ID: 28E923FAB0440132

View File

@ -1,5 +1,20 @@
/* to be included in the main bpf.c file */
#ifdef LSP
#define __bpf__
#include "../../../../include/scx/common.bpf.h"
#include "../../../../include/scx/ravg_impl.bpf.h"
#include "intf.h"
#include <stdbool.h>
#include <string.h>
#include <bpf/bpf_core_read.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#endif
struct {
__uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);
__uint(key_size, sizeof(u32));