lkml.org 
[lkml]   [2021]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC/PATCHSET 0/5] perf ftrace: Implement function latency histogram (v1)
Em Wed, Dec 15, 2021 at 12:30:10PM -0300, Arnaldo Carvalho de Melo escreveu:
> Em Mon, Dec 13, 2021 at 11:40:16AM -0800, Namhyung Kim escreveu:
> > On Mon, Dec 13, 2021 at 10:24 AM Arnaldo Carvalho de Melo
> > <acme@kernel.org> wrote:
> > >
> > > Em Mon, Nov 29, 2021 at 03:18:25PM -0800, Namhyung Kim escreveu:
> > > > Hello,
> > > >
> > > > I've implemented 'latency' subcommand in the perf ftrace command to
> > > > show a histogram of function latency.
> > >
> > > This still applies cleanly, I'll test it later.
> >
> > Thank you Arnaldo! While I have some small modifications
> > but the functionality should be the same. Please let me know
> > if you have any suggestions.
>
> So, it is failing here with:

So that 'fd' variable and the cpumap.h problems goes away when the last
patch is applied, but for bisection its better to apply the patch below
to 4/5.

I tested it all, cool stuff, will you resubmit soon?

I pushed it to the tmp.perf/ftrace_bpf branch on my repo at:

git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git

https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/log/?h=tmp.perf/ftrace_bpf

With committer testing notes.

- Arnaldo

> Fixed with:
>
>
> diff --git a/tools/perf/util/bpf_ftrace.c b/tools/perf/util/bpf_ftrace.c
> index 1975a6fe73c9fa8b..f5b49fc056ab8b95 100644
> --- a/tools/perf/util/bpf_ftrace.c
> +++ b/tools/perf/util/bpf_ftrace.c
> @@ -5,6 +5,7 @@
>
> #include <linux/err.h>
>
> +#include "util/cpumap.h"
> #include "util/ftrace.h"
> #include "util/debug.h"
> #include "util/bpf_counter.h"
> @@ -15,7 +16,7 @@ static struct func_latency_bpf *skel;
>
> int perf_ftrace__latency_prepare_bpf(struct perf_ftrace *ftrace)
> {
> - int fd, err;
> + int err;
> struct filter_entry *func;
> struct bpf_link *begin_link, *end_link;
>

--

- Arnaldo

\
 
 \ /
  Last update: 2021-12-15 17:09    [W:0.053 / U:1.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site