From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795994474; b=QMHYyJx0m5++whUT1cqTVeL6n8k+ghJodzs+4uIWR9aHNaLjcbcWSY11TiqXREaVG/OS TkodarleJ+6LeusA6nNRCzvWA+D+lnH6DlaZwU2UuSPCf/zoSuWCyZR7FRFSWFJhfjrA7 7NDCt/4FbeEF3ulFeIFj+53c6AJjQhSPpZMwIDTkhrfdnmYpvRCZILT3UTeQiqNInzmVr S/fmZyfw0iFOMCeSNjbIbhbMH31ZK8aY8JEU5wHMuEJfB66jH9XywTmI8em9PcGELqf2k vJT8OOZ7Rqi9sHdnp5EJ1xPyjGymNv4iUKWsFPXN6v2n/CfWMd6brvy2Gq1Sc7J6bLg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795994474; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=CkDLpnFBWIInviwv+reBFgYIt49Gvl5s1F+vXrxkmWE=; b=oYI3nnTGdYy8yQ5OMwYHAENMV+DGocqHYg/Mr6PnG89BKi4HMXps1ViklOWB4C8yP27/ tGi3WZUKpA8wmgejsPmxM9dy/6YsWxlA8SYjNgARSeEeZAyie1law0mix0WB4IlJv91nH Uw0G7iYKqqk2p8JKQCN26NvODEu8JvK/W7tl5cjMx83jTTuhdkfkSzwFauMt23Dvr/k2m MWKAwGnNxbz2Q/XoPxadzK6/iSAS41iAqtkmM+bIm/JIvNqx0X69tv+fC0qYCieTfcKqj YyZd+LBDG9gh6eOkw+M0FH/gRjguwwKKZnbSus6fW2DtnPvoXEpgy6I9/Ikrf9PCChQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Sh7xAtcA; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (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 55E01606A31C for ; Sun, 29 Nov 2026 23:21:14 +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: 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: linux-perf-users@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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