[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <55778205.2050401@huawei.com>
Date: Wed, 10 Jun 2015 08:17:09 +0800
From: "Wangnan (F)" <wangnan0@...wei.com>
To: Alexei Starovoitov <ast@...mgrid.com>, <acme@...nel.org>,
<brendan.d.gregg@...il.com>, <daniel@...earbox.net>,
<namhyung@...nel.org>, <masami.hiramatsu.pt@...achi.com>,
<paulus@...ba.org>, <a.p.zijlstra@...llo.nl>, <mingo@...hat.com>,
<jolsa@...nel.org>, <dsahern@...il.com>
CC: <linux-kernel@...r.kernel.org>, <lizefan@...wei.com>,
<hekuang@...wei.com>, <xiakaixu@...wei.com>, <pi3orama@....com>
Subject: Re: [RFC PATCH v6 32/32] perf record: Add LLVM options for compiling
BPF scripts
On 2015/6/10 8:02, Alexei Starovoitov wrote:
> On 6/8/15 10:50 PM, Wang Nan wrote:
>> Although previous patch allows setting BPF compiler related options in
>> perfconfig, on some ad-hoc situation it still requires passing options
>> through cmdline. This patch introduces 4 options to 'perf record' for
>> this propose: --clang-path, --clang-opt, --llc-path and --llc-opt.
>
> looks good. I hope only --clang will be used from time to time.
Right. Please see another mail I posted. I'd like to generate command using
command template instead of printf() in next version.
> Today, indeed, --llc* are needed too.
>
With template, --llc can be removed now.
> btw, our experimental libbpfprog.so (which is clang and llvm libs
> compiled into single .so with C api for compiling .c into bpf):
> $ ls -lh libbpfprog.so
> -rw-r--r-- 1 ast ast 31M Jun 9 16:49 libbpfprog.so
>
> not tiny, but I think we should be able to include it into perf,
> then perf will only have build dependencies on llvm instead of
> run-time dependencies.
> We'll release this lib as soon as it's a bit more stable.
>
Could you please give me some URL to LLVM git repositories so I can
track your work on it?
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