Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp106300rdh; Tue, 6 Feb 2024 21:51:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUfJvpfqXzdtIl/C6IMT5ePaUX0Hc0BgNBPWKfCb8ntSHYQFuE6qfKBhQTlXifsYBOOKXu7EALlp3S4ci2rkCYLKmG+fBPVqV0OQ6ATxQ== X-Google-Smtp-Source: AGHT+IErOhyvxFnHkOkiVL48Xoj0y88xh+72SsYLlMugr8ovo2qq+qFJeHQ2pJmILtkqeOmHeAqy X-Received: by 2002:a17:906:40c8:b0:a38:3815:5346 with SMTP id a8-20020a17090640c800b00a3838155346mr2465141ejk.30.1707285087373; Tue, 06 Feb 2024 21:51:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707285087; cv=pass; d=google.com; s=arc-20160816; b=W7II/8Cw3duZ+TWzhIYJGM87G7vqNw4LMP7Pvwjr8CX+qzeAG8B8EcA4chcMh528Ax PxEvQ8zoGXqLEaAL5XRjhY1oOmo3kxhCAaBIBxeUc9jDOZLgqZmN+BVpUr7+RjmEdRYB asz0wYLiOQCc6Fh/FF0dq0E3WFATSZPextVzbTXG1f54/AAEa8qe8IS2nzDev9n0//Gv mi6oIApSXzZDJXO39wNUrIys/UWr0sy3AksYqDKnfVrjWHAzL7/0tm1U5TxfugRRzkf1 hk1ueygp1VbHhd535rtvK0P2uGq0eL1OHJHjRv8Rl31ved8GWasB7BlMVooBdBY7c1bg HJmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=6HFE5XbPkuv4IpUMzgPKK0ywUly+m6JEn80embN3fwQ=; fh=cM80YKZa+Rd8Dm0uXWd9Vj3SXAh3bv3zus9oE6s3xLA=; b=APRWNuH+HxCU4fSdBlOgqiEmVhDn5czv1QrxQxsqSCN38uVylEXDGXVZhIRNU8Lbes TeyXscxHwhOR5fLsc2cH62mq5ITIpa4TtPcJ44k3opO+c1Ff6ftJFfwIUMTv7hlgvIvi nHCm+nNc5N40+UvscgEtxPNclkTwkYkgrhf/gzaGOuo4EZ4mrHO5Bbaywi0NUJhBRx3H 8yUiZTgPZ/DIjtfRrxAEkv5M6hS9R7CC3d1+qXx6Cxp5Cc2WaZOT+GY61B56iPOgTIrg FflfHWAphqGaI/er7V39MyiphJKB7c9WX0GznnT972JY2kAMv7sEwYgUgY+pdRXjTHP9 P4Rg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=btcJX+Av; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-55987-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55987-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com X-Forwarded-Encrypted: i=2; AJvYcCUvrv41MWHdcTSNQayjTaqVmgGs79RTTq8ONSybB73DICf7XH1YZhVQ76U0k+nV/yfBQW19sFap3f/YLq2jCkiwKiv4J6EGghSvo7J9cQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id t22-20020a1709060c5600b00a316f007a47si482378ejf.57.2024.02.06.21.51.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 21:51:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55987-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=btcJX+Av; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-55987-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55987-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 010B91F250DB for ; Wed, 7 Feb 2024 05:51:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 844AA15491; Wed, 7 Feb 2024 05:51:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="btcJX+Av" Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 518541CD19; Wed, 7 Feb 2024 05:51:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707285070; cv=none; b=JufTvkusZdbO6ZL7m3URyU19Bsb0woTFno8itiXTwvnHzonH3vUjtTrNBtN1Jz97vDj5X34lj84J1C/pCU/Iw0XAICdg1FCuG7H4x8s/IFezxG/omDMtRFa3QF4GxbSEdIxWdx6flnP3zDbqUC+XDBt4pJRFQLKw8YAr3nNVsR0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707285070; c=relaxed/simple; bh=6HFE5XbPkuv4IpUMzgPKK0ywUly+m6JEn80embN3fwQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=RzaQAwR7I3G4k9BMI8X6opC2zWefG0pD6rlno+ypD+sYbZfFebl1utoxjFHV4hrseItMJ3rNwY5ktFY3qjuFBVcRZtGw9ypZyzhWM3IvFvsWf2/4V+T5qig8LP07ncxU6mzndiDdGxFYCBBrHT2jXSRQWmQMSvPzCGGF4u0qBOo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=btcJX+Av; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 4175M2YO030237; Wed, 7 Feb 2024 05:51:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type; s=pp1; bh=6HFE5XbPkuv4IpUMzgPKK0ywUly+m6JEn80embN3fwQ=; b=btcJX+AvDkJ47AjCW3IomtbuPjmpkUS+WlM/Ca9wzmAaGRZFusT5kKtXUvFov4hVX9uk 7dSJT4Hk+Wo+Tpo2OYDSQhc1HPxHhz3G4Kdf4NsI5U1JLuT3XfAuuyWauzOs1D9vxPuc 6FDtiZy/jQDKw0ExkBDUJ3ft7cQkWLe5CTXk+0gslUBcwNCMH1MbU4kGmysYqE+X9fFk 6DbyVEFBrDrG+DgDLX3SUHQ2x93oXnEUyB1BJvARq+GnSUCuiAebA9ehoEpA+yaA5erl dfJGQ3FAYUjtGfKJE65FzKcghFOjXC2Y/Uc2VhMfJd7Yox8+RhV7bUQnd5XnqhbLS5AH MA== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3w43nb0m3s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Feb 2024 05:51:03 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 4174o1cF014739; Wed, 7 Feb 2024 05:51:02 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3w20tnuvgn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Feb 2024 05:51:02 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4175p0VN1311332 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 7 Feb 2024 05:51:00 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 294AB2004B; Wed, 7 Feb 2024 05:51:00 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E4E4F20040; Wed, 7 Feb 2024 05:50:59 +0000 (GMT) Received: from tuxmaker.linux.ibm.com (unknown [9.152.85.9]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTPS; Wed, 7 Feb 2024 05:50:59 +0000 (GMT) From: Sven Schnelle To: Steven Rostedt 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() In-Reply-To: <20240206060113.39c0f5bc@rorschach.local.home> (Steven Rostedt's message of "Tue, 6 Feb 2024 06:01:13 -0500") References: <20240205065340.2848065-1-svens@linux.ibm.com> <20240205075504.1b55f29c@rorschach.local.home> <20240205092353.523cc1ef@rorschach.local.home> <20240206060113.39c0f5bc@rorschach.local.home> Date: Wed, 07 Feb 2024 06:50:59 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: FuTFExxk6Ff0yYrXjiA9ALP_kp81Bs_E X-Proofpoint-GUID: FuTFExxk6Ff0yYrXjiA9ALP_kp81Bs_E X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-06_16,2024-01-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=735 malwarescore=0 phishscore=0 bulkscore=0 adultscore=0 suspectscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 mlxscore=0 priorityscore=1501 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402070042 Hi Steven, Steven Rostedt writes: > On Tue, 06 Feb 2024 09:48:16 +0100 > Sven Schnelle wrote: > >> I added some logging, and the test is not triggering this issue. So i >> assume the default of 128 cmdline entries is just to small. Sorry for >> the noise. Lets see whether we're still triggering some failures with >> the other fix applied in CI. If we do, maybe we want to increase the >> saved_cmdline_size for the ftrace test suite. > > I wonder if it is a good idea to increase the size when tracing starts, > like the ring buffer expanding code. Maybe to 1024? Or is that still > too small? 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.