Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp231155rdh; Wed, 7 Feb 2024 03:12:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGtXFYsVz8BOL9aFG7pYGac2PNhys/VjhhXGbpMdOEfmI7/ln1Qc8JWY3ppG9vgq9BL8Ee X-Received: by 2002:a05:6870:8288:b0:218:cdce:478e with SMTP id q8-20020a056870828800b00218cdce478emr6117407oae.19.1707304349627; Wed, 07 Feb 2024 03:12:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707304349; cv=pass; d=google.com; s=arc-20160816; b=gbe7dfNo/GcOpabL5Ws5PvBROsEb1gP3yH2TWW5On+qLDQdMLtJqn/ed+I7E7OylI2 O6b+c7F6a92CHr/8NoRl+zwxHUa/VXu5F1fE97NpA6VQ1kOGXKPzyvXiLX9PTWDoseSv OFWcAv+esWrz4yMS4m3bPRq8+LH7Q0n+AzAXSS8rh9FPc9on+6QQi8LuKjFQ8+KW1Ssr M8qatEYCLKfNh2352ooKo7+wT5mDMN2pveIRfLAEr8PL3g/uNLcVD4qIC/ClJNUyNvhu Lfd6mkPQ1l4aUXKCfVQTszTVl7yq/VDWJWqTN07itxy0kkBGB6fkEO1gxRg6JNjLXbf2 CfHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=3d920/gg0NJob19M4Cyq7mli11h+3maiACOkvHgQw6E=; fh=mIYpSA2Oe1AdlNGHWXyPl/MIVU4hKYhfty1IwfDuxDE=; b=U9wwHKvGbgGjw0r81AR6MakA8b96Z/x/VRIUxnhkE9hbWZNmo6rq+F+hRK5X+WAg9t eTJIhkBcUjMapsBsIgjBdM5yu1m8i74QyMB8Iq+MoiH9zU31vDQZp9nPNZielOioXD2p JijBpYSudmHI/U62rSDUAFgsdIsxQ0a8oGcMXKMxtDEzJcX2I3soY7EYJIk+mDVSzjZs 5zCCSOGI1NCiN+gdUSIogTF3oysNJAZRJfWmQELrBCrmkTZoqYL/fosVz89dHaciQ1Xi BGhFXUSN8dcBjWkZt8cRakkKCQCVdZWqiUEZQtARdel95ak30nT2RDA5O0RVYWIkCWM6 U+aA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-56363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56363-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWyi5MT+thjhv7A5tw7ziGp3rlKgM+kSg2NygYOUJVySdq+0zqWqe8wNHxInhtrEHoOg5r7iH6JVYtcnifwjI8r2KqU/i+xepq39RSOJw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id bo7-20020a056a02038700b005d8e280c876si1362098pgb.729.2024.02.07.03.12.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 03:12:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-56363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56363-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8080CB249B6 for ; Wed, 7 Feb 2024 11:10:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8240C18EB8; Wed, 7 Feb 2024 11:09:31 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E5D6925601; Wed, 7 Feb 2024 11:09:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707304170; cv=none; b=ICSCClr7k0wRfvnci9qab8ceDHfrR5v9y4zpLBlsvXfNWv0/3UIcLmEV0b5aiw5rD4/FhRRjvLnyjytzpbGoj5CFIxyAXsWN4h83ivRDMUDCnL8dFTearTj46Xvt/UTP5aQWaPOMxsPMm0YU1xODtEfNA/kXeO+OsjRGistjsjA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707304170; c=relaxed/simple; bh=3d920/gg0NJob19M4Cyq7mli11h+3maiACOkvHgQw6E=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ktjqs3QwqvYHsmw926cvaPkqRobGBO/LjcdHF/5GimeJ1NMw5KV43ojaQq94v4V58JQT9RqoaoYtwj9ncYMboV7IPlwWPjcs00CMuN64Yq77XBsikH5uUsmHcTSP3HW/5CaYpnrsof8x0q04RONyG92sujr8hX2j114Qm8U2mM4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 945EEC43390; Wed, 7 Feb 2024 11:09:28 +0000 (UTC) Date: Wed, 7 Feb 2024 06:09:23 -0500 From: Steven Rostedt To: Sven Schnelle Cc: Masami Hiramatsu , Mathieu Desnoyers , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Mete Durlu Subject: Re: [PATCH] tracing: use ring_buffer_record_is_set_on() in tracer_tracing_is_on() Message-ID: <20240207060923.182ecb55@rorschach.local.home> In-Reply-To: References: <20240205065340.2848065-1-svens@linux.ibm.com> <20240205075504.1b55f29c@rorschach.local.home> <20240205092353.523cc1ef@rorschach.local.home> <20240206060113.39c0f5bc@rorschach.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Wed, 07 Feb 2024 06:50:59 +0100 Sven Schnelle wrote: > Hi Steven, > Not sure whether that is enough, have to test. However, it's not really > a fix, it would just require a bit more load and the test would fail > again. The fundamental problem is that even after disabling tracing > there might be some tracing line added due to the lockless nature of > the ringbuffer. This might then replace some existing cmdline entry. > So maybe we should change the test to ignore the program name when > calculating the checksums. Have you figured out what caused the cmdlines to change when tracing is off. It shouldn't be updated even with just 128 entries. I'm also looking into a way to keep more of a LRU command lines around, but nothing concrete yet. -- Steve