I need the kernel headers but there is no /lib/modules/[kernel version]/build
or /usr/src/[kernel version]
. I'm assuming they ripped those out to trim down the image.
My use case: I am using bpftrace
to trace the kernel using kprobes and tracepoints and it needs to know certain struct definitions in order to know the memory layout of args/ret values.
Is there an easy way to download the headers for the kernel I am running? I am running 1.10.7-gke.6 ALPHA (linux 4.14.65+)
.