From: jim.cromie@gmail.com
To: "Valdis Klētnieks" <valdis.kletnieks@vt.edu>
Cc: kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: Re: '-D' 'KBUILD_MODSYM=main - like KBUILD_MODNAME, without the quotes ?
Date: Fri, 29 Jan 2021 02:07:17 -0700 [thread overview]
Message-ID: <CAJfuBxyL_CwuC-F8nikKmpdTxBkNd1AH9g9t+mJHX=4SEmBnSQ@mail.gmail.com> (raw)
In-Reply-To: <CAJfuBxzvJwnaMxk7WLdT=WNVJ+w=58ne8CHiofKh8zYtndOKgA@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 5141 bytes --]
... and somethings not right. debugger KBUILD_SYM shows it:
these records are same as those shown in early boot output pasted previously
these records look right
(gdb) p *__start___dyndbg_sites@10
$2 = {{modname = 0xffffffff825a8ab9 "head64",
filename = 0xffffffff825a8ac0 "include/linux/dynamic_debug.h",
function = 0xffffffff825a8ab9 "head64"}, {modname = 0xffffffff825a8ade
"ebda",
filename = 0xffffffff825a8ac0 "include/linux/dynamic_debug.h", function
= 0xffffffff825a8ade "ebda"}, {
modname = 0xffffffff825a8ae3 "platform_quirks",
filename = 0xffffffff825a8ac0 "include/linux/dynamic_debug.h",
function = 0xffffffff825a8ae3 "platform_quirks"}, {modname =
0xffffffff825cac42 "main",
filename = 0xffffffff825a8afe "init/main.c",
function = 0xffffffff822000e0 <__func__.2> "run_init_process"},
{modname = 0xffffffff825cac42 "main",
filename = 0xffffffff825a8afe "init/main.c",
function = 0xffffffff822000e0 <__func__.2> "run_init_process"},
{modname = 0xffffffff825cac42 "main",
filename = 0xffffffff825a8afe "init/main.c",
function = 0xffffffff822000e0 <__func__.2> "run_init_process"},
{modname = 0xffffffff825cac42 "main",
filename = 0xffffffff825a8afe "init/main.c",
function = 0xffffffff822000e0 <__func__.2> "run_init_process"},
{modname = 0xffffffff825cac42 "main",
filename = 0xffffffff825a8afe "init/main.c",
function = 0xffffffff822000a0 <__func__.0> "initcall_blacklisted"}, {
modname = 0xffffffff825cac42 "main", filename = 0xffffffff825a8afe
"init/main.c",
function = 0xffffffff822000c0 <__func__.1> "initcall_blacklist"}, {
modname = 0xffffffff825cac42 "main", filename = 0xffffffff825a8ac0
"include/linux/dynamic_debug.h",
function = 0xffffffff825cac42 "main"}}
Theres evidently something wrong with my KBUILD_MODSYM _dyndbg_site here,
the site pointers in all the headers appear the same,
but maybe its just an effect of initialization,
which I expect to reshape with a union - struct to use the space efficiently
(gdb) p *__start___dyndbg@10
$3 = {{site = 0xffffffff82b252e8 <KBUILD_MODSYM_dyndbg_site>, format =
0xffffffff825a8ab9 "head64",
lineno = 0, flags = 0, module_index = 0, key = {dd_key_true = {key =
{enabled = {counter = 0}, {
type = 0, entries = 0x0 <fixed_percpu_data>, next = 0x0
<fixed_percpu_data>}}},
dd_key_false = {key = {enabled = {counter = 0}, {type = 0, entries =
0x0 <fixed_percpu_data>,
next = 0x0 <fixed_percpu_data>}}}}}, {site = 0xffffffff82b252e8
<KBUILD_MODSYM_dyndbg_site>,
format = 0xffffffff825a8ade "ebda", lineno = 0, flags = 0, module_index
= 0, key = {dd_key_true = {
key = {enabled = {counter = 0}, {type = 0, entries = 0x0
<fixed_percpu_data>,
next = 0x0 <fixed_percpu_data>}}}, dd_key_false = {key =
{enabled = {counter = 0}, {type = 0,
entries = 0x0 <fixed_percpu_data>, next = 0x0
<fixed_percpu_data>}}}}}, {
site = 0xffffffff82b252e8 <KBUILD_MODSYM_dyndbg_site>, format =
0xffffffff825a8ae3 "platform_quirks",
lineno = 0, flags = 0, module_index = 0, key = {dd_key_true = {key =
{enabled = {counter = 0}, {
type = 0, entries = 0x0 <fixed_percpu_data>, next = 0x0
<fixed_percpu_data>}}},
dd_key_false = {key = {enabled = {counter = 0}, {type = 0, entries =
0x0 <fixed_percpu_data>,
next = 0x0 <fixed_percpu_data>}}}}}, {
site = 0xffffffff82b25330 <__UNIQUE_ID_ddebug468_site.13>, format =
0xffffffff82653f07 " %s\n",
lineno = 1349, flags = 1, module_index = 0, key = {dd_key_true = {key =
{enabled = {counter = 1}, {
type = 18446744071602861249, entries = 0xffffffff826e74c1, next
= 0xffffffff826e74c1}}},
dd_key_false = {key = {enabled = {counter = 1}, {type =
18446744071602861249,
entries = 0xffffffff826e74c1, next = 0xffffffff826e74c1}}}}}, {
site = 0xffffffff82b25348 <__UNIQUE_ID_ddebug467_site.15>,
format = 0xffffffff825a8b59 " with environment:\n", lineno = 1347,
flags = 1, module_index = 0,
key = {dd_key_true = {key = {enabled = {counter = 1}, {type =
18446744071602861265,
entries = 0xffffffff826e74d1, next = 0xffffffff826e74d1}}},
dd_key_false = {key = {enabled = {
counter = 1}, {type = 18446744071602861265, entries =
0xffffffff826e74d1,
next = 0xffffffff826e74d1}}}}}, {site = 0xffffffff82b25360
<__UNIQUE_ID_ddebug466_site.17>,
format = 0xffffffff82653f07 " %s\n", lineno = 1346, flags = 1,
module_index = 0, key = {
dd_key_true = {key = {enabled = {counter = 1}, {type =
18446744071602861281,
entries = 0xffffffff826e74e1, next = 0xffffffff826e74e1}}},
dd_key_false = {key = {enabled = {
counter = 1}, {type = 18446744071602861281, entries =
0xffffffff826e74e1,
next = 0xffffffff826e74e1}}}}}, {site = 0xffffffff82b25378
<__UNIQUE_ID_ddebug465_site.19>,
format = 0xffffffff825a8b46 " with arguments:\n", lineno = 1344, flags
= 1, module_index = 0, key = {
dd_key_true = {key = {enabled = {counter = 1}, {type =
18446744071602861297,
at any rate, I'll probly work this a bit, see if I can resolve a few
problems
[-- Attachment #1.2: Type: text/html, Size: 6320 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
prev parent reply other threads:[~2021-01-29 9:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-28 19:11 '-D' 'KBUILD_MODSYM=main - like KBUILD_MODNAME, without the quotes ? jim.cromie
2021-01-28 23:57 ` Valdis Klētnieks
2021-01-29 0:16 ` jim.cromie
2021-01-29 2:04 ` Valdis Klētnieks
2021-01-29 8:32 ` jim.cromie
2021-01-29 9:07 ` jim.cromie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJfuBxyL_CwuC-F8nikKmpdTxBkNd1AH9g9t+mJHX=4SEmBnSQ@mail.gmail.com' \
--to=jim.cromie@gmail.com \
--cc=kernelnewbies@kernelnewbies.org \
--cc=valdis.kletnieks@vt.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).