Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp794821pxb; Thu, 15 Apr 2021 06:51:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUu9mucXP90QWtz2WafiSVBFDE2aJadABRkASPps+1x61UtZ+/UHhB4SRTNJ7r8wf/vFDQ X-Received: by 2002:aa7:d699:: with SMTP id d25mr4227740edr.83.1618494683936; Thu, 15 Apr 2021 06:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618494683; cv=none; d=google.com; s=arc-20160816; b=nPf4ro4QCxUt17ZCOoCzSXjVizX1sdyZGXv4B7/tskPSPf536/14mzfoUYbLii1bJm qu5kWQ+BJdIPGLPM2dREZTc9zzJmenyHI8OpH1nDcN2gUa6ZhwYG5KMit9ezVpW8mUnL hdaXzGq75axyM9q6zCxWBVki9N3KtqAGfOr3M8m9HNQLmGuxiTpNR1BVZbwm8eyMWY6m TXrj8SdDqEC8QgEJh+RiCq7Ti7ibel5IuSQe9U75zoxhpd6UytHIdqeSn49mpNVnzYHS iT5doR0Sv+0GvsbRRHd/9Bjs27BDyBtU4txq5Et4eOjr+lPRFLXVMRIrZWo4BjPutbWD FCDg== 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=+x03wBe5vQojvzWpHRYADS+23I2+T+8pTZvSKCo5lUc=; b=mrohdydughIuj9m5Vn6NertaNTdROzusYjH3H0BUW4qMhkcxynCZG6bQW9KgJuyq0z Cr+ajtSrcnitQlToMGz4yRJttpumbtT7Y6ECaBiRlL1BU8Ew2l2hiuI5GaLN+d6uJpDL q1U320EIUsXCZuG0s+ccMyMnGbQtZE167+eN6/qzyPgd3uTsW8JWocpJzW2UtWbCxZU8 BlKsRaffLj16T4Vyz7KGak2EZ64mKWkbFL53nS74JS8OnN8Qv4PsN3hIVmpzfOIm1FmL jGyu5K3V/U2kZL6tS3KIXbRHNWnH/nX6oEL6/PGZ7I8/oXbwurgdmHyYALpelzdQDhkP nhJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hd8si2068805ejc.78.2021.04.15.06.50.59; Thu, 15 Apr 2021 06:51:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233227AbhDONty (ORCPT + 99 others); Thu, 15 Apr 2021 09:49:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:50754 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232004AbhDONtt (ORCPT ); Thu, 15 Apr 2021 09:49:49 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B71FF613BA; Thu, 15 Apr 2021 13:49:25 +0000 (UTC) Date: Thu, 15 Apr 2021 09:49:24 -0400 From: Steven Rostedt To: Daniel Bristot de Oliveira Cc: linux-kernel@vger.kernel.org, kcarcia@redhat.com, Jonathan Corbet , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Alexandre Chartre , Clark Willaims , John Kacur , Juri Lelli , linux-doc@vger.kernel.org Subject: Re: [RFC PATCH 1/5] tracing/hwlat: Add a cpus file specific for hwlat_detector Message-ID: <20210415094924.473a98df@gandalf.local.home> In-Reply-To: References: <94bbcd0e0f06b79aeb775e8dbf3a301f6679bb4c.1617889883.git.bristot@redhat.com> <20210414101019.7c5a66f6@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Apr 2021 15:09:50 +0200 Daniel Bristot de Oliveira wrote: > But for the osnoise tracer the cpus file is really useful. For instance, on a > system with the CPU 7 isolated: > > ----- %< ----- > # echo 7 > osnoise/cpus > # echo target_cpu == 7 > events/sched/sched_wakeup/filter > # echo stacktrace if target_cpu == 7 > events/sched/sched_wakeup/trigger > # echo 1 > events/sched/sched_wakeup/enable > # echo osnoise:thread_noise > set_event > # echo osnoise > current_tracer > # cat trace > [find...] > kworker/0:1-7 [000] d..5 1820.717780: > => trace_event_raw_event_sched_wakeup_template > => __traceiter_sched_wakeup > => ttwu_do_wakeup > => try_to_wake_up > => __queue_work > => queue_delayed_work_on > => vmstat_shepherd > => process_one_work > => worker_thread > => kthread > => ret_from_fork > kworker/7:1-410 [007] d..3 1820.717790: thread_noise: kworker/7:1:410 start 1820.717786519 duration 3626 ns > osnoise/7-1000 [007] .... 1821.582340: 1000000 90 99.99100 15 1 0 12 6 1 > ----- >% ----- > > It was possible to easily find that the '1' thread noise was a kworker, > dispatched from CPU 0, and that it was dispatched by "vmstat_shepherd". > > Also, the osnoise dir is not added to a new instance... so, it only > costs "one" file... Every file counts. ;-) What you did not articulate well, is that you want the other trace points to be traced on all CPUs (maybe) when the osnoise threads are on a few (or vice versa). OK, for osnoise, I can see how it is useful. But as you said above, for hwlat tracer, it's not as useful. -- Steve