Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1629726rdh; Fri, 24 Nov 2023 19:23:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGso+oLZEUBOvOgUYNf41hXNX1z40azn20eNvBm46awnz/RYHaXnMf0NP5l586TNAOeUGRR X-Received: by 2002:a05:6a20:d48b:b0:18b:8fd9:5ad4 with SMTP id im11-20020a056a20d48b00b0018b8fd95ad4mr5960444pzb.10.1700882588369; Fri, 24 Nov 2023 19:23:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700882588; cv=none; d=google.com; s=arc-20160816; b=SVvK3ANZS37HkCfWgkyAcCuKYYCJoUd+7RKAacRabqwqGasiFsmtdxQ0UaAq9z4gcf 7yFaq8gCvicUwHDzpXRjl7Qu9NCClqe/pDxGRmi5uaMRJhTkJnkI2PJfQBhQ6Nxfb0Ru DlOyTK5tCkCfZgBwfaVjMz4YAgdd0fFBZmFiO8OyEOKWnBtLcIsb8UgfxMgBQV28jbk7 wAVNCWVf7AQ9s8g3I0naCqKjpV3eS/TK+vsnsA4tTYzRnsUva7TvXVGAYamjUqskhSfn fb8vd4xka83ywe5qJPu5f47dLpvxchpoveYZUgGwhVh6l91mtYmI5HobwJ6xG2HUuWdj KLMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=v2cuSqnvi/SCjlwUg4+09mEhsulM5HDD1xbtCjbVPcc=; fh=YhvGzAK3LMu1Lep8zZytVjM30D8lkgUadEBXdfrEBoc=; b=pUzif0+OcvhNkKDCI9e8vHeVEnqK4FWT4DYecNSwE9D5LzPcm0BM5MQspXUSNhjdIZ CqG3duA6WUKaolGV8cab+pA43Al/QPWGdwHGwdQ0b2cjSGIFsbl9t3E0klYMw/S3y5ks PF00LlTh6We7qjqewVPdTEr+Ops0fNa1vv8cNR8rcb06c8u6AySQIoDV/KWgl9rnP+FB VBX90xpZBbK4JnjWCi2mnULOPawq52/P2AWCzW5K8REbCOaY4nA6jt7rX7BTpqvuZVGa 7s3f4t8SQT/A8WeSTEAS0bjYdnO6Wr0JaKxGSqiUQJTr7uTBA9/fmEIBliuKFJTFTVMG W0jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X0V3CG7H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u11-20020a170903124b00b001cf7c07be54si4956948plh.507.2023.11.24.19.23.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 19:23:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X0V3CG7H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 6475880E496F; Fri, 24 Nov 2023 19:22:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229694AbjKYDFd (ORCPT + 99 others); Fri, 24 Nov 2023 22:05:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjKYDFc (ORCPT ); Fri, 24 Nov 2023 22:05:32 -0500 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF36F170B for ; Fri, 24 Nov 2023 19:05:38 -0800 (PST) Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-3b2df2fb611so1625277b6e.0 for ; Fri, 24 Nov 2023 19:05:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700881538; x=1701486338; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=v2cuSqnvi/SCjlwUg4+09mEhsulM5HDD1xbtCjbVPcc=; b=X0V3CG7HGlSyEJ4JY7gqzkWyfnoN/nhESmRKbZS8oNUm/aH3qKrGtqufkFY96O9O41 LKhGAT603p5BgwOWbtfbenq1HUZNwJCs2bmSUiSbFWA5qqyC+UQE5WAQ2GgkGWwgz7GQ zYVb0qKjFe/6zDVrYe1yU9GZd8tdbyCGO9kXvsXY98j3ZIyMJKCGlseEX+0+GtQNMxfu rUwCbHRlQxK3lC6Xply05+gw+diSF3L3aX+PvbifCqDlUh0KamXfw0gfwHEnA+fhMyxS nYalFdfpLY/Q4u1kbKaj/2Zh5v7CyMpphpYi3Oh45XpL/B0wn/6pC75lo0cv/88ev8yd 0BlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700881538; x=1701486338; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=v2cuSqnvi/SCjlwUg4+09mEhsulM5HDD1xbtCjbVPcc=; b=aWPNWbA3w1RGGVjhvM8xh+zps68THK3mtX5ZAhIyi0q6Uh88rHdUJWSywjLQvaec3g R/AfLp/nu+t3x5ap9UKTvN916DIiEwvDDiOWrdQkbwWmAY1/IdjO8ziGuWujK1HNlkfv YQeNmZA/na7MnSRdcO4vxjn0EPCzGQgrviWWF5QvC3BQlSKScXYylJ1kFFc83l7zALxR B5qCsfpk4OczYAlT2JPsUs7k5nWzBn+pUGsiins7LN5gcCrabx1akFs3SurYHtqOYAK5 jf5na/wD6jpRx3HRhGOXSVieTF5hrwzWUDZ/VxxElvhFVu5HbzFpybLXbVVjx+IVpJ1g w2kA== X-Gm-Message-State: AOJu0YzfYFZrecMgwXb9nwnC7+4/ve+46nsfuHDR6bus0j+63uK7k77F JC/seIEn05ERPwSO6yFvkXWmvQ== X-Received: by 2002:a05:6808:1b1f:b0:3b6:cb6a:18b1 with SMTP id bx31-20020a0568081b1f00b003b6cb6a18b1mr5706881oib.32.1700881537965; Fri, 24 Nov 2023 19:05:37 -0800 (PST) Received: from leoy-huanghe ([98.98.115.199]) by smtp.gmail.com with ESMTPSA id q26-20020a62e11a000000b006b2677d3685sm3464906pfh.207.2023.11.24.19.05.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 19:05:37 -0800 (PST) Date: Sat, 25 Nov 2023 11:05:29 +0800 From: Leo Yan To: Michael Petlan Cc: Nick Forrington , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Arnaldo Carvalho de Melo , vmolnaro@redhat.com Subject: Re: [PATCH] perf test: Remove atomics from test_loop to avoid test failures Message-ID: <20231125030529.GB178091@leoy-huanghe> References: <20231102162225.50028-1-nick.forrington@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 24 Nov 2023 19:22:50 -0800 (PST) Hi all, On Fri, Nov 24, 2023 at 08:57:52PM +0100, Michael Petlan wrote: > On Thu, 2 Nov 2023, Nick Forrington wrote: > > The current use of atomics can lead to test failures, as tests (such as > > tests/shell/record.sh) search for samples with "test_loop" as the > > top-most stack frame, but find frames related to the atomic operation > > (e.g. __aarch64_ldadd4_relax). I am confused by above description. As I went through the script record.sh, which is the only test invoking the program 'test_loop', but I don't find any test is related with stack frame. Do I miss anything? I went through record.sh but no clue why the failure is caused by stack frame. All the testings use command: if ! perf report -i "${perfdata}" -q | grep -q "${testsym}" ... fi @Nick, could you narrow down which specific test case causing the failure. [...] > I believe that it was there to prevent the compiler to optimize the loop > out or some reason like that. Hopefully, it will work even without that > on all architectures with all compilers that are used for building perf... Agreed. As said above, I'd like to step back a bit for making clear what's the exactly failure caused by the program. Thanks, Leo