From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D4F9606A683 for ; Sun, 29 Nov 2026 23:21:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Sh7xAtcA Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4jd37M3KxXz2y8F; Mon, 30 Nov 2026 10:21:19 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=172.105.4.254 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1795994479; cv=none; b=ZdXgfskbYMSDcm2aZqM3G1OqCgFmocHMkjZPsHp+JM9RIhaQQVVXwz+6IL+AYsMaLPX+ZSHvGPzgF7/23d2RG9GXfwRTauYZn2TzNjKxrV9fPMpGoQP3ityAnADnv67F7ASSOo4mBuQZaEgr/WtqEJmjniMUdQCPUKUedzSxV60h+EAc63/9htt5Q6l+5moH3iNJDEopjvgIbAgmP2hUMqGIHue14B/gAP7Rv407Wi0E1xTP8N3lHLg/CYqPu6Mua3jdZKKEuKqNXNHD5WR7IQqyZe75f1Nw+hBhcWrWw9WwZjApono8rQZCH4ec9bsVSNc1leyx+JajGJmwNZekWQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1795994479; c=relaxed/relaxed; bh=CkDLpnFBWIInviwv+reBFgYIt49Gvl5s1F+vXrxkmWE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ik5NfhR8bjwe4nVZ4mEWTKxWzQInI3GjyZF1Kob5ZCAXnwUy6lyR7uW++sxZUiEoktvGUNAXcvFEj3lunALkl83/gVF5mBYkCzwsHmWukC+XljtEeoc84I+sYUELo1d4sCIAnyNUl9RQ11IDsbqQS0GuEr2ZU964D9SzCWuFLlZjfLypKM4P1gf9IEdjDV6pbYygByMIFdgu0CfgKb/Mhu5ZXGO+mUA3PrxLt3NnQClQ+zJA6a/KuFhQeB+LeAL/Me0OC/qXP71YoCPZYcahRYaZZ9ufyvSE7crOI7C74jz04Nj69ArOYpBsnG4KOwNh7VeXnAvfRcooRRtNZrjqTQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Sh7xAtcA; dkim-atps=neutral; spf=pass (client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=namhyung@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Sh7xAtcA; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=namhyung@kernel.org; receiver=lists.ozlabs.org) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4jd37L2vBYz2xLq for ; Mon, 30 Nov 2026 10:21:18 +1100 (AEDT) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 67F7C61200; Sun, 29 Nov 2026 23:21:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 433371F00897; Sun, 29 Nov 2026 23:21:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795994473; bh=CkDLpnFBWIInviwv+reBFgYIt49Gvl5s1F+vXrxkmWE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Sh7xAtcAIvseDx1eEWdx4mBavKDeGrQQOOboYMpxfqaY0u6jy4knNg7QbYbwWys0i t2Kwr8Ds4XVrYCqUjFfE1/z3bpxy60BJFmBQq4kRoSKWYmNiBwRbBZwAPc5H4WMtCE kpeoPjGQy4I3YZRHwyH2U2Wqu2k1BzqcaXN5mrkbORIC+T0xknMznHtQjUkrCiXLWy QJkCEftAtaoDiSxso3t4s3TE19k/V4CYx9Sh0f41BWT2S4w6OHxhmytJt0OgmZBdxJ Qnbve+6juwPR+ApIxKC4gzmSZcFt/ZI8O9uCWXZBmiXCcLBgUNaZzXzbBOLjMZjAyo nrYHhgaGa8yQA== Date: Sun, 29 Nov 2026 15:21:09 -0800 From: Namhyung Kim To: Bradley Morgan Cc: atrajeev@linux.ibm.com, acme@kernel.org, adrian.hunter@intel.com, hbathini@linux.vnet.ibm.com, irogers@google.com, jolsa@kernel.org, linux-perf-users@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, maddy@linux.ibm.com, narnalli@in.ibm.com, tejas05@linux.ibm.com, tshah@linux.ibm.com, venkat88@linux.ibm.com, vpuliyal@in.ibm.com Subject: Re: [PATCH] perf disasm powerpc: handle Power10 prefixed instruction continuation lines Message-ID: References: <20260907051429.29080-1-atrajeev@linux.ibm.com> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , Precedence: list X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Sat, Nov 28, 2026 at 12:42:52PM +0000, Bradley Morgan wrote: > On 7 September 2026 06:14:29 BST, Athira Rajeev > wrote: > >Power10 introduces prefixed instructions that are 8 bytes wide. objdump > >emits these as two lines: the first carries both the raw bytes and the > >mnemonic, while the second carries only the raw bytes of the second word > >with no mnemonic: > > > > 1020900c: 0b 00 10 06 pla r31,757280 # 102c1e2c > > 10209010: 20 8e e0 3b > > > >disasm_line__parse_powerpc() calls disasm_line__parse() on the mnemonic > >portion of the line. disasm_line__parse() returns -1 when the name > >string is empty, which causes disasm_line__new() to return NULL, which > >causes symbol__parse_objdump_line() to return -1, which immediately > >breaks the objdump output parsing loop in symbol__disassemble_objdump(). > > > >The result is that annotation of any function containing a prefixed > >instruction stops at the continuation word and all subsequent > >instructions in the function are lost. > > > >Fix this by treating an empty mnemonic as a valid case in > >disasm_line__parse_powerpc(): skip the call to disasm_line__parse() and > >set the instruction name to an empty heap-allocated string instead, > >allowing parsing to continue to the next line. > > > >Reported-by: Narendra Nalli > >Reported-by: Vijay Puliyala > > yes, thanks > > Reviewed-by: Bradley Morgan > > > Tested-by: Bradley Morgan # Power10 Thanks! Athira, I assume we would send v2 with the new tags as well as fixes for issues found by Sashiko. Thanks, Namhyung