lkml.org 
[lkml]   [2020]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v3 1/2] perf: support build BPF skeletons with perf
Date


> On Dec 9, 2020, at 9:03 AM, Jiri Olsa <jolsa@redhat.com> wrote:
>
> On Tue, Dec 08, 2020 at 10:16:45AM -0800, Song Liu wrote:
>> BPF programs are useful in perf to profile BPF programs. BPF skeleton is
>> by far the easiest way to write BPF tools. Enable building BPF skeletons
>> in util/bpf_skel. A dummy bpf skeleton is added. More bpf skeletons will
>> be added for different use cases.
>>
>> Signed-off-by: Song Liu <songliubraving@fb.com>
>
> one nit below, but other than that:
>
> Acked-by: Jiri Olsa <jolsa@redhat.com>

Thanks!

[...]

>>
>> +ifdef BUILD_BPF_SKEL
>> + $(call feature_check,clang-bpf-co-re)
>> + ifeq ($(feature-clang-bpf-co-re), 0)
>> + dummy := $(error Error: clang too old. Please install recent clang)
>> + endif
>> + $(call detected,CONFIG_PERF_BPF_SKEL)
>> + CFLAGS += -DBUILD_BPF_SKEL
>
> sorry I did not notice before, but we use HAVE_* name style for these C macros
>
> HAVE_BPF_SKEL should fit

I will fix this in v4.

\
 
 \ /
  Last update: 2020-12-10 00:34    [W:0.351 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site