Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752330AbbKQBbm (ORCPT ); Mon, 16 Nov 2015 20:31:42 -0500 Received: from szxga01-in.huawei.com ([58.251.152.64]:60393 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750932AbbKQBbl (ORCPT ); Mon, 16 Nov 2015 20:31:41 -0500 Message-ID: <564A835E.5040603@huawei.com> Date: Tue, 17 Nov 2015 09:31:10 +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: Arnaldo Carvalho de Melo CC: Masami Hiramatsu , Alexei Starovoitov , , Ingo Molnar , Jiri Olsa , David Ahern , Namhyung Kim , Adrian Hunter , , Subject: Re: [PATCH 12/13] perf test: Test BPF prologue References: <1447675815-166222-1-git-send-email-wangnan0@huawei.com> <1447675815-166222-13-git-send-email-wangnan0@huawei.com> <20151117012924.GA22729@kernel.org> In-Reply-To: <20151117012924.GA22729@kernel.org> 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.0A090201.564A8370.00AE,ss=1,re=0.000,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2011-05-27 18:58:46 X-Mirapoint-Loop-Id: 52466c7d2d3607a851be203096236623 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2169 Lines: 60 On 2015/11/17 9:29, Arnaldo Carvalho de Melo wrote: > Em Mon, Nov 16, 2015 at 12:10:14PM +0000, Wang Nan escreveu: >> This patch introduces a new BPF script to test BPF prologue. The new >> script probes at null_lseek, which is the function pointer when we try >> to lseek on '/dev/null'. >> >> null_lseek is chosen because it is a function pointer, so we don't need >> to consider inlining and LTO. >> >> By extracting file->f_mode, bpf-script-test-prologue.c should know whether >> the file is writable or readonly. According to llseek_loop() and >> bpf-script-test-prologue.c, one forth of total lseeks should be collected. > So I tentatively changed the section name key=val separator from '\n' to > ';', applied all the patches up to this one (will review the last one > tomorrow), and tested it, reproducing your results, for some reason that > SEC() wasn't working, have to check again, using it expanded, as in my > previous tests, works, I updated the comments to reflect the tests I > did, please take a look. > > I've pushed everything to my perf/ebpf branch, please let me know if > what is there is acceptable, then it will be up to Ingo to decide where > to put this, if in perf/urgent for this merge window, or in perf/core, > for the next one. > > Ah, to extract the output for these BPF sub-tests I had to use -v, i.e. > just: > > # perf test BPF > 37: Test BPF filter : Ok > # > > Ditto for the LLVM one. > > Doesn't tell us too much about all those nice sub-tests... > > How about: > > # perf test -v BPF > 37: Test BPF filter: > 37.1: test a : Ok > 37.2: test b : Ok > 37.3: Test BPF prologue generation : Ok > 37.4: Another... : Ok > 37: Test BPF filter : Ok > # > > Thanks! Thanks to your work. I'm checking them now. > - Arnaldo > -- 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/