Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2017-01-17 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 17, 2017 at 10:27:39AM -0800, Alexei Starovoitov escreveu: > On Tue, Jan 17, 2017 at 5:38 AM, Arnaldo Carvalho de Melo > wrote: > > [acme@jouet linux]$ ls -lah /tmp/perf > > -rwxr-xr-x. 1 acme acme 4.4M Jan 17 10:29 /tmp/perf > > [acme@jouet linux]$ size /tmp/perf > >textdata

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2017-01-17 Thread Alexei Starovoitov
On Tue, Jan 17, 2017 at 5:38 AM, Arnaldo Carvalho de Melo wrote: > > [acme@jouet linux]$ ls -lah /tmp/perf > -rwxr-xr-x. 1 acme acme 4.4M Jan 17 10:29 /tmp/perf > [acme@jouet linux]$ size /tmp/perf >textdata bss dec hex filename > 3954488 622440 2391210428489032

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2017-01-17 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 05, 2016 at 12:41:03PM +0800, Wangnan (F) escreveu: > On 2016/12/5 10:36, Wangnan (F) wrote: > > On 2016/12/2 23:44, Arnaldo Carvalho de Melo wrote: > > > Em Sat, Nov 26, 2016 at 07:03:34AM +, Wang Nan escreveu: > > I intentionally use statically linking because it is good for > > s

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-06 Thread Alexei Starovoitov
On Tue, Dec 6, 2016 at 1:02 PM, Arnaldo Carvalho de Melo wrote: [acme@jouet linux]$ ls -lah /tmp/perf > -rwxr-xr-x. 1 acme acme 41M Dec 6 17:58 /tmp/perf awesome. that's reasonable and matches to what I see with libbcc.so We had few tricks before to reduce it into <30M range, but they were too

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-06 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 06, 2016 at 04:19:34PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Dec 05, 2016 at 08:51:01AM -0800, Alexei Starovoitov escreveu: > > On Fri, Dec 02, 2016 at 01:44:40PM -0200, Arnaldo Carvalho de Melo wrote: > > > make LIBCLANGLLVM=1 O=/tmp/build/perf -C tools/perf install-bin

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-06 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 05, 2016 at 08:51:01AM -0800, Alexei Starovoitov escreveu: > On Fri, Dec 02, 2016 at 01:44:40PM -0200, Arnaldo Carvalho de Melo wrote: > > Em Sat, Nov 26, 2016 at 07:03:34AM +, Wang Nan escreveu: > > > Add basic clang support in clang.cpp and test__clang() testcase. The > > > first

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-06 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 06, 2016 at 10:07:51AM +0800, Wangnan (F) escreveu: > On 2016/12/6 5:48, Arnaldo Carvalho de Melo wrote: > > Em Mon, Dec 05, 2016 at 07:02:48PM -0200, Arnaldo Carvalho de Melo escreveu: > > > Em Mon, Dec 05, 2016 at 08:51:01AM -0800, Alexei Starovoitov escreveu: > > > > yeah. it's kinda

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-05 Thread Wangnan (F)
On 2016/12/6 5:48, Arnaldo Carvalho de Melo wrote: Em Mon, Dec 05, 2016 at 07:02:48PM -0200, Arnaldo Carvalho de Melo escreveu: Em Mon, Dec 05, 2016 at 08:51:01AM -0800, Alexei Starovoitov escreveu: yeah. it's kinda high. I'm guessing rpm llvm libs are in debug mode. Try llvm-config --build-m

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-05 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 05, 2016 at 07:02:48PM -0200, Arnaldo Carvalho de Melo escreveu: > Em Mon, Dec 05, 2016 at 08:51:01AM -0800, Alexei Starovoitov escreveu: > > yeah. it's kinda high. I'm guessing rpm llvm libs are in debug mode. > > Try llvm-config --build-mode --assertion-mode > > it should be Release O

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-05 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 05, 2016 at 08:51:01AM -0800, Alexei Starovoitov escreveu: > On Fri, Dec 02, 2016 at 01:44:40PM -0200, Arnaldo Carvalho de Melo wrote: > > Em Sat, Nov 26, 2016 at 07:03:34AM +, Wang Nan escreveu: > > > Add basic clang support in clang.cpp and test__clang() testcase. The > > > first

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-05 Thread Alexei Starovoitov
On Fri, Dec 02, 2016 at 01:44:40PM -0200, Arnaldo Carvalho de Melo wrote: > Em Sat, Nov 26, 2016 at 07:03:34AM +, Wang Nan escreveu: > > Add basic clang support in clang.cpp and test__clang() testcase. The > > first testcase checks if builtin clang is able to generate LLVM IR. > > > > tests/cl

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-04 Thread Wangnan (F)
On 2016/12/5 10:36, Wangnan (F) wrote: On 2016/12/2 23:44, Arnaldo Carvalho de Melo wrote: Em Sat, Nov 26, 2016 at 07:03:34AM +, Wang Nan escreveu: Add basic clang support in clang.cpp and test__clang() testcase. The first testcase checks if builtin clang is able to generate LLVM IR. t

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-04 Thread Wangnan (F)
On 2016/12/2 23:44, Arnaldo Carvalho de Melo wrote: Em Sat, Nov 26, 2016 at 07:03:34AM +, Wang Nan escreveu: Add basic clang support in clang.cpp and test__clang() testcase. The first testcase checks if builtin clang is able to generate LLVM IR. tests/clang.c is a proxy. Real testcase res

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-12-02 Thread Arnaldo Carvalho de Melo
Em Sat, Nov 26, 2016 at 07:03:34AM +, Wang Nan escreveu: > Add basic clang support in clang.cpp and test__clang() testcase. The > first testcase checks if builtin clang is able to generate LLVM IR. > > tests/clang.c is a proxy. Real testcase resides in > utils/c++/clang-test.cpp in c++ and exp

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-11-27 Thread Wangnan (F)
On 2016/11/27 1:17, Alexei Starovoitov wrote: On Sat, Nov 26, 2016 at 07:03:34AM +, Wang Nan wrote: Add basic clang support in clang.cpp and test__clang() testcase. The first testcase checks if builtin clang is able to generate LLVM IR. tests/clang.c is a proxy. Real testcase resides in u

Re: [PATCH v3 10/30] perf clang: Add builtin clang support ant test case

2016-11-26 Thread Alexei Starovoitov
On Sat, Nov 26, 2016 at 07:03:34AM +, Wang Nan wrote: > Add basic clang support in clang.cpp and test__clang() testcase. The > first testcase checks if builtin clang is able to generate LLVM IR. > > tests/clang.c is a proxy. Real testcase resides in > utils/c++/clang-test.cpp in c++ and export