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: <20201125164236.GM2164284@krava>
Date:   Wed, 25 Nov 2020 17:42:36 +0100
From:   Jiri Olsa <jolsa@...hat.com>
To:     Song Liu <songliubraving@...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 Tue, Nov 24, 2020 at 11:31:49PM +0000, Song Liu wrote:
> 
> 
> > 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"?

it was bpftrace kfunc program, I'll try again and get back with
more details if there's still the problem

jirka

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ