From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 BBE6C3A0EB8 for ; Thu, 19 Mar 2026 07:33:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773905642; cv=none; b=VL6AYKwO9SbWGEcl1nIpMNwrVzVVsSL+cvjBIKEX7+AYbjvvftJ+mvLf8uijDpuRrWuTHXEceu2VLwlaqnfg/81OSy5hlWb9DBs5Iy8WbzcGpj+pFdXtcQqRSuKPfVsl2RNGqZqu4NJrDHqGQzW3nU8irwoZU+svFwM119WtGoQ= 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.54 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-f54.google.com with SMTP id ffacd0b85a97d-439fe4985efso441608f8f.3 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=EtrqeT4t4NLrRuR6F/IKrrVODv1j+KpsuOFzJX2l9K/hMojZszTYMwerVTHChqNfI5 wYjchH/K9kt20+nk5JfCFq/rVkfR9z95/pwZSyRyMT2rCXN9UuYDQcFI067IVu0RydFz p/WfNZ/k7K+RVFQvEbaOScCOisP7BnBQ3bIZInex6eLKEWRySpYmioJnNMxdiYTaukGi 4U4idx+9CDjKHmsqlhXrZkVgDaQRn7BksXc5dfH3HyJd11/5wMHswJ/tOc20/Wx7nad0 CUPg8DyCzNN3Ud6G1UamD34yYzk1PVEjf9ghtVURUneRZi+65IEY/b6bNTD1YscYj3sr a/jQ== X-Forwarded-Encrypted: i=1; AJvYcCVJF+Rq8mx6Qfg91fM041HIe0wDt/R/inrI2KgqLjj3TuCBslunN/oBH+hu06LvvkDajxqqfZRNd5gDtNU=@vger.kernel.org X-Gm-Message-State: AOJu0Yxw6JdB5fWLaB3Ar8jm8DxE3trNJUJuYtYzy/o5Eh0PFXrLoa1Z jUkKhAxkeb0In6m9j5KhjIM+zTynVpcTNVTW1uUiBOU/tZoIXFJUdqLMswRTfkFwOAM= X-Gm-Gg: ATEYQzyGq0WuUXU9n96NPCNwI7RZATjQTG6AubeT4AndsVyECfzRomqSSrHdtlcrrEI bPdHfLzuyM5/Id04d+t8UWZFluo/Y3JHsIpsOeZHmvBe/KR88ezb2sPIo2VR0zJqeAKa4/MWfNx xSsTcPDtYlgMDGJ7nHSG8n4+wFJtY6+/QachTtxm2BSDjgGIONHfSMtGCfcUAYMwZF/4Xu2csim 7aPhQEkE7U60GNCZZKFrLkBIaAN/Fzft1KzslD3pYoFJk0pbTqmz9Tv/7Y1WROHhBPvUatDyhKz ODsxBo1xgq/HeYCABKzj0ImtY8+S3z05g68Mz3dAgmEAFooUV/t6cxXV0NcPvV3GUdhrdFefn+n ln1eZWVDZdeHSDCLOT1+/oCaH2f84JHeU8J3nvBxh8t7cx8XVAiu3xx2SR4GHiyZLAdYwa7rsrU 2b1AfQs5hXPFWxnURN6vXasaiiMwoKDMk= 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: linux-kernel@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