Re: [RFC 2/2] perf/core: change errno for sampling event not supported in hardware

2016-05-11 Thread Vineet Gupta
On Thursday 12 May 2016 12:12 PM, Peter Zijlstra wrote: >> Tried that and doesn't even compile. Reconfirms what Vince said, ENOTSUPP is >> not >> > exposed to userspace (being in include/linux and not include/uapi/linux) > Durr, so what does userspace see? It sees the "value" of ENOTSUPP, i.e. 52

Re: [RFC 2/2] perf/core: change errno for sampling event not supported in hardware

2016-05-11 Thread Peter Zijlstra
On Thu, May 12, 2016 at 11:58:43AM +0530, Vineet Gupta wrote: > On Thursday 12 May 2016 01:06 AM, Peter Zijlstra wrote: > > On Mon, May 09, 2016 at 10:53:43PM +0530, Vineet Gupta wrote: > > > >> > Right thats what I feared. But hold on, I don't think we need to change > >> > the ABI to > >> > ach

Re: [RFC 2/2] perf/core: change errno for sampling event not supported in hardware

2016-05-11 Thread Vineet Gupta
On Thursday 12 May 2016 01:06 AM, Peter Zijlstra wrote: > On Mon, May 09, 2016 at 10:53:43PM +0530, Vineet Gupta wrote: > >> > Right thats what I feared. But hold on, I don't think we need to change >> > the ABI to >> > achieve what we want. Gosh why did I even take that path. >> > >> > Currentl

Re: [RFC 2/2] perf/core: change errno for sampling event not supported in hardware

2016-05-11 Thread Peter Zijlstra
On Mon, May 09, 2016 at 10:53:43PM +0530, Vineet Gupta wrote: > Right thats what I feared. But hold on, I don't think we need to change the > ABI to > achieve what we want. Gosh why did I even take that path. > > Currently the errno switch case in perf_evsel__open_strerror() in doesn't > handle

Re: [patch V4 02/31] bitops: Include generic parity.h in some architectures' bitops.h

2016-05-11 Thread Mark Salter
On Wed, 2016-05-11 at 17:06 +0800, zengzhao...@163.com wrote: > From: Zhaoxiu Zeng > > Simply use the generic version. > > Signed-off-by: Zhaoxiu Zeng > Acked-by: Hans-Christian Noren Egtvedt [for avr32] > --- For c6x: Acked-by: Mark Salter ___

Re: [patch V4 02/31] bitops: Include generic parity.h in some architectures' bitops.h

2016-05-11 Thread Vineet Gupta
On Wednesday 11 May 2016 02:36 PM, zengzhao...@163.com wrote: > From: Zhaoxiu Zeng > > Simply use the generic version. > > Signed-off-by: Zhaoxiu Zeng > Acked-by: Hans-Christian Noren Egtvedt [for avr32] Acked-by: Vineet Gupta # for arch/arc Thx, -Vineet __

Re: [patch V4 02/31] bitops: Include generic parity.h in some architectures' bitops.h

2016-05-11 Thread Catalin Marinas
On Wed, May 11, 2016 at 05:06:17PM +0800, zengzhao...@163.com wrote: > From: Zhaoxiu Zeng > > Simply use the generic version. > > Signed-off-by: Zhaoxiu Zeng > Acked-by: Hans-Christian Noren Egtvedt [for avr32] > --- > arch/arc/include/asm/bitops.h | 1 + > arch/arm/include/asm/bitops.h

Re: [patch V4 02/31] bitops: Include generic parity.h in some architectures' bitops.h

2016-05-11 Thread Jesper Nilsson
On Wed, May 11, 2016 at 05:06:17PM +0800, zengzhao...@163.com wrote: > From: Zhaoxiu Zeng > > Simply use the generic version. > > Signed-off-by: Zhaoxiu Zeng > Acked-by: Hans-Christian Noren Egtvedt [for avr32] For the CRIS part: Acked-by: Jesper Nilsson /^JN - Jesper Nilsson --

[patch V4 02/31] bitops: Include generic parity.h in some architectures' bitops.h

2016-05-11 Thread zengzhaoxiu
From: Zhaoxiu Zeng Simply use the generic version. Signed-off-by: Zhaoxiu Zeng Acked-by: Hans-Christian Noren Egtvedt [for avr32] --- arch/arc/include/asm/bitops.h | 1 + arch/arm/include/asm/bitops.h | 1 + arch/arm64/include/asm/bitops.h| 1 + arch/avr32/include/asm/bitops.h