Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2563351rdb; Wed, 4 Oct 2023 05:19:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHU7wbYhi4SUk0iBY9C499sIxv7+LTcnTVHpxLJa/MeCkumaBO0kdONSyVIRvz5FJl3bazu X-Received: by 2002:a17:90b:398:b0:26d:1eec:1fc4 with SMTP id ga24-20020a17090b039800b0026d1eec1fc4mr1868938pjb.19.1696421947388; Wed, 04 Oct 2023 05:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696421947; cv=none; d=google.com; s=arc-20160816; b=uD38T13L6uVwYa5OUuQ2my/CIwoA759C6mGjX6rr9nkuJTZ9t3PPvrmbDudyVJWfKV siKJibIhaPkY/FYiPI3znGooo40mhWxUHSjB7Z7AtNKsvLzFu4Gf54BUMx1DB0NQZ2n3 PbdZ/6OCigfOAG/AoBAsqSCQqPpf6pqTS9xWCc+4rJThEG06pkl3RrtLhOwMeNVzYOL3 Afd4CYJ6uShePxW1LH5zV2uihdUW+Z1MYRt9vZ5KCWmhwdEu3z+jmceKK1YbhKSVbBM3 hsH0rKB1ltZRmHlLEsXK6/Uscye//BSp98HSULlW69aTxY6WpZZC/tkWyLt8hHmdBkNn R92A== 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:subject:cc:to:from:date; bh=Fx37tf+kRplDEClipi3DSGoNcg9yQBMvcmdHXl767u8=; fh=gcuVzvMGobho87TxJZXBeN0BpNqQVzs1RjAXQu7nTN0=; b=AI7KoMyHUT3wZh7BDJs4S6P6tzKAHclcSlAHuN+7egwc38WqPc+EH9Lnkjff7OfkDZ zWcLV+LCm978b9A5bbFatdMie6/lbboBe5PubWlFuuKMJaeUp9679IMRBjoeYOe9Spti LyDdfNgPIF6AQWYNGgd9CltesWnxxkw2i+GfO47kp+0GeIhSemvugT0/e9J+lc+H44yz JDkgyUjCDmaqh4Kmw0XGJuJMSADZu5QAuTHg6UXIZBS2F66J3KJ8M/7nZCzDuVcbcivT 5OKjioj5U4mPfkc/9N1jFTRdhxXYQg3484i93akYKDpYFEG4Sfb6nQNjKiabeffv/+tY B27A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id a13-20020a17090a740d00b00274e16f797csi1408301pjg.20.2023.10.04.05.19.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 05:19:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DF41F81A5A64; Wed, 4 Oct 2023 05:19:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242307AbjJDMS7 (ORCPT + 99 others); Wed, 4 Oct 2023 08:18:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232919AbjJDMS6 (ORCPT ); Wed, 4 Oct 2023 08:18:58 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58F3893 for ; Wed, 4 Oct 2023 05:18:55 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7935DC433C7; Wed, 4 Oct 2023 12:18:54 +0000 (UTC) Date: Wed, 4 Oct 2023 08:20:01 -0400 From: Steven Rostedt To: Daniel Bristot de Oliveira Cc: Masami Hiramatsu , linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3] tracing/timerlat: Hotplug support for the user-space interface Message-ID: <20231004082001.104fce96@gandalf.local.home> In-Reply-To: <20231004081731.141dfb99@gandalf.local.home> References: <20231003210309.4335307d@gandalf.local.home> <3fbe67a4-225c-14c1-cb5a-3f667ad80b0e@kernel.org> <20231004081731.141dfb99@gandalf.local.home> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 04 Oct 2023 05:19:05 -0700 (PDT) On Wed, 4 Oct 2023 08:17:31 -0400 Steven Rostedt wrote: > #!/bin/bash > > find_debugfs() { > debugfs=`cat /proc/mounts | while read mount dir type opts a b; do > if [ $mount == "debugfs" ]; then I guess I should update this to look for tracefs. This script is actually older than tracefs. -- Steve > echo $dir; > break > fi > done` > if [ -z "$debugfs" ]; then > if ! mount -t debugfs nodev /sys/kernel/debug; then > echo "FAILED to mount debugfs" > exit -1 > fi > echo "/sys/kernel/debug" > else > echo $debugfs > fi > } > > debugfs=`find_debugfs` > tracedir="$debugfs/tracing"