Fixed libbpf load issue
Due sed
's, the netdata plugin can't find files, the error looks like this:
Jun 29 18:44:08 example.com netdata[279688]: child pid 385647 core dumped by signal 6.
Jun 29 18:44:08 example.com netdata[279688]: PLUGINSD: 'host:example.com', '/usr/lib/netdata/plugins.d/ebpf.plugin' (pid 385647) exited with error code -2, but has given useful output in the past (1394 times). Waiting a bit before starting it again.
Jun 29 18:44:18 example.com ebpf.plugin[385683]: Name resolution is disabled, collector will not parse "hostnames" list.
Jun 29 18:44:18 example.com ebpf.plugin[385683]: Cannot read process groups configuration file '/etc/netdata/apps_groups.conf'. Will try '/usr/lib/netdata/conf.d/apps_groups.conf'
Jun 29 18:44:18 example.com ebpf.plugin[385683]: PROCFILE: Cannot open file '/proc/385647/status'
Jun 29 18:44:18 example.com ebpf.plugin[385683]: Cannot open /proc/385647/status
Jun 29 18:44:18 example.com netdata[385683]: libbpf: elf: failed to open /usr/lib/netdata/plugins.d/ebpf.d/rnetdata_ebpf_process.5.10.o: No such file or directory
Jun 29 18:44:18 example.com netdata[385683]: libbpf: elf: failed to open /usr/lib/netdata/plugins.d/ebpf.d/rnetdata_ebpf_oomkill.5.4.o: No such file or directory
Jun 29 18:44:18 example.com ebpf.plugin[385683]: Cannot find syscall __x64_sys_sync we are not going to monitor it.
Jun 29 18:44:18 example.com netdata[385683]: libbpf: elf: failed to open /usr/lib/netdata/plugins.d/ebpf.d/rnetdata_ebpf_softirq.5.4.o: No such file or directory
Jun 29 18:44:19 example.com netdata[385683]: malloc(): invalid size (unsorted)