All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: tmricht@linux.ibm.com, hca@linux.ibm.com, svens@linux.ibm.com,
	jolsa@redhat.com, linux-perf-users@vger.kernel.org,
	bpf@vger.kernel.org
Subject: Re: [PATCH] perf test: Fix basic bpf filtering test
Date: Tue, 1 Sep 2020 12:17:10 -0300	[thread overview]
Message-ID: <20200901151710.GD1424523@kernel.org> (raw)
In-Reply-To: <1954643f-e268-b7bc-7c6e-75205d9f5f92@linux.ibm.com>

Em Tue, Aug 25, 2020 at 10:32:45AM +0200, Sumanth Korikkar escreveu:
> Kind Ping. Thank you.

I've applied it already, will go to Linus today.

- Arnaldo
 
> On 8/17/20 9:27 AM, Sumanth Korikkar wrote:
> > BPF basic filtering test fails on s390x (when vmlinux debuginfo is
> > utilized instead of /proc/kallsyms)
> > 
> > Info:
> > - bpf_probe_load installs the bpf code at do_epoll_wait.
> > - For s390x, do_epoll_wait resolves to 3 functions including inlines.
> >    found inline addr: 0x43769e
> >    Probe point found: __s390_sys_epoll_wait+6
> >    found inline addr: 0x437290
> >    Probe point found: do_epoll_wait+0
> >    found inline addr: 0x4375d6
> >    Probe point found: __se_sys_epoll_wait+6
> > - add_bpf_event  creates evsel for every probe in a BPF object. This
> >    results in 3 evsels.
> > 
> > Solution:
> > - Expected result = 50% of the samples to be collected from epoll_wait *
> >    number of entries present in the evlist.
> > 
> > Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
> > Reviewed-by: Thomas Richter <tmricht@linux.ibm.com>
> > ---
> >   tools/perf/tests/bpf.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/tools/perf/tests/bpf.c b/tools/perf/tests/bpf.c
> > index 5d20bf8397f0..cd77e334e577 100644
> > --- a/tools/perf/tests/bpf.c
> > +++ b/tools/perf/tests/bpf.c
> > @@ -197,7 +197,7 @@ static int do_test(struct bpf_object *obj, int (*func)(void),
> >   		perf_mmap__read_done(&md->core);
> >   	}
> > -	if (count != expect) {
> > +	if (count != expect * evlist->core.nr_entries) {
> >   		pr_debug("BPF filter result incorrect, expected %d, got %d samples\n", expect, count);
> >   		goto out_delete_evlist;
> >   	}
> 
> -- 
> Sumanth Korikkar
> 

-- 

- Arnaldo

      reply	other threads:[~2020-09-01 15:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-17  7:27 [PATCH] perf test: Fix basic bpf filtering test Sumanth Korikkar
2020-08-25  8:32 ` Sumanth Korikkar
2020-09-01 15:17   ` Arnaldo Carvalho de Melo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200901151710.GD1424523@kernel.org \
    --to=acme@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=hca@linux.ibm.com \
    --cc=jolsa@redhat.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sumanthk@linux.ibm.com \
    --cc=svens@linux.ibm.com \
    --cc=tmricht@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.