From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A1C0C7EE2F for ; Thu, 2 Mar 2023 03:12:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229759AbjCBDMY (ORCPT ); Wed, 1 Mar 2023 22:12:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjCBDMX (ORCPT ); Wed, 1 Mar 2023 22:12:23 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B8A44C6F2; Wed, 1 Mar 2023 19:12:22 -0800 (PST) Received: from kwepemi500013.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4PRx0g07dfz16P0k; Thu, 2 Mar 2023 11:09:38 +0800 (CST) Received: from M910t.huawei.com (10.110.54.157) by kwepemi500013.china.huawei.com (7.221.188.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 2 Mar 2023 11:12:17 +0800 From: Changbin Du To: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar CC: Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , , , Hui Wang , Changbin Du Subject: [PATCH v2 0/3] perf : fix counting when initial delay configured Date: Thu, 2 Mar 2023 11:11:43 +0800 Message-ID: <20230302031146.2801588-1-changbin.du@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.110.54.157] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemi500013.china.huawei.com (7.221.188.120) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first one fixes the problem that counters are never enabled when initial delay configured. The remaining two reuse the common field target::initial_delay for record/ftrace/trace subcommands. v2: - introduce common filed target::initial_delay Changbin Du (3): perf stat: fix counting when initial delay configured perf record: reuse target::initial_delay perf: ftrace: reuse target::initial_delay tools/perf/builtin-ftrace.c | 10 +++++----- tools/perf/builtin-record.c | 12 ++++++------ tools/perf/builtin-stat.c | 15 +++++---------- tools/perf/builtin-trace.c | 8 ++++---- tools/perf/util/evlist.c | 6 +++--- tools/perf/util/evsel.c | 2 +- tools/perf/util/ftrace.h | 1 - tools/perf/util/record.h | 1 - tools/perf/util/stat.c | 6 +----- tools/perf/util/stat.h | 1 - tools/perf/util/target.h | 12 ++++++++++++ 11 files changed, 37 insertions(+), 37 deletions(-) -- 2.25.1