Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8378766rwl; Tue, 10 Jan 2023 12:42:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXttGde76BIIqm5/ImLQDtMZvGmJGGjtTfa8BWNE521Exn5uqVIUJpy3Ei9Gqk68RwiWx5OQ X-Received: by 2002:a05:6a20:6da0:b0:ad:d633:3235 with SMTP id gl32-20020a056a206da000b000add6333235mr76924527pzb.19.1673383335777; Tue, 10 Jan 2023 12:42:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673383335; cv=none; d=google.com; s=arc-20160816; b=Noe/nFm5MUiVdsQtTsPxCLrYaDTABeCObSrMOzSE9iDHj5Iq8AmO2GgYAPyFPO19Ue bma91MUCO00vK251aUxyByF59XboGqILVrufeq02Tp920AjyQh1ImsPmW0s/Ns4QYl+X qyR69q3usrJ/W06SZJUoSxnRAwpDNlkVuybF/FnZlrrI96rjycp5Unb0yx5Z0lYLCEaq 84mPWl24t48S7yPjTJGI4sxORJPNkJnIUH4p6smoeSwgeR6e9NSjVYbrKneGpj0RJTmi nekIRoQe1O3Lh2aEURMdy4o/IB5BOy5YFoCoWuTj3wk9JE1nLD2zUs7+SQRoBGSzOLQ3 GKog== 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 :dkim-signature; bh=PUlhYqWTozoGYj7vTOgWG5ugiMiZl4MI3CrptTbMAhI=; b=nofc5QifsmoRMpCmjAxx3CCEo/xr6uJEHcz3vWImaaY7k/wN28I9whPI0NP43aPq3b QTU63wedGRP1Y8/KT4Th5Un2QOpL3P+YEr5/hDVEIYpAaWVHgLEyYYPSi5F+V/LKonlN JYd7h18Dtdm9vedDjmskSfukh+rjAnZnMi/Y1ch5xkZqoWMMqCsAAbfJNOUPa3CvYs87 /aXpBfI6gsVaDkQBgDJ+PeuwKHDOYbcTy6bMYhASm8w3ltCYhlmyQJ4NclbQmlgw180p aBTanvPtZCEeF+4GHfwTGP5kvndQ0nrfE94VMB7YdrV771YiiHWtRZqiunzBFc6oAF/F 25SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a+QtQ41B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n64-20020a632743000000b00489a4cba34fsi12645969pgn.21.2023.01.10.12.42.08; Tue, 10 Jan 2023 12:42:15 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=a+QtQ41B; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233209AbjAJUIk (ORCPT + 55 others); Tue, 10 Jan 2023 15:08:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233179AbjAJUIa (ORCPT ); Tue, 10 Jan 2023 15:08:30 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E56D365EB; Tue, 10 Jan 2023 12:08:29 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8235E618F8; Tue, 10 Jan 2023 20:08:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6ECAC433EF; Tue, 10 Jan 2023 20:08:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673381308; bh=Rp+czZg6segzTvjYV1RqZZWVIT4bMNdzIqwCOmZs3jQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a+QtQ41B1Ze0PnE5XECAWtttC0RUHrpS/1C9gX0ONy6cU4ecKHtSCgkk6K/VLMy0G oQBt1AtdpBwyZf6kDc5VDMMTdQQ5LPyZshct6Sne1ltP8jzfm4wMJTYTYTH9IGRO88 TJRdLDycn6cmHIscIHrmFMSVOpp4tMl+AjgX3tvfaNHyUxKXyMd2QIwcD4gb404oIv 8jXIBs2mRkpMx0egDnTkTgqAbrVL0ta+TaS4J5RoKyGBMuo7zczVPgPCUaTIEoFNbh U78yJaIDhF//jyym7ls4mS0wkjFnO1hne1HDemGWLvQON1uZTCF/zgpSYetSyuoff/ fKCCCSxzxI3lg== From: Daniel Bristot de Oliveira To: Daniel Bristot de Oliveira , Steven Rostedt , Jonathan Corbet Cc: Juri Lelli , Clark Williams , linux-trace-devel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] rtla/osnoise: Add the mode abstraction Date: Tue, 10 Jan 2023 21:08:04 +0100 Message-Id: <1b7fb58b676509a35104832027fcd1052149a059.1673380089.git.bristot@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 In preparation to the hwnoise tool, add the mode abstraction to the osnoise tool, so it can have multiple operation modes. Signed-off-by: Daniel Bristot de Oliveira Cc: Daniel Bristot de Oliveira Cc: Steven Rostedt Cc: Jonathan Corbet --- tools/tracing/rtla/src/osnoise_top.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/tracing/rtla/src/osnoise_top.c b/tools/tracing/rtla/src/osnoise_top.c index 76479bfb2922..d7bbd73e1a78 100644 --- a/tools/tracing/rtla/src/osnoise_top.c +++ b/tools/tracing/rtla/src/osnoise_top.c @@ -14,6 +14,10 @@ #include "osnoise.h" #include "utils.h" +enum osnoise_mode { + MODE_OSNOISE = 0, +}; + /* * osnoise top parameters */ @@ -32,6 +36,7 @@ struct osnoise_top_params { int set_sched; struct sched_attr sched_param; struct trace_events *events; + enum osnoise_mode mode; }; struct osnoise_top_cpu { -- 2.38.1