Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04EA1C433F5 for ; Fri, 29 Oct 2021 15:08:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BB66260F9C for ; Fri, 29 Oct 2021 15:08:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BB66260F9C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nEqbuQjsaBHBOKLkZfu4j1R/reU1e8Vzou2K0l7vZVs=; b=kGH9bmqqYQcTYt NHPDHEiczJlygesBc6Wu7gYPUAEPe86m9xBZHnaHBaUsMH/m/2jjd8jn/zXRgu9BNvqHwk2pRojxB D+73ktzGecp2VjRL1QhUopefVWbI12WnsHwcXjq3zIuwAR2UStGJ439HkHpTP7NqzLNqQT+izTJ0i 3/GqMMgXDaiViXY2z29S6srYk5IQaaSbEyMgk8kW9ZvAhgu4c0j0cKP/TANkn9lZFYbuedmTHKBiJ VXPKA6nODcAsNZiVvJ6rLF6BPl1tDXatCtSlxXYXOqbAZ7d4GzKh9ydDA9af+5MYSnsJ2J+w9Z6wr HA7DcJIUSPo61+Nz6+Vw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgTTD-00BI9B-Qa; Fri, 29 Oct 2021 15:07:04 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgTT8-00BI7j-CK for linux-arm-kernel@lists.infradead.org; Fri, 29 Oct 2021 15:07:01 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 261181FB; Fri, 29 Oct 2021 08:06:55 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 40D413F73D; Fri, 29 Oct 2021 08:06:54 -0700 (PDT) Date: Fri, 29 Oct 2021 16:06:52 +0100 From: Mark Rutland To: Will Deacon Cc: linux-arm-kernel@lists.infradead.org, broonie@kernel.org, catalin.marinas@arm.com, madvenka@linux.microsoft.com, rostedt@goodmis.org Subject: Re: [PATCH] arm64: ftrace: use HAVE_FUNCTION_GRAPH_RET_ADDR_PTR Message-ID: <20211029150652.GF24060@lakrids.cambridge.arm.com> References: <20211027132529.30027-1-mark.rutland@arm.com> <20211028085225.GA23581@willie-the-truck> <20211028134539.GA48435@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20211028134539.GA48435@lakrids.cambridge.arm.com> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211029_080658_529835_05415C22 X-CRM114-Status: GOOD ( 16.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Oct 28, 2021 at 02:45:42PM +0100, Mark Rutland wrote: > I had a go with the selftests and there are some latent issues which show up on > a pristine v5.15-rc4 (or v5.15-rc7), using defconfig + the ftrace selftest > config fragment, including an OOM that could be a memory leak. > Later the tests hang in: > > | [19] event tracing - enable/disable with subsystem level files > > ... and from trying: > > | # ./ftracetest -vvv test.d/event/subsystem-enable.tc > > ... it seems to hang after the usual reset, on the first part of the > test, with the last output being: > > | + . /root/ftrace/test.d/event/subsystem-enable.tc > | ++ echo 'sched:*' > | ++ yield > | ++ ping 127.0.0.1 -c 1 > | PING 127.0.0.1 (127.0.0.1): 56 data bytes > | 64 bytes from 127.0.0.1: seq=0 ttl=64 time=2.442 ms > | > | --- 127.0.0.1 ping statistics --- > | 1 packets transmitted, 1 packets received, 0% packet loss > | round-trip min/avg/max = 2.442/2.442/2.442 ms > | +++ cat trace > | +++ grep -v '^#' > | +++ awk '{ print $5 }' > | +++ sort -u > | +++ wc -l In the end, this is because my test VM has 32 vCPUs and can create a tremendous amount of trace information. So much so that userspace spends an incredibly long time parsing it and trying to sort it. If I boot a 2 vCPU VM, this passes after a couple of seconds. I have a local patch to make the test more robust to this, which I'll send out in a bit. There are some other tests that want to scan the entire trace stream though, so practically it's necessary to run those with fewer CPUs. Thanks, Mark. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel