Re: [PATCH 1/2] perf tools: Introduce memory mapping macros in mman-fix.h

2016-09-06 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 06, 2016 at 11:28:35PM +0800, Wangnan (F) escreveu: > On 2016/9/6 21:39, Arnaldo Carvalho de Melo wrote: > > Em Tue, Sep 06, 2016 at 09:25:47PM +0800, Wangnan (F) escreveu: > > > > > > On 2016/9/6 20:59, Arnaldo Carvalho de Melo wrote: > > > > Em Tue, Sep 06, 2016 at 05:48:51AM +,

Re: [PATCH 1/2] perf tools: Introduce memory mapping macros in mman-fix.h

2016-09-06 Thread Wangnan (F)
On 2016/9/6 21:39, Arnaldo Carvalho de Melo wrote: Em Tue, Sep 06, 2016 at 09:25:47PM +0800, Wangnan (F) escreveu: On 2016/9/6 20:59, Arnaldo Carvalho de Melo wrote: Em Tue, Sep 06, 2016 at 05:48:51AM +, Wang Nan escreveu: tools/perf/trace/beauty/mmap.c, tools/perf/util/event.c and tool

Re: [PATCH 1/2] perf tools: Introduce memory mapping macros in mman-fix.h

2016-09-06 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 06, 2016 at 09:25:47PM +0800, Wangnan (F) escreveu: > > > On 2016/9/6 20:59, Arnaldo Carvalho de Melo wrote: > > Em Tue, Sep 06, 2016 at 05:48:51AM +, Wang Nan escreveu: > > > tools/perf/trace/beauty/mmap.c, tools/perf/util/event.c and > > > tools/perf/util/map.c depend on several

Re: [PATCH 1/2] perf tools: Introduce memory mapping macros in mman-fix.h

2016-09-06 Thread Wangnan (F)
On 2016/9/6 20:59, Arnaldo Carvalho de Melo wrote: Em Tue, Sep 06, 2016 at 05:48:51AM +, Wang Nan escreveu: tools/perf/trace/beauty/mmap.c, tools/perf/util/event.c and tools/perf/util/map.c depend on several macros in mman.h, which are lost on old systems like ubuntu 12.04. They are archit

Re: [PATCH 1/2] perf tools: Introduce memory mapping macros in mman-fix.h

2016-09-06 Thread Arnaldo Carvalho de Melo
Em Tue, Sep 06, 2016 at 05:48:51AM +, Wang Nan escreveu: > tools/perf/trace/beauty/mmap.c, tools/perf/util/event.c and > tools/perf/util/map.c depend on several macros in mman.h, which > are lost on old systems like ubuntu 12.04. They are architecture Not "lost on old systems", changing that t

[PATCH 1/2] perf tools: Introduce memory mapping macros in mman-fix.h

2016-09-05 Thread Wang Nan
tools/perf/trace/beauty/mmap.c, tools/perf/util/event.c and tools/perf/util/map.c depend on several macros in mman.h, which are lost on old systems like ubuntu 12.04. They are architecture dependened macros. Importing ./arch/*/include/uapi/asm/mman.h into tools/ is not easy because mman.h for some