Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2064741rbb; Tue, 27 Feb 2024 09:29:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX4221uY2RVSL8MPTz4UC7T18ufkIsDQGB8ZckXK6itRcCmEJHO7uPG928LpoNkXt8LNRsacu6IfE2ATEYxFYxS4YUmU7nUk9O+IJhVuw== X-Google-Smtp-Source: AGHT+IEdqkGDqd8EaIPkaDgDZxcpHJoWEJjZEUggp8V3hvt4SdE1j5pRi2KgHmWhiKP6kNAnr6J8 X-Received: by 2002:a17:907:1049:b0:a3e:d5ac:999d with SMTP id oy9-20020a170907104900b00a3ed5ac999dmr7210080ejb.48.1709054990155; Tue, 27 Feb 2024 09:29:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709054990; cv=pass; d=google.com; s=arc-20160816; b=iDGj99pT0f0kGGcoweUAIXKPuteqDLliTo7hjD1d42IO5z9hdCzBoIVfv2gSNIoQch ZE4vf33eCu3TbvNnBbPbYk+mj8z/Ihw/E5AiniXB4nWsZiKoFp42m1+MixFVe5RyruWs fpHQd/t1uzVLx4PVVWn+5YCC2HaLXY7WsMB10+OQSZGYoEZLrAqfxDd0B/jhIhHeR5D4 yAWNGAAsqcGIWJkuSYYj+Qxx6DHAQ3r+v5onwmc6Q0ybm6uM9C/zYFrFKeexst9paAxT vXYXklxDM02+XRcfnK60szzalH+x2BdIugJKkxyRdP0V8gCM66TsFAVdJlT/nM4PSiLZ /M9w== 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 :date:subject:cc:to:from:dkim-signature; bh=FueAd4raVJokhXZVvG82Nxdc4qNy5sagL+LwmVq7uC0=; fh=b++kGxzDloXA1zuhvKbYHW41dS18eHGeX912PMe/3qE=; b=mCuye8GLXpOC/FCjDY/zwDpvPNry0Bdqo++daTp2fNnZTPxEqU1OeJhNKv10mbnFvQ RfDZCS8ffwH8dVOhwcQTcEdjzpYFO8oBYbUY4EuIOkT3HgX6nYj1MAVF3peGOD5BPQJ6 8s439BMUvZETYZPYTy4hHiVi+BB0xk0wfvxMP4iZY3kxrssoOGPq7rwhw2rKlLeYyRAs kQROnIzZrIq3gCH5Jk6xO1UhMitL2wDmCGq9N3oY9paGzzkwgczm573ZZTyUGybKSi5A Cx8s5Uc0fDX4JQtNRulxJ2UOrAm43aqxPemYEJssqegeIXPabrkBd6pijRS+HlM1oCR8 inxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pd1nYwDE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-83716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83716-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 q5-20020a17090622c500b00a3f7f0def2dsi916431eja.512.2024.02.27.09.29.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 09:29:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83716-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=Pd1nYwDE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-83716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83716-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 C72791F21CE6 for ; Tue, 27 Feb 2024 17:29:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2D3C14A4C1; Tue, 27 Feb 2024 17:25:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Pd1nYwDE" 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 02ACC4E1BA; Tue, 27 Feb 2024 17:25:23 +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=1709054724; cv=none; b=uNQKSVFAY1lAbfaBHtBN6eZHMabbOPTJpSBGEx6YzkEVuzwo9uN9IJismYDyArbNPxph3XNVHE81hMANmzCW09lmOKv2SF8MRoR0WN09Cv58psplLkdu3EXWzQNEJXQGJbGO2mqfKVyYmHRHrYA8gsD4NxE3XOXzMVY+ZlWvrbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709054724; c=relaxed/simple; bh=xCimZPtKHjwdU7nbtwoJGxR9Q9WTWA4Hg+6aLCtN9B8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TbWA41G3O/N8UVqmSqpVTGGzciNtwSm48SWgfQjQcDPtcnHvlXVq6tPeLHz4A+6dJNbRgx0PXnsJXXqhzmCTzSexpsuAx8m2go7owFHMUCIkuXvTW1mj5HTo7pGGVApeQjYPeA59FJ5diQkfha81pCLKUpuBXKMJ4xAyRfDpbZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Pd1nYwDE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EAF3C433C7; Tue, 27 Feb 2024 17:25:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709054723; bh=xCimZPtKHjwdU7nbtwoJGxR9Q9WTWA4Hg+6aLCtN9B8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pd1nYwDEDEWlIwyOQHUKH+/9CYNkMdDZPpaK50+aehXrf6KdtuFeTmdLMzHaE+Dj9 cGcBMnnFU8nLkTSqRqrLhkQA+gy93mE8S/dXHH8i0V3RsqAOp0705TadpSyw2X5pEh Qo3G9HEJbJvvshDWaESwobRX5XoiWMckW2QdiTVcwt7uPs5bzcE9fDHlNtHV7R3Q7U b6Wvu46MOl8IJipqapk0+27lgyKPXOtoHjtkIt5/PD++cgLWfdC94/+YWnjCsWW0p7 5xOCSsg1PGp1E7+60GdpMGlkwZXeyqPnNcwgFZq1OzQYvwV5KxCTGGMGWH2bmEi3Ho g0Z27toQAmE6A== From: Namhyung Kim To: Ilkka Koskinen , Ian Rogers , James Clark Cc: Evgeny Pistun , linux-kernel@vger.kernel.org, Mark Rutland , linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo , Jiri Olsa , Adrian Hunter , Alexander Shishkin , Peter Zijlstra , Ingo Molnar Subject: Re: [PATCH v4] perf data convert: Fix segfault when converting to json when cpu_desc isn't set Date: Tue, 27 Feb 2024 09:25:20 -0800 Message-ID: <170905469226.501091.4202015641394575376.b4-ty@kernel.org> X-Mailer: git-send-email 2.44.0.rc1.240.g4c46232300-goog In-Reply-To: <20240223220458.15282-1-ilkka@os.amperecomputing.com> References: <20240223220458.15282-1-ilkka@os.amperecomputing.com> 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="utf-8" Content-Transfer-Encoding: 8bit On Fri, 23 Feb 2024 14:04:58 -0800, Ilkka Koskinen wrote: > Arm64 doesn't have Model in /proc/cpuinfo and, thus, cpu_desc doesn't get > assigned. > > Running > $ perf data convert --to-json perf.data.json > > ends up calling output_json_string() with NULL pointer, which causes a > segmentation fault. > > [...] Applied to perf-tools-next, thanks! Best regards, -- Namhyung Kim