Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1467943rdg; Sat, 12 Aug 2023 02:27:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9SMFfKr3IC9/xiBwgWPABP3NvNeOdq3B86FAjK0iGssno39heUpWcCTahuKRA3iZw9ro1 X-Received: by 2002:a17:906:c1:b0:98e:1156:1a35 with SMTP id 1-20020a17090600c100b0098e11561a35mr3472984eji.74.1691832458656; Sat, 12 Aug 2023 02:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691832458; cv=none; d=google.com; s=arc-20160816; b=SWvjs3/PYRX78m/8WM/51YBstrAR5DF0zREfexvKpxpx7BvH9VwCrx5JaltHxZF40s PEH+d9oiMpu4rb9vwGT6Y2h/C7VEQMgSQ0NS2aUHjZ+/waWNABlqpju/CqnqPUVpeMHZ pwN4pvHuOAvPdmn2YU68TYWz50FHRgdA7LYXLF0mDDSmS/qkvAOLAmeMjlbQV6cfysEV IzAt6N54gASjV+RZCBtriRtQ4O3Adbn8fmXVTwfBN2z2jbYvEPCd9E80Hn0CUT4jgir6 UvgPfXzyFEmVxpYSQqdFYJHdeQZSN8Mde/gTs2m/Wr2aBeerHy11rbg5z75f9ciz8Qlp ylaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=io6ODk5XuCasyTyXtPcPrWaZ5kBj+aJc2P3TnPYXjkw=; fh=yJzUIAXk3G9GFZhd7AEi53Yh6JaeRXiXWLsFmPRnLKo=; b=SltMruUmp5iDIHvpKnSeKu6AxWIaeJoCuZ5zK0pEkOvePXUqWMdbr5zhm6bNaC8Agp csvBGa7Q1UNU7pk6eskXbehVNgqUEK7tNFnqreHvCt+RysQBZgN5tZ08zTknUyBGCvq3 +UdvvPE3YLMbvi3K+/df7FbySPz64HMj3lLJfSNYrKskPENpMeHU2wmQiniWexG52YWU ndclla4Dd1eEkjGMKvFJXbzJP4tmL8bJJVY173z1QfRsBzsCzDewOfTh6QnwHHLhaHmP F4+MpUEH7lKwM897Bmqow6Rqd9wZ19aD5lTFH+d1FUxsxNbMuRO+c5mrTJNXsXhue9qg +B4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a12-20020a170906190c00b009929c39d5c5si4934715eje.367.2023.08.12.02.27.12; Sat, 12 Aug 2023 02:27:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235234AbjHLIwD (ORCPT + 99 others); Sat, 12 Aug 2023 04:52:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjHLIwC (ORCPT ); Sat, 12 Aug 2023 04:52:02 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C28A2684; Sat, 12 Aug 2023 01:52:05 -0700 (PDT) Received: from kwepemm600003.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RNDq95Q0vz2Bd1F; Sat, 12 Aug 2023 16:49:09 +0800 (CST) Received: from localhost.localdomain (10.67.174.95) by kwepemm600003.china.huawei.com (7.193.23.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sat, 12 Aug 2023 16:52:02 +0800 From: Yang Jihong To: , , , , , , , , , , , , , CC: Subject: [RFC v1 03/16] perf kwork: Set ordered_events for perf_tool Date: Sat, 12 Aug 2023 08:49:04 +0000 Message-ID: <20230812084917.169338-4-yangjihong1@huawei.com> X-Mailer: git-send-email 2.30.GIT In-Reply-To: <20230812084917.169338-1-yangjihong1@huawei.com> References: <20230812084917.169338-1-yangjihong1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.95] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600003.china.huawei.com (7.193.23.202) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org perf kwork processes data based on timestamps and needs to sort events. Fixes: f98919ec4fcc ("perf kwork: Implement 'report' subcommand") Signed-off-by: Yang Jihong --- tools/perf/builtin-kwork.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/perf/builtin-kwork.c b/tools/perf/builtin-kwork.c index 73b5dc099a8a..de2fbb7c56c3 100644 --- a/tools/perf/builtin-kwork.c +++ b/tools/perf/builtin-kwork.c @@ -1694,9 +1694,10 @@ int cmd_kwork(int argc, const char **argv) static struct perf_kwork kwork = { .class_list = LIST_HEAD_INIT(kwork.class_list), .tool = { - .mmap = perf_event__process_mmap, - .mmap2 = perf_event__process_mmap2, - .sample = perf_kwork__process_tracepoint_sample, + .mmap = perf_event__process_mmap, + .mmap2 = perf_event__process_mmap2, + .sample = perf_kwork__process_tracepoint_sample, + .ordered_events = true, }, .atom_page_list = LIST_HEAD_INIT(kwork.atom_page_list), .sort_list = LIST_HEAD_INIT(kwork.sort_list), -- 2.30.GIT