lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <86F842B0-BF89-4418-BA2E-F93E50726A81@fb.com>
Date:   Tue, 24 Nov 2020 23:31:49 +0000
From:   Song Liu <songliubraving@...com>
To:     Jiri Olsa <jolsa@...hat.com>
CC:     open list <linux-kernel@...r.kernel.org>,
        Kernel Team <Kernel-team@...com>,
        Peter Ziljstra <peterz@...radead.org>,
        Ingo Molnar <mingo@...hat.com>,
        Arnaldo Carvalho de Melo <acme@...nel.org>,
        Mark Rutland <mark.rutland@....com>,
        Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
        "namhyung@...nel.org" <namhyung@...nel.org>
Subject: Re: [RFC 2/2] perf-stat: enable counting events for BPF programs



> On Nov 23, 2020, at 3:47 PM, Jiri Olsa <jolsa@...hat.com> wrote:

[...]

> 
> I still need to review this deeply, but so far I'm getting this error:
> 
> 	# ./perf stat -b 40
> 	libbpf: elf: skipping unrecognized data section(9) .eh_frame
> 	libbpf: elf: skipping relo section(15) .rel.eh_frame for section(9) .eh_frame
> 	libbpf: XXX is not found in vmlinux BTF
> 	libbpf: failed to load object 'bpf_prog_profiler_bpf'
> 	libbpf: failed to load BPF skeleton 'bpf_prog_profiler_bpf': -2
> 	libbpf: elf: skipping unrecognized data section(9) .eh_frame
> 	libbpf: elf: skipping relo section(15) .rel.eh_frame for section(9) .eh_frame
> 	libbpf: XXX is not found in vmlinux BTF
> 	libbpf: failed to load object 'bpf_prog_profiler_bpf'
> 	libbpf: failed to load BPF skeleton 'bpf_prog_profiler_bpf': -2
> 	libbpf: elf: skipping unrecognized data section(9) .eh_frame
> 	libbpf: elf: skipping relo section(15) .rel.eh_frame for section(9) .eh_frame
> 	libbpf: XXX is not found in vmlinux BTF
> 	libbpf: failed to load object 'bpf_prog_profiler_bpf'
> 	libbpf: failed to load BPF skeleton 'bpf_prog_profiler_bpf': -2
> 	libbpf: elf: skipping unrecognized data section(9) .eh_frame
> 	libbpf: elf: skipping relo section(15) .rel.eh_frame for section(9) .eh_frame
> 	libbpf: XXX is not found in vmlinux BTF
> 	libbpf: failed to load object 'bpf_prog_profiler_bpf'
> 	libbpf: failed to load BPF skeleton 'bpf_prog_profiler_bpf': -2
> 	libbpf: elf: skipping unrecognized data section(9) .eh_frame
> 	libbpf: elf: skipping relo section(15) .rel.eh_frame for section(9) .eh_frame
> 	libbpf: XXX is not found in vmlinux BTF
> 	libbpf: failed to load object 'bpf_prog_profiler_bpf'
> 	libbpf: failed to load BPF skeleton 'bpf_prog_profiler_bpf': -2
> 	libbpf: elf: skipping unrecognized data section(9) .eh_frame
> 	libbpf: elf: skipping relo section(15) .rel.eh_frame for section(9) .eh_frame
> 	libbpf: XXX is not found in vmlinux BTF
> 	libbpf: failed to load object 'bpf_prog_profiler_bpf'
> 	libbpf: failed to load BPF skeleton 'bpf_prog_profiler_bpf': -2
> 	libbpf: elf: skipping unrecognized data section(9) .eh_frame
> 	libbpf: elf: skipping relo section(15) .rel.eh_frame for section(9) .eh_frame
> 	libbpf: XXX is not found in vmlinux BTF
> 	libbpf: failed to load object 'bpf_prog_profiler_bpf'
> 	libbpf: failed to load BPF skeleton 'bpf_prog_profiler_bpf': -2
> 	libbpf: elf: skipping unrecognized data section(9) .eh_frame
> 	libbpf: elf: skipping relo section(15) .rel.eh_frame for section(9) .eh_frame
> 	libbpf: XXX is not found in vmlinux BTF
> 	libbpf: failed to load object 'bpf_prog_profiler_bpf'
> 	libbpf: failed to load BPF skeleton 'bpf_prog_profiler_bpf': -2
> 	libbpf: Can't get the 0th fd from program fentry_XXX: only -1 instances
> 	libbpf: prog 'fentry_XXX': can't attach before loaded
> 	libbpf: failed to auto-attach program 'fentry_XXX': -22

I cannot reproduce this. Is 40 a valid BPF program ID? Could you please share 
more information about it with "bpftool prog show id 40"?

Thanks,
Song

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ