From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) (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 D14A9484225 for ; Fri, 25 Sep 2026 09:28:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790328491; cv=none; b=et6oXACOkhfWykiT2oWhgC1VDovY0meyueXRR0unndryrQyLrpSeS2ZT1S7OFyrzycCgKfbTGtLf3jRGYQzqiJy/SnNIrXBHS4nD9JHdUo/qrSatNW3Sqfue6YU8AI+0EtBwxM5xWMbt3bIF+myGCdKAqBZsO6V83oCBCC17ASk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790328491; c=relaxed/simple; bh=RyhPOU+vvqd3rl1UlRjckMuKAfbjLaCIW52sS+yfk0s=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=C9M20SbBSS94f+OwHHz1HMUPEQqEOoRuGV7V3WZl69e6qyDJLVOpa5dECu7SRwRTVUC9mNKxVg4+1u3CV+z8nybw/lQwhkjaHHi3rfLaqVkZfOxx2XtGINLO9S00WtGRr556b/k/uOQG3C7C/wUjaQPxpQQFP0m5Ag9adYpm2V8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=YCaa5B8/; arc=none smtp.client-ip=74.125.225.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="YCaa5B8/" Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49ccead2aecso3032685e9.0 for ; Fri, 25 Sep 2026 02:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1790328488; x=1790933288; darn=vger.kernel.org; h=content-transfer-encoding:content-type: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 :content-type; bh=GuAasn6M17RraKJz85D0VGepUYYLmKKd6LjzFHjVWiA=; b=YCaa5B8/bbraaj9MXbfcKga+R1L3Oy53Dlm+QLJ9PluOw2HJuSZ4RD0OUgpEKjEDys 1iIjGIzlaLXJl+fJzhD4jsJKpX5ftjb/LWFjKjNSvN0uwzojBFSmYZYw1vDOyCInGbUe d5kHIKVqyg3wLnQ6C0VSNz7g/+iaP/c5K3E5bSPY0TEFeHNVg4IhHe4Q2p8E6MzsC8dT n8na7+M39OVdS6Nak1AG1EpnfI6rPQBVhwmwML6M8v349eGyR3HHS2N8OshqSNp6V+WE IUEAemD4YTNyORvF5Su0LA+6HBShR5Rw8n06UjjwBYuJSJyZ6FP2VmqYggRcG9WSYKNN nCKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790328488; x=1790933288; h=content-transfer-encoding:content-type: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:content-type; bh=GuAasn6M17RraKJz85D0VGepUYYLmKKd6LjzFHjVWiA=; b=xMtrjmdRX/Gb7JYX6UG9qziNiX9yV8YnqxTdJ93MAmQQhLeMIArgkU4E6ZzBYJpML8 Ut+Zo2f4Ki+seX3miPEdrcn1U6cw5SN+MTOKKt7ABOuWwZQ8a6pb1FvxE7iw6U7ZgujC 4osNggTEQW9Jv7LTAHFr8WRccJznn6JzVB3hqd9l1b8lP9hXfg7U9havBnHxTiCl0Alf TIM9/1jzwg0zjvAGRalukNUFoNZhzqMlI30xsVMQGGy3c3nf7k+dkmXbPvnqIa8qdVFG g7YUqFx0Y7cwgq8glQYtrtgv3YUsHYV8OUVFOMrqGyAS3f++tgMjVpdmooroJLLAkUeo ROvw== X-Forwarded-Encrypted: i=1; AKwUvBzNhFtByFLjjVqhQlfjjQz4lSU+BKR2A2N+GScS//ujnHjZgi9n9Qs1xdiUTPmaHRB1STWMLHCQuw==@vger.kernel.org X-Gm-Message-State: AFuF++lKzrsOQsrwGAQDD/WthoPcQAKJvML/9BIJA61+5azR2Soz1uS5 NMDXuFKkU2qgunYnme0lqUpDYLbm53/HWTGWyphA1rMHq5ouqn3RGYLTWtxtecoA94Q= X-Gm-Gg: AYBFou0J9wLENdANmhKAaIXBydkx/mTBbX4JwpZ+5RbilfeU6qdnpGfzmbHDqSzz1ZW t4hm9jYVmwyYIS9N4QHyQ1uPpEZRXw371ZSdGZ871IUjV19o2/U7ZpIxifMvs58Zp4jDtfA9Kh4 PkwBN+ccWJ4WCDbK3vn9Lw0+2hFF4A7rMGV4FDd3Vo9RXosGAo9xkky9DB/aLVHEnRGvxu5dBvg JnlOWsigR0d9qEj07MoCu/PRX81bJHWoICkmJj/UvAH0g8HUtcrQqDdGrTc7SCFUXuZMsseeYYl Pkwe7N9l3WV1eCgjUJTDCOP0Pc+eBXpzDmkWAmn1cGYeWcMaA3aHOPgvQxbvYK19LZTcK1pJteL oqVh/9umBlLkBxXQNuskRUq2nnbjqKBYw9RrYvoit5HgVxBAUZCu2BMgRIfivtY/27uTje3eSqf mEoXVRDuaCzC1AGH7aLK4XC5MPIl2vCs0LXFd9331qFHtfdpewHmOK1dSKc4GOeaRSMBPTC5rGc ttuiuvf62wgsdoCMRsDmYMIIdYtswOl7zl2WhNfaKwJ3Q== X-Received: by 2002:a05:600c:19cd:b0:49d:2536:402e with SMTP id 5b1f17b1804b1-49ff06f7a45mr28683465e9.30.1790328488006; Fri, 25 Sep 2026 02:28:08 -0700 (PDT) Received: from ?IPV6:2a07:de40:8100:0:89a9:fd0e:583d:4a53? ([2001:af0:8000:1409:193:86:92:181]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49fee6ced69sm37140085e9.0.2026.09.25.02.28.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Sep 2026 02:28:07 -0700 (PDT) Message-ID: Date: Fri, 25 Sep 2026 11:28:06 +0200 Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v11 20/38] dyndbg,module: make proper substructs in _ddebug_info To: Jim Cromie Cc: Jason Baron , Shuah Khan , Andrew Morton , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Arnd Bergmann , Luis Chamberlain , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , Jonathan Corbet , Greg Kroah-Hartman , Nathan Chancellor , Nicolas Schier , Shuah Khan , Randy Dunlap , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Jonathan Corbet , Petr Mladek , Steven Rostedt , John Ogness , Sergey Senozhatsky , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arch@vger.kernel.org, linux-modules@vger.kernel.org, linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-pm@vger.kernel.org, Louis Chauvet References: <20260923-dd-cmap-part2-clean-v11-0-9b6c217fdf2f@gmail.com> <20260923-dd-cmap-part2-clean-v11-20-9b6c217fdf2f@gmail.com> Content-Language: en-US From: Petr Pavlu In-Reply-To: <20260923-dd-cmap-part2-clean-v11-20-9b6c217fdf2f@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 9/24/26 12:34 AM, Jim Cromie wrote: > recompose struct _ddebug_info, inserting proper sub-structs. > > The struct _ddebug_info has 2 pairs of _vec, num_##_vec fields, for > descs and classes respectively. for_subvec() makes walking these > vectors less cumbersome, now lets move those field pairs into their > own "vec" structs: _ddebug_descs & _ddebug_class_maps, and re-compose > struct _ddebug_info to contain them cleanly. This also lets us get > rid of for_subvec()'s num_##_vec paste-up. > > Also recompose struct ddebug_table to contain a _ddebug_info. This > reinforces _ddebug_info's use as a cursor into relevant data for a > builtin module, and access to the full _ddebug state for modules. > > NOTES: > > rename section:__dyndbg_classes to _class_maps, to better align with > struct _ddebug_class_maps. > > names together, for more obvious name pairing. > > Invariant: These vectors ref a contiguous subrange of __section memory > in builtin/DATA or in loadable modules via mod->dyndbg_info; with > guaranteed life-time for us. > > struct module contains a _ddebug_info field and module/main.c sets it > up, so that gets adjusted rather obviously. > > Signed-off-by: Jim Cromie > Reviewed-by: Louis Chauvet > --- > v8: set maps.len = nc unconditionally > v3: squash in section name changes. > > v2: > > Move RvB after SoB > In structs _ddebug_descs & _ddebug_class_maps, change int length to unsigned int > No use of <0 vals is contemplated. > > dyndbg: improve section names > > change __dyndbg to __dyndbg_descs > change __dyndbg_classes to __dyndbg_class_maps > > this sets up for adding __dyndbg_class_users > > fixup-drmprint > --- > include/asm-generic/dyndbg.lds.h | 14 +++--- > include/linux/dynamic_debug.h | 34 ++++++++----- > kernel/module/main.c | 12 ++--- > lib/dynamic_debug.c | 101 +++++++++++++++++++-------------------- > 4 files changed, 86 insertions(+), 75 deletions(-) Acked-by: Petr Pavlu # modules -- Petr