[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9bd8fd7e-845e-abc0-b656-552294991117@iogearbox.net>
Date: Tue, 18 Feb 2020 16:09:27 +0100
From: Daniel Borkmann <daniel@...earbox.net>
To: Song Liu <songliubraving@...com>, netdev@...r.kernel.org,
bpf@...r.kernel.org
Cc: kernel-team@...com, ast@...nel.org, Yonghong Song <yhs@...com>
Subject: Re: [PATCH bpf-next] bpf: allow bpf_perf_event_read_value in all BPF
programs
On 2/15/20 12:41 AM, Song Liu wrote:
> bpf_perf_event_read_value() is NMI safe. Enable it for all BPF programs.
> This can be used in fentry/fexit to profile BPF program and individual
> kernel function with hardware counters.
>
> Cc: Yonghong Song <yhs@...com>
> Signed-off-by: Song Liu <songliubraving@...com>
And ironically, we had that already for perf_event_read. Applied, thanks!
Powered by blists - more mailing lists