Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp356343lqp; Mon, 10 Jun 2024 06:24:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjZ1RDIv3xN5R3wgbHfYAwpdIQjCKJIzLKQNP+8qy+4VdOt58zTDnLDwMag4pgH2491enVJwDFY1G/ppId2t5zD6pvHrbSUIeFA409kw== X-Google-Smtp-Source: AGHT+IFL/C4lYMcNmvZMYJMmCGzKVzWJcbrCKC3gg6XrvlloaWS3sjJuFf4AQkUjGEX2fl8sdiGB X-Received: by 2002:a05:6808:1902:b0:3d2:311a:c2bc with SMTP id 5614622812f47-3d2311ac59emr995498b6e.42.1718025866251; Mon, 10 Jun 2024 06:24:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718025866; cv=pass; d=google.com; s=arc-20160816; b=D7RqIrPIDHGCe2VvpeBsu7lfzS834QkynlpYpRyx7SrAxdmFNXQiNDDqj1PwGPwFof jK7/oVwQVnj7iny/OP0P+nWn/W13bHUq3JxtXehMKg5rDHT+IvFGx6naDyYErV9Y5Cs7 7TL1kXPewN6IQ8RFUwsRW3il3fqpxOZr4Az8BNPYrh4u7BwIk+j30xPlzKkZzhka/c5d NdXYIV6l3tJmh5bL4JfH7YDu2dcSk4RLjWwuabrQkE7USfoTDX+2kFYZkoMIsxIpRSJ2 4nu9GNoV3MtP3yDs0lmOkP39SlBMq3A2jsfEfPWOFPLj8lKy4j0MtMxDnNWWA2dbrGcJ L4AQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:to:from:date:dkim-signature; bh=HZ01OIp6KO6+A3DggujUXEq6vyWDZMFmW9tQ8SBohTE=; fh=XaPzdAhsp4dGOiCgmiG5zdshbNNsoTeH100fPRDElcE=; b=mz843NK96bVTzT6ev56UFiRGe7duD/pxa80lw7aEEhaD8fOFJLZSe/OmECvri6Yl/G jaaF9pSwaeJsOdS7TWxn5f5CVljgx1twoLNJL75jzUutnqUV7cxN8vVxjS/QEbb3ZQPS mGXsjmJSWPC9JGnWIJQuFVFnR2ILtDS1rMhxitK2/xYCUOgYRXXqF9u4/RnS9SnFpaIm jQ4DFX3g5FTOFUe8KAdCA8mIWH+1ZjJxTMJtgdFpavm0vR6xty9q//Srw/6A29WS7asP jLHb+IolUBczXeqpTKB7clshWG/P49M3qQt56W/D2QPY5pPX19ocSeiRM6U0FndU+hiH SYUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QXYPwALG; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-208226-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208226-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-7955ad9fda8si464733585a.128.2024.06.10.06.24.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 06:24:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208226-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QXYPwALG; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-208226-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208226-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 919BA1C219D7 for ; Mon, 10 Jun 2024 13:24:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA0F384DE4; Mon, 10 Jun 2024 13:23:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QXYPwALG" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A323E82889 for ; Mon, 10 Jun 2024 13:23:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718025806; cv=none; b=CXSTXccoCD+gRsZ2szu+FZyIhfS0L+ZMYNPQrNQ187ucSIFD9Q1y19N+0cFZjepe6sFcd1QzNAKP4vfkOkrBz+wuz4u/W77fCyng+OUMGCipQkRYk8PIx7B+x3Zaq5zTd734gBp++IraBd/YvFbuaNA/anB93aVoJeMhkq0+/8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718025806; c=relaxed/simple; bh=YhHZtXtYOeqPDpUQzggSLYgS7dOxECQ9WBN80nvz9pU=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=HUF1DFNJepv5FMlUEjFgoq6PeG262/Q+Kzwd/4AqlnwD6ie0JtIOfpdnG+CjK9HwTRsNecRjj3p7J14aaj7KAwUMNPLK9BLZXKVascxah8Aq4n4MeAMv2eCl0CxxalWs7JHsFCorEl0sp2l0wqiDVrV6Y/1xLEQzxGFZvn64jnc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=QXYPwALG; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718025803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=HZ01OIp6KO6+A3DggujUXEq6vyWDZMFmW9tQ8SBohTE=; b=QXYPwALGXYn9M4BU1PJUwlh6GPVKcndciLR/hmMyhjnmB1cV0nvkM+VMB9MhYKsvlOAx+J v17953b4iVvSvDG0MNZ7hiNU0BsbivHVsDuFiaURC/oIgdbEO9aJRTvJUlt6ftCgvnBQZj IkhFLohe+i0M4GX4NC6BWd9OCh40cpQ= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-240-9f1Rr8QsMCW28P4hg_Jl7w-1; Mon, 10 Jun 2024 09:23:18 -0400 X-MC-Unique: 9f1Rr8QsMCW28P4hg_Jl7w-1 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id AE0B81955D74; Mon, 10 Jun 2024 13:23:16 +0000 (UTC) Received: from localhost (unknown [10.22.8.210]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id C5F1B19560AB; Mon, 10 Jun 2024 13:23:15 +0000 (UTC) Date: Mon, 10 Jun 2024 10:23:14 -0300 From: "Luis Claudio R. Goncalves" To: Steven Rostedt , Daniel Bristot de Oliveira , Masami Hiramatsu , Mathieu Desnoyers , Jonathan Corbet , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH] rtla/osnoise: set the default threshold to 1us Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Change the default threshold for osnoise to 1us, so that any noise equal or above this value is recorded. Let the user set a higher threshold if necessary. Suggested-by: Daniel Bristot de Oliveira Reviewed-by: Clark Williams Signed-off-by: Luis Claudio R. Goncalves --- Documentation/trace/osnoise-tracer.rst | 2 +- kernel/trace/trace_osnoise.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/trace/osnoise-tracer.rst b/Documentation/trace/osnoise-tracer.rst index 140ef2533d26a..a520adbd34765 100644 --- a/Documentation/trace/osnoise-tracer.rst +++ b/Documentation/trace/osnoise-tracer.rst @@ -108,7 +108,7 @@ The tracer has a set of options inside the osnoise directory, they are: option. - tracing_threshold: the minimum delta between two time() reads to be considered as noise, in us. When set to 0, the default value will - be used, which is currently 5 us. + be used, which is currently 1 us. - osnoise/options: a set of on/off options that can be enabled by writing the option name to the file or disabled by writing the option name preceded with the 'NO\_' prefix. For example, writing diff --git a/kernel/trace/trace_osnoise.c b/kernel/trace/trace_osnoise.c index a8e28f9b9271c..66a871553d4a1 100644 --- a/kernel/trace/trace_osnoise.c +++ b/kernel/trace/trace_osnoise.c @@ -1444,9 +1444,9 @@ static int run_osnoise(void) save_osn_sample_stats(osn_var, &s); /* - * if threshold is 0, use the default value of 5 us. + * if threshold is 0, use the default value of 1 us. */ - threshold = tracing_thresh ? : 5000; + threshold = tracing_thresh ? : 1000; /* * Apply PREEMPT and IRQ disabled options. -- 2.45.2