mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-24 11:50:23 +00:00
scx_layered: fix lsp etc on util.bpf.c
This commit is contained in:
parent
4b817dc54b
commit
7627e1cc42
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user