Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, Oct 19, 2012 at 08:46:10AM -0700, Andi Kleen wrote: > > That's what I thought too, but then I don't understand why it was at > > eight before and not > > seven: One instance of each letter, + a second for pp (precise=2). Or > > am I missing > > something here? > > The number is pretty useless imho (it's unlikely to catch any real user > error) > and most likely generates a much longer automata in flex than just a + > So I would drop it. yep, probably we could do better job with checking the modifier after parsing (with just + in flex) ... added in my todo ;) jirka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, Oct 19, 2012 at 5:53 PM, Jiri Olsa wrote: > On Fri, Oct 19, 2012 at 05:47:11PM +0200, Stephane Eranian wrote: >> On Fri, Oct 19, 2012 at 5:23 PM, Jiri Olsa wrote: >> > On Fri, Oct 19, 2012 at 05:17:57PM +0200, Stephane Eranian wrote: >> >> On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra >> >> wrote: >> >> > On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: >> >> >> -modifier_event [ukhpGH]{1,8} >> >> >> +modifier_event [ukhpGHx]{1,8} >> >> > >> >> > wouldn't the max modifier sting length grow by adding another possible >> >> > modifier? >> >> >> >> That's what I thought too, but then I don't understand why it was at >> >> eight before and not >> >> seven: One instance of each letter, + a second for pp (precise=2). Or >> >> am I missing >> >> something here? >> > >> > hm, I think I assumed for some reason that 'ppp' is valid as well >> > >> If that's the case, then yes, I need to bump that number to 9. > > found my source ;) > > include/linux/perf_event.h: > ... > >/* > * precise_ip: > * > * 0 - SAMPLE_IP can have arbitrary skid > * 1 - SAMPLE_IP must have constant skid > * 2 - SAMPLE_IP requested to have 0 skid > * 3 - SAMPLE_IP must have 0 skid > * > * See also PERF_RECORD_MISC_EXACT_IP > */ >precise_ip : 2, /* skid constraint */ > ... > Ok, nobody supports 3 today, but that's fine. I can change that value to 9 then. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, Oct 19, 2012 at 05:47:11PM +0200, Stephane Eranian wrote: > On Fri, Oct 19, 2012 at 5:23 PM, Jiri Olsa wrote: > > On Fri, Oct 19, 2012 at 05:17:57PM +0200, Stephane Eranian wrote: > >> On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra > >> wrote: > >> > On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: > >> >> -modifier_event [ukhpGH]{1,8} > >> >> +modifier_event [ukhpGHx]{1,8} > >> > > >> > wouldn't the max modifier sting length grow by adding another possible > >> > modifier? > >> > >> That's what I thought too, but then I don't understand why it was at > >> eight before and not > >> seven: One instance of each letter, + a second for pp (precise=2). Or > >> am I missing > >> something here? > > > > hm, I think I assumed for some reason that 'ppp' is valid as well > > > If that's the case, then yes, I need to bump that number to 9. found my source ;) include/linux/perf_event.h: ... /* * precise_ip: * * 0 - SAMPLE_IP can have arbitrary skid * 1 - SAMPLE_IP must have constant skid * 2 - SAMPLE_IP requested to have 0 skid * 3 - SAMPLE_IP must have 0 skid * * See also PERF_RECORD_MISC_EXACT_IP */ precise_ip : 2, /* skid constraint */ ... jirka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, Oct 19, 2012 at 5:23 PM, Jiri Olsa wrote: > On Fri, Oct 19, 2012 at 05:17:57PM +0200, Stephane Eranian wrote: >> On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra wrote: >> > On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: >> >> -modifier_event [ukhpGH]{1,8} >> >> +modifier_event [ukhpGHx]{1,8} >> > >> > wouldn't the max modifier sting length grow by adding another possible >> > modifier? >> >> That's what I thought too, but then I don't understand why it was at >> eight before and not >> seven: One instance of each letter, + a second for pp (precise=2). Or >> am I missing >> something here? > > hm, I think I assumed for some reason that 'ppp' is valid as well > If that's the case, then yes, I need to bump that number to 9. > jirka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
> That's what I thought too, but then I don't understand why it was at > eight before and not > seven: One instance of each letter, + a second for pp (precise=2). Or > am I missing > something here? The number is pretty useless imho (it's unlikely to catch any real user error) and most likely generates a much longer automata in flex than just a + So I would drop it. -Andi -- a...@linux.intel.com -- Speaking for myself only -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, Oct 19, 2012 at 05:17:57PM +0200, Stephane Eranian wrote: > On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra wrote: > > On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: > >> -modifier_event [ukhpGH]{1,8} > >> +modifier_event [ukhpGHx]{1,8} > > > > wouldn't the max modifier sting length grow by adding another possible > > modifier? > > That's what I thought too, but then I don't understand why it was at > eight before and not > seven: One instance of each letter, + a second for pp (precise=2). Or > am I missing > something here? hm, I think I assumed for some reason that 'ppp' is valid as well jirka -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra wrote: > On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: >> -modifier_event [ukhpGH]{1,8} >> +modifier_event [ukhpGHx]{1,8} > > wouldn't the max modifier sting length grow by adding another possible > modifier? That's what I thought too, but then I don't understand why it was at eight before and not seven: One instance of each letter, + a second for pp (precise=2). Or am I missing something here? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: > -modifier_event [ukhpGH]{1,8} > +modifier_event [ukhpGHx]{1,8} wouldn't the max modifier sting length grow by adding another possible modifier? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: -modifier_event [ukhpGH]{1,8} +modifier_event [ukhpGHx]{1,8} wouldn't the max modifier sting length grow by adding another possible modifier? -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra pet...@infradead.org wrote: On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: -modifier_event [ukhpGH]{1,8} +modifier_event [ukhpGHx]{1,8} wouldn't the max modifier sting length grow by adding another possible modifier? That's what I thought too, but then I don't understand why it was at eight before and not seven: One instance of each letter, + a second for pp (precise=2). Or am I missing something here? -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, Oct 19, 2012 at 05:17:57PM +0200, Stephane Eranian wrote: On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra pet...@infradead.org wrote: On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: -modifier_event [ukhpGH]{1,8} +modifier_event [ukhpGHx]{1,8} wouldn't the max modifier sting length grow by adding another possible modifier? That's what I thought too, but then I don't understand why it was at eight before and not seven: One instance of each letter, + a second for pp (precise=2). Or am I missing something here? hm, I think I assumed for some reason that 'ppp' is valid as well jirka -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
That's what I thought too, but then I don't understand why it was at eight before and not seven: One instance of each letter, + a second for pp (precise=2). Or am I missing something here? The number is pretty useless imho (it's unlikely to catch any real user error) and most likely generates a much longer automata in flex than just a + So I would drop it. -Andi -- a...@linux.intel.com -- Speaking for myself only -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, Oct 19, 2012 at 5:23 PM, Jiri Olsa jo...@redhat.com wrote: On Fri, Oct 19, 2012 at 05:17:57PM +0200, Stephane Eranian wrote: On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra pet...@infradead.org wrote: On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: -modifier_event [ukhpGH]{1,8} +modifier_event [ukhpGHx]{1,8} wouldn't the max modifier sting length grow by adding another possible modifier? That's what I thought too, but then I don't understand why it was at eight before and not seven: One instance of each letter, + a second for pp (precise=2). Or am I missing something here? hm, I think I assumed for some reason that 'ppp' is valid as well If that's the case, then yes, I need to bump that number to 9. jirka -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, Oct 19, 2012 at 05:47:11PM +0200, Stephane Eranian wrote: On Fri, Oct 19, 2012 at 5:23 PM, Jiri Olsa jo...@redhat.com wrote: On Fri, Oct 19, 2012 at 05:17:57PM +0200, Stephane Eranian wrote: On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra pet...@infradead.org wrote: On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: -modifier_event [ukhpGH]{1,8} +modifier_event [ukhpGHx]{1,8} wouldn't the max modifier sting length grow by adding another possible modifier? That's what I thought too, but then I don't understand why it was at eight before and not seven: One instance of each letter, + a second for pp (precise=2). Or am I missing something here? hm, I think I assumed for some reason that 'ppp' is valid as well If that's the case, then yes, I need to bump that number to 9. found my source ;) include/linux/perf_event.h: ... /* * precise_ip: * * 0 - SAMPLE_IP can have arbitrary skid * 1 - SAMPLE_IP must have constant skid * 2 - SAMPLE_IP requested to have 0 skid * 3 - SAMPLE_IP must have 0 skid * * See also PERF_RECORD_MISC_EXACT_IP */ precise_ip : 2, /* skid constraint */ ... jirka -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, Oct 19, 2012 at 5:53 PM, Jiri Olsa jo...@redhat.com wrote: On Fri, Oct 19, 2012 at 05:47:11PM +0200, Stephane Eranian wrote: On Fri, Oct 19, 2012 at 5:23 PM, Jiri Olsa jo...@redhat.com wrote: On Fri, Oct 19, 2012 at 05:17:57PM +0200, Stephane Eranian wrote: On Fri, Oct 19, 2012 at 5:13 PM, Peter Zijlstra pet...@infradead.org wrote: On Fri, 2012-10-19 at 16:52 +0200, Stephane Eranian wrote: -modifier_event [ukhpGH]{1,8} +modifier_event [ukhpGHx]{1,8} wouldn't the max modifier sting length grow by adding another possible modifier? That's what I thought too, but then I don't understand why it was at eight before and not seven: One instance of each letter, + a second for pp (precise=2). Or am I missing something here? hm, I think I assumed for some reason that 'ppp' is valid as well If that's the case, then yes, I need to bump that number to 9. found my source ;) include/linux/perf_event.h: ... /* * precise_ip: * * 0 - SAMPLE_IP can have arbitrary skid * 1 - SAMPLE_IP must have constant skid * 2 - SAMPLE_IP requested to have 0 skid * 3 - SAMPLE_IP must have 0 skid * * See also PERF_RECORD_MISC_EXACT_IP */ precise_ip : 2, /* skid constraint */ ... Ok, nobody supports 3 today, but that's fine. I can change that value to 9 then. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [PATCH 1/2] perf tools: add event modifier to request exclusive PMU access
On Fri, Oct 19, 2012 at 08:46:10AM -0700, Andi Kleen wrote: That's what I thought too, but then I don't understand why it was at eight before and not seven: One instance of each letter, + a second for pp (precise=2). Or am I missing something here? The number is pretty useless imho (it's unlikely to catch any real user error) and most likely generates a much longer automata in flex than just a + So I would drop it. yep, probably we could do better job with checking the modifier after parsing (with just + in flex) ... added in my todo ;) jirka -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/