From: Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com>
To: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] perf record: Fix perf_can_aux_sample_size()
Date: Fri, 22 Nov 2019 10:49:18 -0300 [thread overview]
Message-ID: <20191122134918.GB9996@kernel.org> (raw)
In-Reply-To: <20191122134257.GA9996@kernel.org>
Em Fri, Nov 22, 2019 at 10:42:57AM -0300, Arnaldo Carvalho de Melo escreveu:
> Em Fri, Nov 22, 2019 at 11:48:56AM +0200, Adrian Hunter escreveu:
> > perf_can_aux_sample_size() always returned true because it did not pass
> > the attribute size to sys_perf_event_open, nor correctly check the
> > return value and errno.
> >
> > Before:
> >
> > # perf record --aux-sample -e '{intel_pt//u,branch-misses:u}'
> > Error:
> > The sys_perf_event_open() syscall returned with 7 (Argument list too long) for event (branch-misses:u).
> > /bin/dmesg | grep -i perf may provide additional information.
> >
> > After:
> >
> > # perf record --aux-sample -e '{intel_pt//u,branch-misses:u}'
> > AUX area sampling is not supported by kernel
>
> Since this hasn't been sent to Ingo, I combined it with the patch that
> introduced the problem, this one:
>
> c31d79e7a052 perf record: Add a function to test for kernel support for AUX area sampling
>
> Thanks for the quick fix,
Wrapping up, at the end of the series I now get:
[root@quaco ~]# perf record --aux-sample -e '{intel_pt//u,branch-misses:u}'
AUX area sampling is not supported by kernel
[root@quaco ~]#
[root@quaco ~]# uname -a
Linux quaco 5.4.0-rc8 #1 SMP Mon Nov 18 06:15:31 -03 2019 x86_64 x86_64 x86_64 GNU/Linux
[root@quaco ~]#
Thanks,
- Arnaldo
prev parent reply other threads:[~2019-11-22 13:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-22 9:48 [PATCH] perf record: Fix perf_can_aux_sample_size() Adrian Hunter
2019-11-22 13:42 ` Arnaldo Carvalho de Melo
2019-11-22 13:49 ` 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=20191122134918.GB9996@kernel.org \
--to=arnaldo.melo@gmail.com \
--cc=adrian.hunter@intel.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox