Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752560AbbFZIks (ORCPT ); Fri, 26 Jun 2015 04:40:48 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:35490 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752184AbbFZIkM (ORCPT ); Fri, 26 Jun 2015 04:40:12 -0400 Message-ID: <558D0FE8.4010907@plumgrid.com> Date: Fri, 26 Jun 2015 01:40:08 -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 v8 47/49] perf tools: Generate prologue for BPF programs References: <1435149113-51142-1-git-send-email-wangnan0@huawei.com> <1435149113-51142-48-git-send-email-wangnan0@huawei.com> In-Reply-To: <1435149113-51142-48-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: 763 Lines: 17 On 6/24/15 5:31 AM, Wang Nan wrote: > This patch generates prologue for each 'struct probe_trace_event' for > fetching arguments for BPF programs. > > After bpf__probe(), iterate over each programs to check whether > prologue is required. If non of tev have argument, simply skip > preprocessor hooking. For those who prologue is required, calls > bpf__gen_prologue() and paste original instruction after prologue. please don't abbreviate tev, pev in commit logs. It's hard to read for anyone but core perf experts. -- 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/