Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1278440
| From | Arnaldo Carvalho de Melo <acme@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/3] perf: Move exclude_kernel tracepoint check to init event |
| Date | 2015-11-26 21:50 +0100 |
| Message-ID | <qzbEm-1Ge-27@gated-at.bofh.it> (permalink) |
| References | <qzayC-ZY-7@gated-at.bofh.it> <qzayC-ZY-13@gated-at.bofh.it> <qzaIi-13l-11@gated-at.bofh.it> <qzaIi-13l-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Em Thu, Nov 26, 2015 at 08:49:10PM +0100, Jiri Olsa escreveu: > On Thu, Nov 26, 2015 at 04:41:06PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Thu, Nov 26, 2015 at 08:34:48PM +0100, Jiri Olsa escreveu: > > > We suppress events with attr::exclude_kernel set when > > > the event is generated, so following capture will > > > give no warning and produce no data: > > > > > > $ sudo perf record -e sched:sched_switch:u ls > > > $ sudo /perf script | wc -l > > > 0 > > > > > > Checking the attr::exclude_kernel at the event init > > > time and failing right away: > > > > We can as well provide a better warning in the tooling side and don't > > even ask this nonsensical combo to the kernel, right? > > yep.. I'll update my todo ;-) Thanks! > > Arguably the kernel was doing what was asked for, its just that no > > sched:sched_switch took place while in user space... ;-) > > I think it's better to fail like that.. rather than spending > time on figuring why my test did not give me any data ;-) Up to peterz ;-) - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCHv2 0/3] perf ftrace: Several perf ftrace:function event fixes Jiri Olsa <jolsa@kernel.org> - 2015-11-26 20:40 +0100
[PATCH 2/3] perf: Move exclude_kernel tracepoint check to init event Jiri Olsa <jolsa@kernel.org> - 2015-11-26 20:40 +0100
Re: [PATCH 2/3] perf: Move exclude_kernel tracepoint check to init event Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-11-26 20:50 +0100
Re: [PATCH 2/3] perf: Move exclude_kernel tracepoint check to init event Jiri Olsa <jolsa@redhat.com> - 2015-11-26 20:50 +0100
Re: [PATCH 2/3] perf: Move exclude_kernel tracepoint check to init event Arnaldo Carvalho de Melo <acme@kernel.org> - 2015-11-26 21:50 +0100
[PATCH 3/3] perf ftrace: Use ftrace_ops::private to store event pointer Jiri Olsa <jolsa@kernel.org> - 2015-11-26 20:40 +0100
[PATCH 1/3] ftrace: Check sample types only for sampling events Jiri Olsa <jolsa@kernel.org> - 2015-11-26 20:40 +0100
csiph-web