Re: [RFC PATCH 00/22] perf tools: introduce 'perf bpf' command to load eBPF programs.

From: Ingo Molnar
Date: Fri May 01 2015 - 03:16:42 EST



* Wang Nan <wangnan0@xxxxxxxxxx> wrote:

> This series of patches is an approach to integrate eBPF with perf.

Very promising!

> After applying these patches, users are allowed to use following
> command to load eBPF program compiled by LLVM into kernel:
>
> $ perf bpf sample_bpf.o

Please keep space for a subcommand space as most other perf
subcommands do, i.e. make it something like:

perf bpf add sample_bpf.o

or:

perf bpf run sample_bpf.o

or:

perf bpf load sample_bpf.o

So that future subcommands can be added:

perf bpf list
perf bpf del <...>
perf bpf enable <...>
perf bpf disable <...>
perf bpf help

and 'perf bpf' should probably display the help page by default, so if
curious perf users stumble into the new subcommand, they get a basic
idea about what it's all about.

I.e. you should think about the high level subcommand space right now,
and pick proper names - because this is going to determine the future
usability and the success of the tool to a large degree.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/