[PATCH 7/8] dyndbg: enable 'cache' of active pr_debug callsites

2020-08-05 Thread Jim Cromie
(gdb) n Cannot remove breakpoints because program is no longer writable. Further execution is probably impossible. 1325pr_info("Run %s as init process\n", init_filename); (gdb) Cannot remove breakpoints because program is no longer writable. Further execution is probably impossi

Re: pr_debug

2017-03-16 Thread Tobin C. Harding
: > >> > >> >>> On Wed, Mar 15, 2017 at 10:31 AM, Tobin C. Harding <m...@tobin.cc> > >> >>> wrote: > >> >>> > why does calling pr_debug() with more than one argument cause a > >> >>> > sparse >

Re: pr_debug

2017-03-16 Thread Alexander Kapshuk
g <m...@tobin.cc> wrote: >> >>> > why does calling pr_debug() with more than one argument cause a sparse >> >>> > warning? >> >>> > >> >>> > drivers/mmc/core/sdio_io.c:70:9: error: unknown field name in &

Re: pr_debug

2017-03-15 Thread Tobin C. Harding
On Wed, Mar 15, 2017 at 12:12:48PM +0100, Bjørn Mork wrote: > Alexander Kapshuk <alexander.kaps...@gmail.com> writes: > > >>> On Wed, Mar 15, 2017 at 10:31 AM, Tobin C. Harding <m...@tobin.cc> wrote: > >>> > why does calling pr_debug() with more tha

Re: pr_debug

2017-03-15 Thread Bjørn Mork
Alexander Kapshuk <alexander.kaps...@gmail.com> writes: >>> On Wed, Mar 15, 2017 at 10:31 AM, Tobin C. Harding <m...@tobin.cc> wrote: >>> > why does calling pr_debug() with more than one argument cause a sparse >>> > warning? >>> > >>

Re: pr_debug

2017-03-15 Thread Alexander Kapshuk
On Wed, Mar 15, 2017 at 12:40 PM, Tobin C. Harding <m...@tobin.cc> wrote: > On Wed, Mar 15, 2017 at 12:01:39PM +0200, Alexander Kapshuk wrote: >> On Wed, Mar 15, 2017 at 10:31 AM, Tobin C. Harding <m...@tobin.cc> wrote: >> > why does calling pr_debug() with more th

Re: pr_debug

2017-03-15 Thread Tobin C. Harding
On Wed, Mar 15, 2017 at 12:01:39PM +0200, Alexander Kapshuk wrote: > On Wed, Mar 15, 2017 at 10:31 AM, Tobin C. Harding <m...@tobin.cc> wrote: > > why does calling pr_debug() with more than one argument cause a sparse > > warning? > > > > drivers/mmc/core/sdio_io.

Re: pr_debug

2017-03-15 Thread Alexander Kapshuk
On Wed, Mar 15, 2017 at 10:31 AM, Tobin C. Harding <m...@tobin.cc> wrote: > why does calling pr_debug() with more than one argument cause a sparse > warning? > > drivers/mmc/core/sdio_io.c:70:9: error: unknown field name in initializer > > sdio_io.c:70: > pr_debug(&qu

pr_debug

2017-03-15 Thread Tobin C. Harding
why does calling pr_debug() with more than one argument cause a sparse warning? drivers/mmc/core/sdio_io.c:70:9: error: unknown field name in initializer sdio_io.c:70: pr_debug("SDIO: Enabling device %s...\n", sdio_func_id(func)); What can we do about this? tha

Re: pr_debug

2016-05-10 Thread Tobin Harding
On Tue, May 10, 2016 at 09:33:46AM +0200, Greg KH wrote: > Please read Documentation/dynamic-debug-howto.txt thanks Greg, your are a gentleman. tobin ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: pr_debug

2016-05-10 Thread Greg KH
On Tue, May 10, 2016 at 05:21:35PM +1000, Tobin Harding wrote: > pr_debug messages do not appear in dmesg output (or via cat /proc/kmsg). I > have > set console level to 8 (cat /proc/sys/kernel/printk -> 8 1 4 8). > > Any suggestions please? Please read Documentation/dynam

pr_debug

2016-05-10 Thread Tobin Harding
pr_debug messages do not appear in dmesg output (or via cat /proc/kmsg). I have set console level to 8 (cat /proc/sys/kernel/printk -> 8 1 4 8). Any suggestions please? -- thanks, Tobin. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.

viewing pr_debug messages

2014-11-09 Thread Kevin Wilson
I am using journalctl -kf or journalctl -k to see kernel log messages. However, messages of pr_debug are not shown by this commands. Is there some way to view pr_debug kernel messages with journalctl -k ? regards, Kevin ___ Kernelnewbies mailing

Re: viewing pr_debug messages

2014-11-09 Thread Thomas Gummerer
Kevin Wilson wkev...@gmail.com writes: I am using journalctl -kf or journalctl -k to see kernel log messages. However, messages of pr_debug are not shown by this commands. Is there some way to view pr_debug kernel messages with journalctl -k ? pr_debug messages is usually an empty macro

Re: viewing pr_debug messages

2014-11-09 Thread Bjørn Mork
Thomas Gummerer t.gumme...@gmail.com writes: Kevin Wilson wkev...@gmail.com writes: I am using journalctl -kf or journalctl -k to see kernel log messages. However, messages of pr_debug are not shown by this commands. Is there some way to view pr_debug kernel messages with journalctl -k

about pr_debug

2014-06-25 Thread lx
hi all: I'm confused with pr_debug. My codes is: ### #include linux/module.h #include linux/kernel.h static int __init init_page_dir(void) { pr_debug(Hello world\n); return 0; } static void __exit exit_page_dir(void) { pr_debug(\nGoodbye

Re: about pr_debug

2014-06-25 Thread Real Name
On Wed, Jun 25, 2014 at 02:09:40PM +0800, lx wrote: hi all: I'm confused with pr_debug. My codes is: ### #include linux/module.h #include linux/kernel.h static int __init init_page_dir(void) { pr_debug(Hello world\n); return 0

Re: about pr_debug

2014-06-25 Thread Varka Bhadram
refer this :https://www.kernel.org/doc/local/pr_debug.txt On 06/25/2014 11:39 AM, lx wrote: hi all: I'm confused with pr_debug. My codes is: ### #include linux/module.h #include linux/kernel.h static int __init init_page_dir(void) { pr_debug

Re: about pr_debug

2014-06-25 Thread anish singh
On Tue, Jun 24, 2014 at 11:09 PM, lx lxlenovos...@gmail.com wrote: hi all: I'm confused with pr_debug. My codes is: ### #include linux/module.h #include linux/kernel.h static int __init init_page_dir(void) { pr_debug(Hello world\n); use

Re: about pr_debug

2014-06-25 Thread Pranay Srivastava
On Wed, Jun 25, 2014 at 11:39 AM, lx lxlenovos...@gmail.com wrote: hi all: I'm confused with pr_debug. My codes is: ### #include linux/module.h #include linux/kernel.h static int __init init_page_dir(void) { pr_debug(Hello world\n

Re: about pr_debug

2014-06-25 Thread Bjørn Mork
Varka Bhadram varkabhad...@gmail.com writes: refer this :https://www.kernel.org/doc/local/pr_debug.txt That seems a little outdated since it doesn't mention the extremely useful dynamic debug feature. So please read https://www.kernel.org/doc/Documentation/dynamic-debug-howto.txt as well. The

Re: about pr_debug

2014-06-25 Thread lx
thank you. But the Makefile is so simple and Not use cc. # obj-m := task_01.o KDIR:=/lib/modules/`uname -r`/build PWD:=$(shell pwd) default: echo $KDIR $(MAKE) -C $(KDIR) M=$(PWD) modules # So, how to add CFLAGS?

Re: about pr_debug

2014-06-25 Thread lx
Thank you. I fix it EXTRA_CFLAGS += -DDEBUG 2014-06-25 17:50 GMT+08:00 Varka Bhadram varkabhad...@gmail.com: On 06/25/2014 03:17 PM, lx wrote: thank you. But the Makefile is so simple and Not use cc. # obj-m := task_01.o CFLAGS_task_01.o :=

loglevel 7 (debug) and pr_debug()

2014-04-16 Thread Martin Kepplinger
I'm on Debian here and I don't really get pr_debug and printk(KERN_DEBUG ...). Let's stick to pr_debug. I have DYNAMIC_DEBUG enabled and root@laptop:/proc/sys/kernel# cat /proc/sys/kernel/printk 7 7 1 7 I write a module with pr_debug's. I load the module and I *don't* see

Re: loglevel 7 (debug) and pr_debug()

2014-04-16 Thread Arun KS
Hi Martin, On Wed, Apr 16, 2014 at 2:13 PM, Martin Kepplinger mart...@posteo.de wrote: I'm on Debian here and I don't really get pr_debug and printk(KERN_DEBUG ...). Let's stick to pr_debug. I have DYNAMIC_DEBUG enabled and root@laptop:/proc/sys/kernel# cat /proc/sys/kernel/printk 7 7

Re: loglevel 7 (debug) and pr_debug()

2014-04-16 Thread Martin Kepplinger
Am 2014-04-16 11:00, schrieb Arun KS: Hi Martin, On Wed, Apr 16, 2014 at 2:13 PM, Martin Kepplinger mart...@posteo.de wrote: I'm on Debian here and I don't really get pr_debug and printk(KERN_DEBUG ...). Let's stick to pr_debug. I have DYNAMIC_DEBUG enabled and root@laptop:/proc/sys

Re: loglevel 7 (debug) and pr_debug()

2014-04-16 Thread Arun KS
Hi Martin, On Wed, Apr 16, 2014 at 2:46 PM, Martin Kepplinger mart...@posteo.de wrote: Am 2014-04-16 11:00, schrieb Arun KS: Hi Martin, On Wed, Apr 16, 2014 at 2:13 PM, Martin Kepplinger mart...@posteo.de wrote: I'm on Debian here and I don't really get pr_debug and printk(KERN_DEBUG

Re: loglevel 7 (debug) and pr_debug()

2014-04-16 Thread Martin Kepplinger
really get pr_debug and printk(KERN_DEBUG ...). Let's stick to pr_debug. I have DYNAMIC_DEBUG enabled and root@laptop:/proc/sys/kernel# cat /proc/sys/kernel/printk 7       7       1       7 This shows the console log level. This file controls the traffic to console. But all the log

Re: loglevel 7 (debug) and pr_debug()

2014-04-16 Thread Denis Pithon
Martin, I'm not sure did you enable DDEBUG when compiling your module ? pr_debug() macro is discarded if you omit DEBUG in compile time A sample Makefile which enable pr_debug() : obj-m += my_modue.o KDIR ?= /lib/modules/`uname -r`/build CFLAGS_my_module.o := -DDEBUG all: make -C $(KDIR) M

Re: loglevel 7 (debug) and pr_debug()

2014-04-16 Thread Martin Kepplinger
Am 16.04.2014 13:43 schrieb Denis Pithon: Martin, I'm not sure did you enable DDEBUG when compiling your module ? pr_debug() macro is discarded if you omit DEBUG in compile time A sample Makefile which enable pr_debug() : obj-m += my_modue.o KDIR ?= /lib/modules/`uname -r`/build

Re: loglevel 7 (debug) and pr_debug()

2014-04-16 Thread Arun KS
Hello Martin and Dennis, On Wed, Apr 16, 2014 at 5:27 PM, Martin Kepplinger mart...@posteo.dewrote: Am 16.04.2014 13:43 schrieb Denis Pithon: Martin, I'm not sure did you enable DDEBUG when compiling your module ? pr_debug() macro is discarded if you omit DEBUG in compile time

Re: loglevel 7 (debug) and pr_debug()

2014-04-16 Thread Valdis . Kletnieks
On Wed, 16 Apr 2014 13:57:07 +0200, Martin Kepplinger said: I'd like to just read all pr_debug() messages like pr_info(). Did you consider, um, I don't know? Just building a kernel that doesn't have CONFIG_DYNAMIC_DEBUG turned on? Or you could read Documentation/dynamic-debug-howto.txt

Re: loglevel 7 (debug) and pr_debug()

2014-04-16 Thread Denis Pithon
is not a problem but a syslog feature :) http://www.rsyslog.com/doc/rsyslog_conf_filter.html On Wed, Apr 16, 2014 at 1:57 PM, Martin Kepplinger mart...@posteo.dewrote: Am 16.04.2014 13:43 schrieb Denis Pithon: Martin, I'm not sure did you enable DDEBUG when compiling your module ? pr_debug

How to use pr_debug

2014-02-26 Thread m silverstri
I am using 'pr_debug()' to print debug statements. But I don't see anything in my serial console. But when I use pr_info(), I see the debug statements. Do I need to do anything to see pr_debug()? Thank you. ___ Kernelnewbies mailing list Kernelnewbies

Re: How to use pr_debug

2014-02-26 Thread John de la Garza
On Wed, Feb 26, 2014 at 11:35:23AM -0800, m silverstri wrote: I am using 'pr_debug()' to print debug statements. But I don't see anything in my serial console. But when I use pr_info(), I see the debug statements. Do I need to do anything to see pr_debug()? add this to the top of the file

Re: How to use pr_debug

2014-02-26 Thread Valdis . Kletnieks
On Wed, 26 Feb 2014 11:35:23 -0800, m silverstri said: I am using 'pr_debug()' to print debug statements. But I don't see anything in my serial console. But when I use pr_info(), I see the debug statements. Do I need to do anything to see pr_debug()? You probably need a #define DEBUG. Also

회신: How to use pr_debug

2014-02-26 Thread 김찬
07:31:25 ( +09:00 ) To : m silverstri michael.j.silvers...@gmail.com Cc : kernelnewbies kernelnewbies@kernelnewbies.org Subject : Re: How to use pr_debug On Wed, 26 Feb 2014 11:35:23 -0800, m silverstri said: I am using 'pr_debug()' to print debug statements. But I don't see anything in my serial

Re: How to use pr_debug

2014-02-26 Thread Kim Chan
valdis.kletni...@vt.edu Sent : 2014-02-27 07:31:25 ( +09:00 ) To : m silverstri michael.j.silvers...@gmail.com Cc : kernelnewbies kernelnewbies@kernelnewbies.org Subject : Re: How to use pr_debug On Wed, 26 Feb 2014 11:35:23 -0800, m silverstri said: I am using 'pr_debug()' to print debug statements