Re: [PATCH] perf record: Fix to honor user freq/interval properly

2014-06-09 Thread Andi Kleen
On Mon, Jun 09, 2014 at 02:43:37PM +0900, Namhyung Kim wrote: > When configuring event perf checked a wrong condition that user > specified both of freq (-F) and period (-c) or the event has no > default value. This worked because most of events don't have default > value and only tracepoint event

Re: [PATCH] perf record: Fix to honor user freq/interval properly

2014-06-09 Thread Jiri Olsa
On Mon, Jun 09, 2014 at 02:43:37PM +0900, Namhyung Kim wrote: > When configuring event perf checked a wrong condition that user > specified both of freq (-F) and period (-c) or the event has no > default value. This worked because most of events don't have default > value and only tracepoint event

[PATCH] perf record: Fix to honor user freq/interval properly

2014-06-08 Thread Namhyung Kim
When configuring event perf checked a wrong condition that user specified both of freq (-F) and period (-c) or the event has no default value. This worked because most of events don't have default value and only tracepoint events have default of 1 (and it's not desirable to change it for those eve