From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933003AbbFJASG (ORCPT ); Tue, 9 Jun 2015 20:18:06 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:21991 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752628AbbFJAR5 (ORCPT ); Tue, 9 Jun 2015 20:17:57 -0400 Message-ID: <55778205.2050401@huawei.com> Date: Wed, 10 Jun 2015 08:17:09 +0800 From: "Wangnan (F)" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Alexei Starovoitov , , , , , , , , , , CC: , , , , 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> <55777E9E.1000808@plumgrid.com> In-Reply-To: <55777E9E.1000808@plumgrid.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.111.66.109] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020201.55778217.0014,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 0b82d47b855240d5437d963936c88e16 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.