Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2501885imm; Mon, 24 Sep 2018 05:33:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZt3Jah1cv6hX6ebAAQ9J81JlVFajkHRyK5tN+X0oRe84JFkV4yj8atGjgb5LpXjLBedTTm X-Received: by 2002:a62:990f:: with SMTP id d15-v6mr10234414pfe.162.1537792399640; Mon, 24 Sep 2018 05:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537792399; cv=none; d=google.com; s=arc-20160816; b=FqPCnrNdBs8o3ORMT/sZAtjZVeYJid+4CBvgff42HZhAfY0LEWuSTjYGT3nZ8OPLWE MyrIrCXH5aIv7fkPuK5lZYQK4Lq2ydlUr+5tKoSuO/nB9ENFGsPJq7/UhU1Gshv90Zdf zSbvGupPOQ6lojD9EvH1skYQtp6VJQSbTIIm1Jl2eeraSnp4UkXmSvgnSimPoHyj7kGY p5PGobDQvSopMzNk1bXSlgSLkt3RIpm0jIXr/+rU2nF7a1qx2qQ9QXSiwMsoGdKKD+91 6FQWbW8l9Na4fJvysOQysaGSMGvpE2peLlnZs3ZrPABSAM6NQHUutZ2Yt3NbSHGVYgRM GmEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=HqXipEXj30GVZZNCzwmQa4XL9lOBZVbslGLxUjh7iwI=; b=O66ZXeRkFAVshCm4QiyTIyDTmlCKmikPTpb4rASelsGD8vH/YjZxw4kk0w+ycs+5wM dZnL8JncQ85624qcFsDdV3+aI+96aS1k866nWWIPjmu0xSwF04PcbYppu4bL41PEEQZI j8cD1WI3rRbibsaq90NXlaTpS25FOKo2rPFhk+QyrasQKQtJijOsQGElCCQMs0+xKmMd Do3/FHwjrK5kC5+m3yp+LtrxsMwewDjY3fqeJH5ujMYj2/6MQ5upL5o71Qi3D4yL/iMW 3KYYuIujn0+mrW20H4EMtuS4Z9tNQCgsPB9kcZjeWjJIB1E7h5NYF8QBQsvay7ahKo6d AN2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si13866172plx.140.2018.09.24.05.33.03; Mon, 24 Sep 2018 05:33:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387563AbeIXSdw (ORCPT + 99 others); Mon, 24 Sep 2018 14:33:52 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58038 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730184AbeIXSdv (ORCPT ); Mon, 24 Sep 2018 14:33:51 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1801F1099; Mon, 24 Sep 2018 12:31:55 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Richter , Hendrik Brueckner , Heiko Carstens , Martin Schwidefsky , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 4.18 045/235] perf test: Fix subtest number when showing results Date: Mon, 24 Sep 2018 13:50:31 +0200 Message-Id: <20180924113109.747444230@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Richter [ Upstream commit 9ef0112442bdddef5fb55adf20b3a5464b33de75 ] Perf test 40 for example has several subtests numbered 1-4 when displaying the start of the subtest. When the subtest results are displayed the subtests are numbered 0-3. Use this command to generate trace output: [root@s35lp76 perf]# ./perf test -Fv 40 2>/tmp/bpf1 Fix this by adjusting the subtest number when show the subtest result. Output before: [root@s35lp76 perf]# egrep '(^40\.[0-4]| subtest [0-4]:)' /tmp/bpf1 40.1: Basic BPF filtering : BPF filter subtest 0: Ok 40.2: BPF pinning : BPF filter subtest 1: Ok 40.3: BPF prologue generation : BPF filter subtest 2: Ok 40.4: BPF relocation checker : BPF filter subtest 3: Ok [root@s35lp76 perf]# Output after: root@s35lp76 ~]# egrep '(^40\.[0-4]| subtest [0-4]:)' /tmp/bpf1 40.1: Basic BPF filtering : BPF filter subtest 1: Ok 40.2: BPF pinning : BPF filter subtest 2: Ok 40.3: BPF prologue generation : BPF filter subtest 3: Ok 40.4: BPF relocation checker : BPF filter subtest 4: Ok [root@s35lp76 ~]# Signed-off-by: Thomas Richter Reviewed-by: Hendrik Brueckner Cc: Heiko Carstens Cc: Martin Schwidefsky Link: http://lkml.kernel.org/r/20180724134858.100644-1-tmricht@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- tools/perf/tests/builtin-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/perf/tests/builtin-test.c +++ b/tools/perf/tests/builtin-test.c @@ -599,7 +599,7 @@ static int __cmd_test(int argc, const ch for (subi = 0; subi < subn; subi++) { pr_info("%2d.%1d: %-*s:", i, subi + 1, subw, t->subtest.get_desc(subi)); - err = test_and_print(t, skip, subi); + err = test_and_print(t, skip, subi + 1); if (err != TEST_OK && t->subtest.skip_if_fail) skip = true; }