Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp644971rwi; Wed, 26 Oct 2022 05:38:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5jYfXsQjkzUZZ8x1qq/UubA/lX48Sn9WyLP5eFeAQzFugQuodKFvpJeN0Npg2wBJr9ylNJ X-Received: by 2002:a17:906:8a52:b0:78d:b6db:149d with SMTP id gx18-20020a1709068a5200b0078db6db149dmr37249329ejc.733.1666787910660; Wed, 26 Oct 2022 05:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666787910; cv=none; d=google.com; s=arc-20160816; b=b/sZ5P65gWcjPsdDk4SuZwyZtNXCXCIa5mjIn81tQpa8kPkE0vmvVqXtmVCz2tBTkH l3E45T0I2kuJtSSe/eGBMTp3XokA7hDnLmZAWeFpfyNjubrLA5XDnmQnINUpBZHDNO1X yoQ9V6zHDElt2l60zGSrnKM+281ueIzs16ZPUHGETmk7XC3BM00CpNGJqBADp7cflm/M psEMZkm0tiMF37ZzERErquXAVLeCp2q7gLYTNOCH3jqNnMcgMN5iexFelsOqYEHxUT6m hbnFJ1T0K1qBMMEXwTRvmFCaqWjdxoVULRnIe/3USNuISs10ak9D5/JpB5KMilPrMjEd XEpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=guerCcZW8S5A4Ws/vpioxLgyy07e+rrDXBfGECZUDig=; b=el5A3Do/+39WlRFtGWP/fKKXCgsd2dSXHzzyoD4ab9pbKR8+bx6EOMnmd2W/3nd+XI qY6ggPVyHrnDu4xmlTTgGf64d/2bXPhFLsQgBZ45mYVRA87uJMX4gEZ8LLiuiLZaNbA6 TrMI+8QHr/MkNDdUKNvdOuHSj8Jb8wA9Mwgg8Y3ogaovjOmR5c5unuUHNZBrpna3GDD6 dl8rAiX7LMws9nE5GByTkvB/Q37iKhLSAXKyfiIqLDnVFi0p/SxL4qPebxlf4DqBYXSO 37W7nKfFYJ8A6SVSY+Yx6xM2Q+C7AOtdOy4l7grP6Wxv0bJTa3ekm0JNxybPvAkOTxmJ Nqyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fA/JWXas"; 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 qk17-20020a1709077f9100b0073d8ccd37c2si6022247ejc.107.2022.10.26.05.38.05; Wed, 26 Oct 2022 05:38:30 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fA/JWXas"; 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 S233452AbiJZMb1 (ORCPT + 99 others); Wed, 26 Oct 2022 08:31:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233245AbiJZMbQ (ORCPT ); Wed, 26 Oct 2022 08:31:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE7CE6D9D8; Wed, 26 Oct 2022 05:31:12 -0700 (PDT) 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 69D8B61E97; Wed, 26 Oct 2022 12:31:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08690C433C1; Wed, 26 Oct 2022 12:31:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666787471; bh=UAxsV8P09WzkrdPNh08BKdHmn8oLfrTBFNapEM78kNo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=fA/JWXasghCxaVHDLrB09Gj+o5/sS7Vje1jkXLO2S/yEjho4rL6nmuxnnIkYUBiqR MbLJbWk72GBvHeg5ZddQinU8XxKTanNhq8lqwFRHxfjten4w5xZ8xA4TNVEi3svDBM MkmJe/0pmK2JSI3NtJsEasiO3wd5ne/F/a9YzRv4QoINnDra+sx7nUGbBcw5XcfesK cEH3THbvY6Vp2WpH0aBF8ntwlKgl3td+8X9CKPE0ORCnR4f1XbC+qS4BdJecVsNG2R LAC9zxhXoxE/A3Xw2gnujpC+nyJxeaRB83MkspXOVDv35cNGpZGZ5qXs1DcX0I6iqU wSddhUgyEcwVQ== Message-ID: Date: Wed, 26 Oct 2022 14:31:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH 2/3] tools/rv: Add in-kernel monitor interface To: Steven Rostedt , linux-trace-devel@vger.kernel.org Cc: Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: Content-Language: en-US From: Daniel Bristot de Oliveira In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 On 10/26/22 12:44, Daniel Bristot de Oliveira wrote: > Add the ability to control and trace in-kernel monitors. This is > a generic interface, it will check for existing monitors and enable > standard setup, like enabling reactors. Oops, forgot to add spaces before # > For example: > # rv list > wip wakeup in preemptive per-cpu testing monitor. [OFF] > wwnr wakeup while not running per-task testing model. [OFF] # rv mon wip --help > > help: > > usage: rv mon wwnr [-h] [-q] [-r reactor] [-s] [-v] > -h/--help: print this menu and the reactor list > -r/--reactor 'reactor': enables the 'reactor' > -s/--self: when tracing (-t), also trace rv command > -t/--trace: trace monitor's event > -v/--verbose: print debug messages > > available reactors: nop printk panic # rv mon wip --trace > -PID [CPU] TYPE ID STATE x EVENT -> NEXT_STATE FINAL > | | | | | | | | | > rv-3613 [001] event 3613 running x switch_out -> not_running Y > sshd-1248 [005] event 1248 running x switch_out -> not_running Y > -0 [005] event 71 not_running x wakeup -> not_running Y > -0 [005] event 71 not_running x switch_in -> running N > kcompactd0-71 [005] event 71 running x switch_out -> not_running Y > -0 [000] event 860 not_running x wakeup -> not_running Y > -0 [000] event 860 not_running x switch_in -> running N > systemd-oomd-860 [000] event 860 running x switch_out -> not_running Y > -0 [000] event 860 not_running x wakeup -> not_running Y > -0 [000] event 860 not_running x switch_in -> running N > systemd-oomd-860 [000] event 860 running x switch_out -> not_running Y > -0 [005] event 71 not_running x wakeup -> not_running Y > -0 [005] event 71 not_running x switch_in -> running N > kcompactd0-71 [005] event 71 running x switch_out -> not_running Y > -0 [000] event 860 not_running x wakeup -> not_running Y > -0 [000] event 860 not_running x switch_in -> running N > systemd-oomd-860 [000] event 860 running x switch_out -> not_running Y > -0 [001] event 3613 not_running x wakeup -> not_running Y > > Cc: Jonathan Corbet > Cc: Steven Rostedt > Signed-off-by: Daniel Bristot de Oliveira I will fix this log to in the next version. -- Daniel