about pr_debug
lx
lxlenovostar at gmail.com
Wed Jun 25 05:47:45 EDT 2014
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"?
2014-06-25 16:20 GMT+08:00 Bjørn Mork <bjorn at mork.no>:
> Varka Bhadram <varkabhadram at 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 ability to dynamically switch on and off debug messages per callsite
> is extremely useful. And it also enables you to switch on some extra
> info you often want, like function names, without having to explictly
> put them into every format string.
>
> I recommend setting CONFIG_DYNAMIC_DEBUG and taking a look at
> /sys/kernel/debug/dynamic_debug/control if you ever do any kernel
> development.
>
>
>
> Bjørn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140625/86c55029/attachment.html
More information about the Kernelnewbies
mailing list