Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1964414lql; Wed, 13 Mar 2024 13:14:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjcJPJUtj/ymOwuUUVsWsTyNFQLqsEA4IHJK6NCX+Kq2K/XFDf06xIJXSsQilPjoG5G5WrZb01BRh/3H/N2wnG42PGcUmmOzNR4RS4tQ== X-Google-Smtp-Source: AGHT+IFC8XQBJ1Z+min/HU0mMGhTfCA5nmR8obMMQdj5jd+22zmFsQQwAcVJeVU30s21KwztbuJ9 X-Received: by 2002:a17:907:a0ce:b0:a45:ed7f:265c with SMTP id hw14-20020a170907a0ce00b00a45ed7f265cmr11446823ejc.0.1710360877892; Wed, 13 Mar 2024 13:14:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710360877; cv=pass; d=google.com; s=arc-20160816; b=SHG6BPWyzoTOqZPLeN70JOHF+l5RBEAd4iGVXhHbZY1EPPtM2NJyNQyBzuMsAlu6Xp rFj7XcjiYEKClCyUMDlSjf6gTPyK+tIlKKsG2V9mc5hiG4I9QgT3FOuaHzRdPc4hsiiE xRsPlcVtjrifzA05zc65CGS301kaZ1+N/dp0OjnY4IH21eEJnROsSpS+2G8h3P7bIOml I0sMb1R5j6Hz1E5D017X4yRGodz26wHqzCcCTAuTBv5SqDR1XhodmXJb0KQPTqjw1UHB ULtYEcuMkXEx/KvibtX93jfNa1V9A0NRBc7O77N5hQg75OhDkWMt1rMxaDAMazcGzA0a p6rQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YeEhbIeG0sd4iEstywrq9Kq8luOCrNUJeccK6mTRQFw=; fh=NzH+LoOp8MDmrWw70cMkAoJljH5dnessOYLS+71huVQ=; b=WACXcxViGp7qBCQDxz84bBuEXnXCIZXFa+0Yd4wHaVwh+qrptiPviHFp49wcJz+RQi vURcw4dNaNl+bnr3CRf0jj9+CtUa5cCBLNl3yBr+oa93AWmTqm/xBh2CZ8+Z1lopW2n2 UiM9rU61BbYhBcCV6LdHBWgCOk2e1H63I0nXP1Sng9q2z6v1+sdLPcGYGxiKguXhoRAy B7Qcy/nGSWXiFPq311zTp1hxthRRmL2K6Nvt4Y/rzGib8dnjyUitGVtuKpPOlPUhurib xVmn8hEJ3pBs16TTAJgab7ew5JjhWumrfjlzDHw5nf5AzkCsuT1/2XGdmmmPD43wtYDO /G+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=obGjoR6B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-102482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102482-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h24-20020a170906591800b00a461b521ae2si3713984ejq.606.2024.03.13.13.14.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 13:14:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102482-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=@kernel.org header.s=k20201202 header.b=obGjoR6B; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-102482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102482-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9D5881F21A99 for ; Wed, 13 Mar 2024 20:14:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5C414D9F0; Wed, 13 Mar 2024 20:14:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="obGjoR6B" 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 C13E920DDB; Wed, 13 Mar 2024 20:14:28 +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=1710360868; cv=none; b=QdxsyLoh55idINbHZBIz32RgYkIbQkvvOweRXXu0swlgymigysefpsCwQieJgof3/URZON7+18wM+N4QuxxwPWafgkm4exPnYHv7AX/OCx5wiixNg8mBfRQmseT9WId6fHq4A/RQIX1LZTaGXsumS+8WvTEaixbVo9LdolwjLek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710360868; c=relaxed/simple; bh=oXOjkxjCY1EERAdvIUEGSViGaQO6PEQsL/XDFPsslKg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Rp0ybqj7IbxOobFhVrj6LyOAIxwJ3arI5OizeE2u7LB3AhF6a/jzeB4oZ3APM/vAYZCOv+ph0L2RJdtSLQ1G6mVbVN1rbDZZSsUajmB7aCzAtev8TNGYh14jl6rAhnsZ4/PXTbg55iqYpVG4IYZqEF2IFtwDXscetTP+xuBwHas= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=obGjoR6B; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01ABEC433C7; Wed, 13 Mar 2024 20:14:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710360868; bh=oXOjkxjCY1EERAdvIUEGSViGaQO6PEQsL/XDFPsslKg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=obGjoR6BxJZzkcBNmz80kedIvmY/VgxroDPPwvwz23s96S3zXAS9NYxfqPmFVpv7i qlDiRBSEnT+G2ia5i8ApD29HYoI0xZQNkHKGqEIr+Wrhh7Rmeaves5JfU42kyxfXf2 wpnacT/EHzZsINrZvsGk3OLNV1teeC6e21fc+bqia7nM+G985prgKXRmEF4U8mmbk0 NKmTG2SNoM4pZRTTcpg7INB2TmkK6+pedDjXI+5dk0WToNjKn7+2f910vSeDQtxkFv m7wrQovvNHygIN8S0+cptJmAnVgMUselDCs4o1uarJ2i0ob5uzFE5MA63Jt5+MngGY N9yl8QXgfDyxw== Date: Wed, 13 Mar 2024 17:14:25 -0300 From: Arnaldo Carvalho de Melo To: Sebastian Andrzej Siewior Cc: Marco Elver , Vince Weaver , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Adrian Hunter , Alexander Shishkin , Ian Rogers , Ingo Molnar , Jiri Olsa , Mark Rutland , Namhyung Kim , Peter Zijlstra , Thomas Gleixner Subject: Re: [PATCH v2 0/4] perf: Make SIGTRAP and __perf_pending_irq() work on RT. Message-ID: References: <20240312180814.3373778-1-bigeasy@linutronix.de> 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 In-Reply-To: On Wed, Mar 13, 2024 at 05:12:25PM -0300, Arnaldo Carvalho de Melo wrote: > On Wed, Mar 13, 2024 at 03:30:52PM -0300, Arnaldo Carvalho de Melo wrote: > > On Wed, Mar 13, 2024 at 03:14:28PM -0300, Arnaldo Carvalho de Melo wrote: > > > 'perf test' doesn't show any regression, now I'm running Vince Weaver's > > > https://github.com/deater/perf_event_tests, storing the results with > > > this patchset and then without, to do a diff, lets see... > > So things improved! I'll re-run to see if these results are stable... > tldr; No dmesg activity, no kernel splats, most tests passed, nothing > noticeable when running with/without the patch with Vince's regression > tests. So: > Tested-by: Arnaldo Carvalho de Melo > Reported-by: Arnaldo Carvalho de Melo Too quick, now I'm testing it on top of torvalds/master, no PREEMPT_RT. - Arnaldo > - Arnaldo > > Further details: > > Without the patch: > > [root@nine perf_event_tests]# ./run_tests.sh | tee results.$(uname -r).new ; diff -u results.$(uname -r) results.$(uname -r).new > --- results.6.8.0-rc7-rt6 2024-03-13 15:26:37.923323518 -0300 > +++ results.6.8.0-rc7-rt6.new 2024-03-13 15:32:43.983245095 -0300 > @@ -296,7 +296,7 @@ > + tests/rdpmc/rdpmc_validation > Testing if userspace rdpmc reads give expected results... PASSED > + tests/rdpmc/rdpmc_multiplexing > - Testing if userspace rdpmc multiplexing works... PASSED > + Testing if userspace rdpmc multiplexing works... FAILED > + tests/rdpmc/rdpmc_reset > Testing if resetting while using rdpmc works... PASSED > + tests/rdpmc/rdpmc_group > @@ -304,15 +304,15 @@ > + tests/rdpmc/rdpmc_attach > Testing if rdpmc attach works... PASSED > + tests/rdpmc/rdpmc_attach_cpu > - Running on CPU 4 > + Running on CPU 0 > Testing if rdpmc behavior on attach CPU... PASSED > + tests/rdpmc/rdpmc_attach_global_cpu > - Running on CPU 6 > + Running on CPU 3 > Testing if rdpmc behavior on attach all procs on other CPU... FAILED > + tests/rdpmc/rdpmc_attach_other_cpu > - Measuring on CPU 5 > -Running on CPU 6 > -Measuring on CPU 5 > + Measuring on CPU 0 > +Running on CPU 3 > +Measuring on CPU 0 > Testing if rdpmc behavior on attach other CPU... FAILED > + tests/rdpmc/rdpmc_multiattach > Testing if rdpmc multi-attach works... PASSED > > A test flipped results. > > Trying again with a more compact output: > > [root@nine perf_event_tests]# ./run_tests.sh | tee results.$(uname -r).new ; diff -u results.$(uname -r) results.$(uname -r).new | grep ^[+-] > --- results.6.8.0-rc7-rt6 2024-03-13 15:26:37.923323518 -0300 > +++ results.6.8.0-rc7-rt6.new 2024-03-13 17:06:34.944149451 -0300 > - Running on CPU 4 > -Testing if rdpmc behavior on attach CPU... PASSED > - + tests/rdpmc/rdpmc_attach_global_cpu > +Testing if rdpmc behavior on attach CPU... FAILED > + + tests/rdpmc/rdpmc_attach_global_cpu > + Running on CPU 0 > - Measuring on CPU 5 > -Running on CPU 6 > -Measuring on CPU 5 > + Measuring on CPU 7 > +Running on CPU 1 > +Measuring on CPU 7 > [root@nine perf_event_tests]# > > Since its that rdpmc that is now always failing without this patch > series, lets try using that .new as the new baseline: > > [root@nine perf_event_tests]# ./run_tests.sh | tee results.$(uname -r).new2 ; diff -u results.$(uname -r).new results.$(uname -r).new2 | grep ^[+-] > --- results.6.8.0-rc7-rt6.new 2024-03-13 17:06:34.944149451 -0300 > +++ results.6.8.0-rc7-rt6.new2 2024-03-13 17:08:41.438282558 -0300 > - Testing "branch-misses" generalized event... FAILED > + Testing "branch-misses" generalized event... PASSED > - Testing if userspace rdpmc multiplexing works... PASSED > + Testing if userspace rdpmc multiplexing works... FAILED > - Running on CPU 6 > -Testing if rdpmc behavior on attach CPU... FAILED > + Running on CPU 2 > +Testing if rdpmc behavior on attach CPU... PASSED > - Running on CPU 0 > + Running on CPU 2 > - Measuring on CPU 7 > -Running on CPU 1 > -Measuring on CPU 7 > + Measuring on CPU 2 > +Running on CPU 0 > +Measuring on CPU 2 > [root@nine perf_event_tests]#