It is necessary that the kernel be with such parameters:

CONFIG_BPF=y CONFIG_BPF_SYSCALL=y CONFIG_BPF_JIT=y CONFIG_HAVE_EBPF_JIT=y CONFIG_BPF_EVENTS=y 

What do I need to do for this?

  • one
    find the instructions for building the kernel, after running make menuconfig, you will be taken to the text shell of the competition, it has a function to search for parameters by their name, use it to find and set the parameters you need in the required state. - dsnk

1 answer 1

What do I need to do for this?

you must add these lines to the .config file after it is created.

all other actions for building the linux program are as usual (get the sources, build the .config , build (by calling the make program)).

  • Um, sorry for the nouvea, but I have never worked so closely with the core. This file is generally where to create? As if the core is already assembled, it is worth it. works. And so, it is necessary to put the tool, and there such a thing. These parameters are required. - 0-Level UNIX Monk
  • I correctly understood that .config should be created in the same directory where I will build the kernel with the specified parameters, and then as usual, yes? - 0-Level UNIX Monk
  • No, the configuration file needs to be copied to the directory where the sources are unpacked (I just don’t know what you mean by "the directory where I will build the kernel"). - aleksandr barakin
  • If you have a new question, please ask it using the appropriate button in the upper right corner of the page. - aleksandr barakin