Closed boycechen closed 6 months ago
I have this probolem,too
Hi Guys, the main branch is dedicated to work with newer kernels and eBPF. Could you try this branch: master-kernel (https://github.com/Open-CAS/standalone-linux-io-tracer/tree/master-kernel). It sill uses kernel module to collect fetch io traces.
@zwbrealm The fix is coming. You can check if this solve your problem,
Fix integrated to the main
@mariuszbarczak @robertbaldyga @micrakow @mmkayPL ### I build the source code on ubuntu 20.04 with kernel 5.15.0-60-generic, but it fails with error in 98% progress as follows:
[ 98%] [clang] Building BPF object: iotrace In file included from /root/standalone-linux-io-tracer/source/iotrace/iotrace.bpf.c:12:
/root/standalone-linux-io-tracer/source/iotrace/iotrace.bpf.defs.h:191:37: error: incomplete definition of type 'struct folio' struct address_space *mapping = BPF_CORE_READ(folio, mapping); ^
~~~~~~~~ /usr/include/bpf/bpf_core_read.h:403:2: note: expanded from macro 'BPF_CORE_READ' _type((src), a, ##__VA_ARGS) __r; \ ^~~~~~~~ /usr/include/bpf/bpf_core_read.h:274:29: note: expanded from macro '___type'define type(...) typeof(arrow(__VA_ARGS__))
/usr/include/bpf/bpf_core_read.h:272:23: note: expanded from macro '___arrow'
define arrow(...) apply(arrow, narg(VA_ARGS))(VA_ARGS)
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) /usr/include/bpf/bpf_core_read.h:223:25: note: expanded from macro '___concat'
define ___concat(a, b) a ## b