Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752783AbbKQEjA (ORCPT ); Mon, 16 Nov 2015 23:39:00 -0500 Received: from szxga03-in.huawei.com ([119.145.14.66]:31560 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752249AbbKQEi7 (ORCPT ); Mon, 16 Nov 2015 23:38:59 -0500 Message-ID: <564AAF4D.5080902@huawei.com> Date: Tue, 17 Nov 2015 12:38:37 +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.564AAF59.0043,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: 27b0c0796a9f2eda5f77149932abe9a1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2478 Lines: 66 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! I think what you want is to report state of subtests *without* -v? That would be nice but changing of perf testing infrastructure is required because there's no "sub-test" before, and we both agree that testcase should be silent without '-v', so we need a way to output them in builtin-test.c. Let me try it but I think it should not be a blocking problem. Thank you. -- 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/