From patchwork Tue Jan 10 20:08:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Bristot de Oliveira X-Patchwork-Id: 13095625 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 85930C61DB3 for ; Tue, 10 Jan 2023 20:08:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232097AbjAJUIe (ORCPT ); Tue, 10 Jan 2023 15:08:34 -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 Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@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 {