Re: [lttng-dev] [RFC PATCH urcu] Fix: dynamic fallback to compat futex on sys_futex ENOSYS

2015-09-13 Thread Paul E. McKenney
On Fri, Sep 11, 2015 at 10:48:38AM -0400, Mathieu Desnoyers wrote: > Some MIPS processors (e.g. Cavium Octeon II) dynamically check if the > CPU supports ll/sc within sys_futex, and return a ENOSYS errno if they > don't, even though the architecture implements sys_futex. > > Handle this situation

Re: [lttng-dev] [RFC lttng-tools] Do not list or allow unsupported perf events

2015-09-13 Thread Mathieu Desnoyers
CCing Jeremie. - On Sep 10, 2015, at 8:15 PM, Tony Jones to...@suse.de wrote: > On 09/10/2015 12:21 PM, Tony Jones wrote: > >> +static int is_event_supported(const struct ctx_opts *ctx) >> +{ >> +int fd; >> +struct perf_event_attr attr = { >> +.type = ctx->u.perf.type,

Re: [lttng-dev] [RFC lttng-tools] Do not list or allow unsupported perf events

2015-09-13 Thread Mathieu Desnoyers
CCing the new lttng-tools maintainer, Jérémie. More below, - On Sep 10, 2015, at 3:21 PM, Tony Jones to...@suse.com wrote: > Query the perf api to determine the list of events that are actually > supported by the PMU. Reject events that are not supported. On an > AMD Opteron 6128 the

Re: [lttng-dev] [RFC PATCH urcu] Fix: dynamic fallback to compat futex on sys_futex ENOSYS

2015-09-13 Thread Mathieu Desnoyers
- On Sep 13, 2015, at 12:29 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: > On Fri, Sep 11, 2015 at 10:48:38AM -0400, Mathieu Desnoyers wrote: >> Some MIPS processors (e.g. Cavium Octeon II) dynamically check if the >> CPU supports ll/sc within sys_futex, and return a ENOSYS errno