Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2159184pxb; Mon, 23 Aug 2021 13:28:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPPO9N+owxiyEI4mwwxSN3CC+vTcWuGG044Mz16zvwXnPbihf9j5t5gwrJ+VffauoVAndT X-Received: by 2002:a92:cf08:: with SMTP id c8mr25043496ilo.246.1629750501039; Mon, 23 Aug 2021 13:28:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629750501; cv=none; d=google.com; s=arc-20160816; b=Kr48Pd/BlmNt4onleZmt4KP+f+f8xXgmoEHP9sh5cid7Tw3597zkHmV8IP1Tg7nOHH KSzpnCjmQCgl7fG2oO3fDIUwGaSYLDI6ICgfcVD3+NGxGeJEbY90c5XOh4GjEw+aKVK0 zkYCJZKOz7vAqs9DbwYQ9sA1oWTNlFoq9CZdCyFGgQ6LOS8tZoQJ3OdHLGUihouyxzhZ CjmJeFpeRrTbTn+xMDZvG/l19mm02kwQEWTAPpHC01DyTrdh9DDg4ic5s1FflDN3oPLi r9oVBpkprMdqwmhsraTEuJzShvgxBmzy6jcA9nufUst+Tb0S/6dWEmsWa8vZi50j66Dw EZig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=mc9lmGyL+jeXNfl+ikUp3ZPLt4CjX1mmz8iQ61bWTSw=; b=dfq3K6MJrgj2wgajtJGLt+bGTK31iTxRjtFDKoFYczA8ivYTgWuOzdaKBgGWRbt2nK 8t88NwabyYv18xYtuJlz5rpC11RAuBK76MFWnK+rAhsIGPWF5SgvIpk7fHKTuvV6/AbN z6gZlhJie7zK7VK4vs7+60eDPE0fiJvOVvqTmO07igSoQe+NMXAOfc6d0QeZ2Wqp3sbd Fe2gixFjm2PLe6ukqc0XmLmETRHw+a5nUDmXfoKRJ8mAtmalyltWQJANXFNoScvM7enU HVQ6UVmu6raAquI+8E1clMH+aWS7BgDjdEhhsmQ8QrUUMMQBXF9NgYquuGYuCiXJyFbz ko5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a26si3559201ios.66.2021.08.23.13.28.09; Mon, 23 Aug 2021 13:28:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232237AbhHWU1c (ORCPT + 99 others); Mon, 23 Aug 2021 16:27:32 -0400 Received: from mail-ot1-f50.google.com ([209.85.210.50]:35663 "EHLO mail-ot1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231569AbhHWU1b (ORCPT ); Mon, 23 Aug 2021 16:27:31 -0400 Received: by mail-ot1-f50.google.com with SMTP id y14-20020a0568302a0e00b0051acbdb2869so32936577otu.2; Mon, 23 Aug 2021 13:26:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=mc9lmGyL+jeXNfl+ikUp3ZPLt4CjX1mmz8iQ61bWTSw=; b=E2Jj18DlmMySvIpbTBk2/B/LnaQQIvsnslXlfsJ1ZSEtGxobrlv2ziqu6FyIjPBAjw PgX+GLBR3jB4nbg20xW3qoBLTq4ZY7AW15rCD3dOmEu0lnah5sVwZ8jNqgWMt8wHpaGc apfFQJTg/i6jezvi/H1mVghfw8KjYK5WVzg5Z5he574QO5jUvzYIcgEXHnZMJCz65rCQ Vc0aQaR/NG/Q8u0fBDSlvjM4tTup9Q1tRGTzeNuHssvrRb4qKYRx611hSUhe/hc6LLPl ldVT0e4QsPs3NQ6q/zOYdY9rQZLY2J2NkXf4xeZcXU3EN4o6fSyh19/Wm/FOlr4eiJTE R5kg== X-Gm-Message-State: AOAM532X4qni2ffEBaE4Qm9ykM+5zFZpY3jbMKELjWD8q7Hf6KUTiLH7 thjYbsFWok53TDJUmV7cxA== X-Received: by 2002:a05:6808:1494:: with SMTP id e20mr260053oiw.111.1629750408451; Mon, 23 Aug 2021 13:26:48 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id b11sm3560434ooi.0.2021.08.23.13.26.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Aug 2021 13:26:48 -0700 (PDT) Received: (nullmailer pid 2662470 invoked by uid 1000); Mon, 23 Aug 2021 20:26:42 -0000 Date: Mon, 23 Aug 2021 15:26:42 -0500 From: Rob Herring To: Shunsuke Nakamura Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH 2/3] libperf tests: Fix verbose printing Message-ID: References: <20210820093908.734503-1-nakamura.shun@fujitsu.com> <20210820093908.734503-3-nakamura.shun@fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210820093908.734503-3-nakamura.shun@fujitsu.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 06:39:07PM +0900, Shunsuke Nakamura wrote: > libperf's verbose printing checks the -v option every time the macro _T_ START __T_START > is called. > > Since there are currently four libperf tests registered, the macro _T_ START is > called four times, but verbose printing after the second time is not output. > > Resets the index of the element processed by getopt() and fix verbose printing > so that it prints in all tests. > > Signed-off-by: Shunsuke Nakamura > --- > tools/lib/perf/include/internal/tests.h | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Rob Herring > > diff --git a/tools/lib/perf/include/internal/tests.h b/tools/lib/perf/include/internal/tests.h > index 61052099225b..b130a6663ff8 100644 > --- a/tools/lib/perf/include/internal/tests.h > +++ b/tools/lib/perf/include/internal/tests.h > @@ -23,6 +23,8 @@ static inline int get_verbose(char **argv, int argc) > break; > } > } > + optind = 1; > + > return verbose; > } > > -- > 2.25.1 > >