<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/scripts/gdb, branch v4.4.265</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.4.265</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v4.4.265'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2019-12-05T14:26:37Z</updated>
<entry>
<title>scripts/gdb: fix debugging modules compiled with hot/cold partitioning</title>
<updated>2019-12-05T14:26:37Z</updated>
<author>
<name>Ilya Leoshkevich</name>
<email>iii@linux.ibm.com</email>
</author>
<published>2019-11-06T05:17:06Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=12f9404d01d4ca3bbabab334f1933004bdd93715'/>
<id>urn:sha1:12f9404d01d4ca3bbabab334f1933004bdd93715</id>
<content type='text'>
[ Upstream commit 8731acc5068eb3f422a45c760d32198175c756f8 ]

gcc's -freorder-blocks-and-partition option makes it group frequently
and infrequently used code in .text.hot and .text.unlikely sections
respectively.  At least when building modules on s390, this option is
used by default.

gdb assumes that all code is located in .text section, and that .text
section is located at module load address.  With such modules this is no
longer the case: there is code in .text.hot and .text.unlikely, and
either of them might precede .text.

Fix by explicitly telling gdb the addresses of code sections.

It might be tempting to do this for all sections, not only the ones in
the white list.  Unfortunately, gdb appears to have an issue, when
telling it about e.g. loadable .note.gnu.build-id section causes it to
think that non-loadable .note.Linux section is loaded at address 0,
which in turn causes NULL pointers to be resolved to bogus symbols.  So
keep using the white list approach for the time being.

Link: http://lkml.kernel.org/r/20191028152734.13065-1-iii@linux.ibm.com
Signed-off-by: Ilya Leoshkevich &lt;iii@linux.ibm.com&gt;
Reviewed-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Cc: Kieran Bingham &lt;kbingham@kernel.org&gt;
Cc: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Cc: Vasily Gorbik &lt;gor@linux.ibm.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>scripts/gdb: remove useless global instruction</title>
<updated>2015-07-01T02:44:58Z</updated>
<author>
<name>Thiébaud Weksteen</name>
<email>thiebaud@weksteen.fr</email>
</author>
<published>2015-06-30T21:58:24Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=15f1d827810e085496eb7ae82aa3ed2dba9901cc'/>
<id>urn:sha1:15f1d827810e085496eb7ae82aa3ed2dba9901cc</id>
<content type='text'>
Signed-off-by: Thiébaud Weksteen &lt;thiebaud@weksteen.fr&gt;
Signed-off-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/gdb: add ps command</title>
<updated>2015-07-01T02:44:58Z</updated>
<author>
<name>Thiébaud Weksteen</name>
<email>thiebaud@weksteen.fr</email>
</author>
<published>2015-06-30T21:58:21Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=a930850b628497601309513dc894ea23218a19fa'/>
<id>urn:sha1:a930850b628497601309513dc894ea23218a19fa</id>
<content type='text'>
Signed-off-by: Thiébaud Weksteen &lt;thiebaud@weksteen.fr&gt;
Signed-off-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/gdb: fix PEP8 compliance</title>
<updated>2015-07-01T02:44:58Z</updated>
<author>
<name>Thiébaud Weksteen</name>
<email>thiebaud@weksteen.fr</email>
</author>
<published>2015-06-30T21:58:18Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=6ad18b73317714e7d0fad08ee78365ecc817e923'/>
<id>urn:sha1:6ad18b73317714e7d0fad08ee78365ecc817e923</id>
<content type='text'>
Signed-off-by: Thiébaud Weksteen &lt;thiebaud@weksteen.fr&gt;
Signed-off-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/gdb: fix typo in exception name</title>
<updated>2015-07-01T02:44:58Z</updated>
<author>
<name>Thiébaud Weksteen</name>
<email>thiebaud@weksteen.fr</email>
</author>
<published>2015-06-30T21:58:16Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=a2e73c480494101f5f6932b6904acb15c44180ee'/>
<id>urn:sha1:a2e73c480494101f5f6932b6904acb15c44180ee</id>
<content type='text'>
Signed-off-by: Thiébaud Weksteen &lt;thiebaud@weksteen.fr&gt;
Signed-off-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/gdb: enable completion for lx-list-check parameter</title>
<updated>2015-07-01T02:44:58Z</updated>
<author>
<name>Jan Kiszka</name>
<email>jan.kiszka@siemens.com</email>
</author>
<published>2015-06-30T21:58:13Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=3328bc9ee47fbf2e35d146bed0d41cff1c68e8f3'/>
<id>urn:sha1:3328bc9ee47fbf2e35d146bed0d41cff1c68e8f3</id>
<content type='text'>
Signed-off-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Cc: Thiébaud Weksteen &lt;thiebaud@weksteen.fr&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/gdb: also allow list_head pointer as lx-list-check paramter</title>
<updated>2015-07-01T02:44:58Z</updated>
<author>
<name>Jan Kiszka</name>
<email>jan.kiszka@siemens.com</email>
</author>
<published>2015-06-30T21:58:10Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=433296b32b39bd2f8a8717ccb2385b4c8654017d'/>
<id>urn:sha1:433296b32b39bd2f8a8717ccb2385b4c8654017d</id>
<content type='text'>
This makes the usage more flexible.

Signed-off-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Cc: Thiébaud Weksteen &lt;thiebaud@weksteen.fr&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/gdb: add command to check list consistency</title>
<updated>2015-07-01T02:44:57Z</updated>
<author>
<name>Thiébaud Weksteen</name>
<email>thiebaud@weksteen.fr</email>
</author>
<published>2015-06-30T21:58:07Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=084f6b1ec65170c2f8e38688bc83ff15b9a963e0'/>
<id>urn:sha1:084f6b1ec65170c2f8e38688bc83ff15b9a963e0</id>
<content type='text'>
Add a gdb script to verify the consistency of lists.

Signed-off-by: Thiébaud Weksteen &lt;thiebaud@weksteen.fr&gt;
Signed-off-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/gdb: fix lx-lsmod refcnt</title>
<updated>2015-05-29T01:25:19Z</updated>
<author>
<name>Adrien Schildknecht</name>
<email>adrien+dev@schischi.me</email>
</author>
<published>2015-05-28T22:44:40Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=ca3f172c197b5fa6b2693f5f93d4928a1420fb07'/>
<id>urn:sha1:ca3f172c197b5fa6b2693f5f93d4928a1420fb07</id>
<content type='text'>
Commit 2f35c41f58a9 ("module: Replace module_ref with atomic_t refcnt")
changes the way refcnt is handled but did not update the gdb script to
use the new variable.

Since refcnt is not per-cpu anymore, we can directly read its value.

Signed-off-by: Adrien Schildknecht &lt;adrien+dev@schischi.me&gt;
Reviewed-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Cc: Pantelis Koukousoulas &lt;pktoss@gmail.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>scripts/gdb: add empty package initialization script</title>
<updated>2015-02-28T17:57:51Z</updated>
<author>
<name>Jan Kiszka</name>
<email>jan.kiszka@siemens.com</email>
</author>
<published>2015-02-27T23:51:53Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=586a1a125eb157f0c2b9925ba878f24f4fe0c667'/>
<id>urn:sha1:586a1a125eb157f0c2b9925ba878f24f4fe0c667</id>
<content type='text'>
This got lost during the initial merge process: Python requires an
__init__.py script, even if empty, in order to accept a directory as
package.  Add it, this time as a non-empty file.

Signed-off-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
