From mboxrd@z Thu Jan 1 00:00:00 1970 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 EF8186FE16 for ; Fri, 24 May 2024 20:26:22 +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=1716582383; cv=none; b=NfAuTRXXHlZ02LawqeXwnFi4zw9LWkhveVdSXOxS0kLb86FtgnapjFlxVU/WWo7Wt0FrNH8bAYyd8eixb/FeTTKl6kB72GcInj+z1H0orMY9asmORM92tDD8q8clruXXAWIphjKRfK4T9Dnke6QK6znG+YbOC2V0/VFYLT5uBww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716582383; c=relaxed/simple; bh=/cYSbIRhqSPCaRmkkxe7lAeHsTUlBWrmXL1MAbwmHTY=; h=Date:To:From:Subject:Message-Id; b=sHf3DYil8FR7mCHjRJcLlQ6rboYMckSfxlIzJ2nLAsdG/TtEFgi00OVg2u8Hhwtw5VOawWD3Yndkg415Nsg1l/zGFuGzOtCm6mtgpxe6V6QPvXNQpm4zc2HB7pGs3dy3eQoNIALfp1r0VaGF1X2nbw3MScmbjjk/QrfNBXlmbzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=HObogKAw; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="HObogKAw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F702C2BBFC; Fri, 24 May 2024 20:26:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1716582382; bh=/cYSbIRhqSPCaRmkkxe7lAeHsTUlBWrmXL1MAbwmHTY=; h=Date:To:From:Subject:From; b=HObogKAwWYlu01jlTo2KXvP7wBVjOMRggSKfF0RKO85DayJbuR8A6MHfz3q0D6R5s 8dmQx1W3T7OLBn2f7yb250CCvG42M7flPUg8enc3KHdwIHU4DG9wIonyfypLcKJvsH DXacwmWPdZ9wU2CPvtOAkc+HMGg51pyEYk4oyC3E= Date: Fri, 24 May 2024 13:26:21 -0700 To: mm-commits@vger.kernel.org,quic_eberman@quicinc.com,quic_bjorande@quicinc.com,cmllamas@google.com,xndchn@gmail.com,akpm@linux-foundation.org From: Andrew Morton Subject: + scripts-decode_stacktracesh-wrap-nm-with-util_prefix-and-util_suffix.patch added to mm-nonmm-unstable branch Message-Id: <20240524202622.6F702C2BBFC@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: scripts/decode_stacktrace.sh: wrap nm with UTIL_PREFIX and UTIL_SUFFIX has been added to the -mm mm-nonmm-unstable branch. Its filename is scripts-decode_stacktracesh-wrap-nm-with-util_prefix-and-util_suffix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/scripts-decode_stacktracesh-wrap-nm-with-util_prefix-and-util_suffix.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Xiong Nandi Subject: scripts/decode_stacktrace.sh: wrap nm with UTIL_PREFIX and UTIL_SUFFIX Date: Fri, 24 May 2024 12:25:59 +0800 Patch series "scripts/decode_stacktrace.sh: better support to ARM32". This patch (of 2): Since System.map is generated by cross-compile nm tool, we should use it here too. Otherwise host nm may not recognize ARM Thumb-2 instruction address well. Link: https://lkml.kernel.org/r/20240524042600.14738-1-xndchn@gmail.com Link: https://lkml.kernel.org/r/20240524042600.14738-2-xndchn@gmail.com Signed-off-by: Xiong Nandi Reviewed-by: Elliot Berman Cc: Bjorn Andersson Cc: Carlos Llamas Signed-off-by: Andrew Morton --- scripts/decode_stacktrace.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/scripts/decode_stacktrace.sh~scripts-decode_stacktracesh-wrap-nm-with-util_prefix-and-util_suffix +++ a/scripts/decode_stacktrace.sh @@ -30,6 +30,7 @@ fi READELF=${UTIL_PREFIX}readelf${UTIL_SUFFIX} ADDR2LINE=${UTIL_PREFIX}addr2line${UTIL_SUFFIX} +NM=${UTIL_PREFIX}nm${UTIL_SUFFIX} if [[ $1 == "-r" ]] ; then vmlinux="" @@ -158,7 +159,7 @@ parse_symbol() { if [[ $aarray_support == true && "${cache[$module,$name]+isset}" == "isset" ]]; then local base_addr=${cache[$module,$name]} else - local base_addr=$(nm "$objfile" 2>/dev/null | awk '$3 == "'$name'" && ($2 == "t" || $2 == "T") {print $1; exit}') + local base_addr=$(${NM} "$objfile" 2>/dev/null | awk '$3 == "'$name'" && ($2 == "t" || $2 == "T") {print $1; exit}') if [[ $base_addr == "" ]] ; then # address not found return _ Patches currently in -mm which might be from xndchn@gmail.com are scripts-decode_stacktracesh-wrap-nm-with-util_prefix-and-util_suffix.patch scripts-decode_stacktracesh-better-support-to-arm32-module-stack-trace.patch