Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932606AbbFJACs (ORCPT ); Tue, 9 Jun 2015 20:02:48 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34196 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752039AbbFJACl (ORCPT ); Tue, 9 Jun 2015 20:02:41 -0400 Message-ID: <55777E9E.1000808@plumgrid.com> Date: Tue, 09 Jun 2015 17:02:38 -0700 From: Alexei Starovoitov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Wang Nan , acme@kernel.org, brendan.d.gregg@gmail.com, daniel@iogearbox.net, namhyung@kernel.org, masami.hiramatsu.pt@hitachi.com, paulus@samba.org, a.p.zijlstra@chello.nl, mingo@redhat.com, jolsa@kernel.org, dsahern@gmail.com CC: linux-kernel@vger.kernel.org, lizefan@huawei.com, hekuang@huawei.com, xiakaixu@huawei.com, pi3orama@163.com Subject: Re: [RFC PATCH v6 32/32] perf record: Add LLVM options for compiling BPF scripts References: <1433829036-23687-1-git-send-email-wangnan0@huawei.com> <1433829036-23687-33-git-send-email-wangnan0@huawei.com> In-Reply-To: <1433829036-23687-33-git-send-email-wangnan0@huawei.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1088 Lines: 24 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. Today, indeed, --llc* are needed too. 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/