From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBCEF3A0EA5 for ; Thu, 19 Mar 2026 07:33:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773905642; cv=none; b=kYY4vSm7INI1we1rSP7RSYbpG7U8ME29VTV+Dy1w2dmteKNuqfedQiZv/pjm7xpxr+m7QrA3LQbhEPOL4SgOWw9yFnsPXp6q8liGnZ+dyTRSaTgiNH7Em2a7SaF9J1yLtcMIMlLmprYKfNryxFdpo1/XtM+qPNtzzuMAC9QILi8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773905642; c=relaxed/simple; bh=AhNDDZecnmD2xFm+TNWATlQbxsUvN8KlFepA01COIwI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=j251cJEAbPnRRIdctZSplN8NkcEIplWdlxmDwL2qkg9yMrHWWFt5jqZgIw5pktRPoRO+kAT3NrkhsuEYC4eJeWcIpKR8dryFEnnBzKs/MNkihrd9N+GOcmB0me7GeXGcPycoWLADsvMSn1UmcGMvTFEeWCCNvKnuqQviPi6cK1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=IvOkIInU; arc=none smtp.client-ip=209.85.221.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IvOkIInU" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-439b94a19fdso486531f8f.0 for ; Thu, 19 Mar 2026 00:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773905637; x=1774510437; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=mfnoZII81lwHDQG+q8k3CqLmv9bwI5/ooG/r2BOJypo=; b=IvOkIInU/YzZLqaHZgSxaRamre1CKdkvdI70PFUfeH49IfziLVMMlBx8JBwXExRU+I gVRhh17h9JfspgTMMC/rrvpb6csmLx8UMmMITDH5bpFdSylsCAMhN1Lb8AzT8GzNRKmr N+tZrhu9OWY5JmnPNsVUJjwjoIu07UIG/l/+kGr0XiojwstpSLa9eE3RBkwl3qeFJmxu t0lzdAmp1R867dvF3FnUE6WLp2dQXwUnWLam6WCwjp8wJ6DKtsj1brcR/9puwlQMk37V sffUCzBXmHbcM6FgB8e0rvmV9AhfAia6M6odtwKzHbGlQfiiTnQpney5fyj3ZKr3Mj/L UTCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773905637; x=1774510437; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mfnoZII81lwHDQG+q8k3CqLmv9bwI5/ooG/r2BOJypo=; b=iUdYqjMgDMI3r4ULQWkDEADVaBmsL1Q1mEobm/kT7OpXP4Q/kcalKM+Gy2/k7Q/iJN jRgLyX0U+Xs+PpApeNxDv6BVr4aAlKZuNevGA93plt7G/1h4/Ci1Yvzq3QDt3p8SVyZV Z+UBd0dOakN//1ACtVCIrwSjDWHD5/mXuqxZD8KWCh6RkNYG0Nhj/MlgUhkbebYmUOop qO0yB+TI7dy1uBawknrDihvtcwFoVbxEQeGqw/i/YcLjJ5aW/Qabx9ItQGRond23prC3 I6igFnLkwiJ+kjQ7viNvqO9IWywMhgV0KWD7JxZPBsxFcp+m8Lvx8SwMEAJtPMk1BYf4 OPfw== X-Forwarded-Encrypted: i=1; AJvYcCX2tzw+DCsymXPTLG29riMcTp/qC+Wuf5yglr1oarnVBdzA9xtFUZcqGQIpT8d4/nnZToeHmwPAlKW+@vger.kernel.org X-Gm-Message-State: AOJu0Yz/bo9FK4qvj6uWE/mDFLfpdkEAHVIEpIw8EhPnO+8LV2CZRR2J 4h8SKTY1jlmGxVWS6fuukmtPo6XN9vXxqOmL+TEc2ZAK5DJ+kTjUsYofJqJE1ovXCck= X-Gm-Gg: ATEYQzzvvCmUEezee/2j9uaBbcZfEWJq43fZzzFc6QcqjW9GFpxKlP9JfNrpcxDQxm2 ZN8rADha4/ffDO8ZcfxF1OTal/r8RzSdZ3gJy7oKofARs1mLeaJAkNmHSfAHXXnZKktICsDiooH Z9bpcGMJ8godLQmyGqsaicxXwNR9gOGzJHAq9NVGM++aaFdN3TgZyii3EZBRi+JNr3vIvLXtMVj nYTfpEtriM+eKE//57yr11WPulPMPLgwbwlhprRxYJm8R0xSq4F8fgNSZ5U/8PRAV0MXWKXBmf1 LSBHpEFsw/9tuU9ayAbwn23RNRbidEcdu3N/1c9yqDfqhAdsMGEOI3suI2C20MV4Ov42rszRozy g3cecjbIUqaXVZjODYQBD3mSnLQYMBahuFNnbjwNE6izsp02e5W+B177yVwROZoH64Z3Dcru3aI w8/WBXqsB00q08b3OKdNaDlX5MxX1hxys= X-Received: by 2002:a05:6000:25c6:b0:43b:4ae5:d7c8 with SMTP id ffacd0b85a97d-43b527a50cfmr10368836f8f.2.1773905636943; Thu, 19 Mar 2026 00:33:56 -0700 (PDT) Received: from [192.168.0.34] ([82.76.24.202]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43b51899622sm15875212f8f.28.2026.03.19.00.33.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Mar 2026 00:33:56 -0700 (PDT) Message-ID: <46c47101-2672-4970-a212-71e2c8555d80@linaro.org> Date: Thu, 19 Mar 2026 09:33:52 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 00/25] Introduce meminspect To: Bjorn Andersson , Mukesh Ojha Cc: Jonathan Corbet , Shuah Khan , Arnd Bergmann , Dennis Zhou , Tejun Heo , Christoph Lameter , Andrew Morton , Thomas Gleixner , Peter Zijlstra , Anna-Maria Behnsen , Frederic Weisbecker , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Kees Cook , Brendan Jackman , Johannes Weiner , Zi Yan , Chris Li , Kairui Song , Kemeng Shi , Nhat Pham , Baoquan He , Barry Song , Youngjun Park , Petr Mladek , John Ogness , Sergey Senozhatsky , Mathieu Poirier , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Saravana Kannan , workflows@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org References: <20260311-minidump-v2-v2-0-f91cedc6f99e@oss.qualcomm.com> <20260316181647.m7x4ncmwdjho6yvr@hu-mojha-hyd.qualcomm.com> Content-Language: en-US From: Eugen Hristev In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 3/19/26 04:55, Bjorn Andersson wrote: > On Mon, Mar 16, 2026 at 11:46:47PM +0530, Mukesh Ojha wrote: >> On Sun, Mar 15, 2026 at 09:24:39PM -0500, Bjorn Andersson wrote: >>> On Wed, Mar 11, 2026 at 01:45:44AM +0530, Mukesh Ojha wrote: > [..] >>>> , to get all the regions as >>>> separate files. The tool from the host computer will list the regions >>>> in the order they were downloaded. >>>> >>>> Once you have all the files simply use `cat` to put them all together, >>>> in the order of the indexes. For my kernel config and setup, here is my >>>> cat command : (you can use a script or something, I haven't done that so >>>> far): >>> >>> So these need to be sorted in numerical order, by that number at the end >>> of the file name? >>> >>> Do you manually punch these in? How do we make this user friendly? >> >> Yes, manually.. but I think we can do better. We could make >> this more user‑friendly by using the section header and string table in >> the md_KELF binary both of which existed in the earlier implementation. >> Then, we can write an upstream‑friendly script that reads this KELF >> metadata file, checks whether a binary with the registered name is >> present, and stitches everything together to form a complete ELF that >> the crash tool can consume. Let me know if you have any suggestion.. >> > > Can we somehow identify that these regions belong to the minidump and > teach QDL to build the ELF for us? We could integrate the feature that Mukesh suggests directly into QDL as a separate command e.g. qdl download-and-build-minidump The first region (the ELF header) is mandatory, because all the regions themselves contain only data. To be able to use any of the regions, one needs to know at least the physical and virtual address of that memory. And this information is saved in the ELF header. So QDL could join together all the regions into a single crashdump-like file. > > Regards, > Bjorn