[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150611071936.GA11184@sejong>
Date: Thu, 11 Jun 2015 16:19:36 +0900
From: Namhyung Kim <namhyung@...nel.org>
To: "Wangnan (F)" <wangnan0@...wei.com>
Cc: Alexei Starovoitov <ast@...mgrid.com>, acme@...nel.org,
brendan.d.gregg@...il.com, daniel@...earbox.net,
masami.hiramatsu.pt@...achi.com, paulus@...ba.org,
a.p.zijlstra@...llo.nl, mingo@...hat.com, jolsa@...nel.org,
dsahern@...il.com, linux-kernel@...r.kernel.org,
lizefan@...wei.com, hekuang@...wei.com, xiakaixu@...wei.com,
pi3orama@....com
Subject: Re: [RFC PATCH v6 24/32] perf record: Compile scriptlets if pass
'.c' to --event
Hi Wang,
On Wed, Jun 10, 2015 at 08:06:17AM +0800, Wangnan (F) wrote:
> On 2015/6/10 5:48, Alexei Starovoitov wrote:
> >Once clang integration is complete. One can pull
> >upsteam llvm and clang and just use 'clang -O2 -c -march=bpf file.c'
> >
>
> Good news, so llc part should be removed.
>
> Next version I'd like to use following config options:
>
> [llvm]
> clang-bpf-cmd-template = "$CLANG_EXEC $CLANG_OPTIONS -c $CLANG_SOURCE
> -emit-llvm -O2 -o - | /path/to/llc -march=bpf -filetype=obj -o -"
> clang-path = "/path/to/clang"
> clang-opt = ""
>
> And the default template should be:
>
> $CLANG_EXEC $CLANG_OPTIONS -c "$CLANG_SOURCE" -emit-llvm -O2 -o -
Did you mean this?
$CLANG_EXEC $CLANG_OPTIONS -O2 -c "$BPF_SOURCE" -march=bpf -o -
Thanks,
Namhyung
>
> Then with environment variable tricks we make it work with popen.
>
> By this way we can get rid of llc in perf side, and make it work even before
> clang
> integration is complete.
>
> Thank you.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists