Kernelnewbies Digest, Vol 71, Issue 22
Hi Wenda Ni,
Please go through the following link to enable debugging output.Seems you have missed enabling DEBUG in Makefile. Hope it will help you.
https://www.kernel.org/doc/local/pr_debug.txt
*CFLAGS_[filename].o := -DDEBUG*
*With Best Regards,*
Sukanya Ch
Software Engineer
VVDN Technologies Pvt Ltd
*Cell : *+91 9551955031 | *Skype :* sukanya.chinthamreddy
Quoted 372 lines · On Tue, Oct 18, 2016 at 7:44 PM, <[email protected]>…
Send Kernelnewbies mailing list submissions to
kernelnewbies at kernelnewbies.orgTo subscribe or unsubscribe via the World Wide Web, visit
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
or, via email, send a message with subject or body 'help' to
kernelnewbies-request at kernelnewbies.orgYou can reach the person managing the list at
kernelnewbies-owner at kernelnewbies.orgWhen replying, please edit your Subject line so it is more specific than "Re: Contents of Kernelnewbies digest..."
Today's Topics:
1. kernel loglevel (Wenda Ni)
2. Re: kernel loglevel (Wenda Ni)
3. Re: kernel loglevel (Joel Fernandes)
4. Re: kernel loglevel (Thibaut SAUTEREAU)
5. Re: kernel loglevel (Wenda Ni)
6. Fw: TPS65910 Regulator Isuue (Amit Mahadik)----------------------------------------------------------------------
Message: 1
Date: Mon, 17 Oct 2016 19:17:32 -0400
From: Wenda Ni <[email protected]>
Subject: kernel loglevel
To: kernelnewbies at kernelnewbies.org
Message-ID:
<CAEnvTt0RRDWtMD=VxVpuhiiJ+MRX2g3WiTgXkA-M5GGaTMyB-g@
mail.gmail.com>
Content-Type: text/plain; charset=UTF-8Dear all,
I am working on a kernel module that incorporate both
pr_debugandpr_warn. I would like to seepr_debugmessages from dmesg.What I followed is to specify kernel parameter by saying "loglevel=7". This can be seen confirmed from
/proc/cmdline. But still, I donot getpr_debuglevel messages either from dmesg or from/var/log/messages. I also tried echo 7 >/proc/sys/kernel/printk. It does not return what I expect, either.Let me know what I am missing. Thank you very much in advance.
Cheers,
Wenda Ni, Ph.D.
------------------------------
Message: 2
Date: Mon, 17 Oct 2016 19:47:14 -0400
From: Wenda Ni <[email protected]>
Subject: Re: kernel loglevel
To: Thibaut SAUTEREAU <[email protected]>
Cc: kernelnewbies at kernelnewbies.org
Message-ID:
<CAEnvTt3oh+tuhKCwho8eZd5VmJfuXdcmWGpUpsji
H2wWSFpWvg at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"Thank you so much, Thibaut. I have spotted the source-code logic in
include/linux/prink.hCheers,
Wenda Ni, Ph.D.
Quoted 23 lines · Thibaut SAUTEREAU
Quoted 13 lines · Wenda Ni
Dear all,
I am working on a kernel module that incorporate both
pr_debugandpr_warn. I would like to seepr_debugmessages from dmesg.What I followed is to specify kernel parameter by saying "loglevel=7". This can be seen confirmed from
/proc/cmdline. But still, I donot getpr_debuglevel messages either from dmesg or from/var/log/messages. I also tried echo 7 >/proc/sys/kernel/printk. It does not return what I expect, either.Let me know what I am missing. Thank you very much in advance.
Quoted 8 lines
Cheers,
Wenda Ni, Ph.D.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbiesQuoted 5 lines
Hello Wenda,
I encountered the same issue a while ago.
As stated here: http://elinux.org/Debugging_by_printingpr_debugis replaced with an empty statement unless the kernel iscompiled
Quoted 4 lines
with DEBUG. So if you just want to play with printing kernel debug logs, just define the DEBUG macro in your module source file for testing.
I also observed that without a new line character at the end of the
string
Quoted 1 line
passed to
pr_debug, I could not find the log line in dmesg output. Notsure
Quoted 4 lines
where this comes from.
--
Thibaut SAUTEREAU-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/
attachments/20161017/8f8419cb/attachment-0001.html------------------------------
Message: 3
Date: Mon, 17 Oct 2016 16:48:46 -0700
From: Joel Fernandes <[email protected]>
Subject: Re: kernel loglevel
To: Wenda Ni <[email protected]>
Cc: "kernelnewbies at kernelnewbies.org"
<[email protected]>
Message-ID:<CAD=GYpb-UKodnqeb0o71KytF_M2pLGV7bRzZ3YL4Ck0GqLdU+A@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8Hi Wenda,
pr_debugneeds you to define the DEBUG macro to activate it.Check:
http://stackoverflow.com/questions/28936199/pr-debug-not-giving-any-outputand the kernel docs,
https://www.kernel.org/doc/local/pr_debug.txtJoel
Quoted 13 lines · Wenda Ni
Dear all,
I am working on a kernel module that incorporate both
pr_debugandpr_warn. I would like to seepr_debugmessages from dmesg.What I followed is to specify kernel parameter by saying "loglevel=7". This can be seen confirmed from
/proc/cmdline. But still, I donot getpr_debuglevel messages either from dmesg or from/var/log/messages. I also tried echo 7 >/proc/sys/kernel/printk. It does not return what I expect, either.Let me know what I am missing. Thank you very much in advance.
Quoted 8 lines
Cheers,
Wenda Ni, Ph.D.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies------------------------------
Message: 4
Date: Tue, 18 Oct 2016 01:41:57 +0200
From: Thibaut SAUTEREAU <[email protected]>
Subject: Re: kernel loglevel
To: Wenda Ni <[email protected]>
Cc: kernelnewbies at kernelnewbies.org
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"Quoted 13 lines · Wenda Ni
Dear all,
I am working on a kernel module that incorporate both
pr_debugandpr_warn. I would like to seepr_debugmessages from dmesg.What I followed is to specify kernel parameter by saying "loglevel=7". This can be seen confirmed from
/proc/cmdline. But still, I donot getpr_debuglevel messages either from dmesg or from/var/log/messages. I also tried echo 7 >/proc/sys/kernel/printk. It does not return what I expect, either.Let me know what I am missing. Thank you very much in advance.
Quoted 8 lines
Cheers,
Wenda Ni, Ph.D.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbiesHello Wenda,
I encountered the same issue a while ago.
As stated here: http://elinux.org/Debugging_by_printingpr_debugis replaced with an empty statement unless the kernel is compiled with DEBUG. So if you just want to play with printing kernel debug logs, just define the DEBUG macro in your module source file for testing.I also observed that without a new line character at the end of the string passed to
pr_debug, I could not find the log line in dmesg output. Not sure where this comes from.--
Thibaut SAUTEREAU
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/
attachments/20161018/d282cce1/attachment-0001.bin------------------------------
Message: 5
Date: Mon, 17 Oct 2016 20:29:33 -0400
From: Wenda Ni <[email protected]>
Subject: Re: kernel loglevel
To: Joel Fernandes <[email protected]>
Cc: "kernelnewbies at kernelnewbies.org"
<[email protected]>
Message-ID:
<CAEnvTt0BmAJ_nxf0oEUsFqqJjGssuXCQBg6pdt95Jk
3PyBBQew at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"Hi Joel,
It works by specifying ccflags-y += -DDEBUG in the
Makefile.Thank you for the info!!!!
Cheers,
Wenda Ni, Ph.D.
Quoted 6 lines · Joel Fernandes
Hi Wenda,
pr_debugneeds you to define the DEBUG macro to activate it.not-giving-any-output
Quoted 29 lines
and the kernel docs,
https://www.kernel.org/doc/local/pr_debug.txtJoel
Quoted 21 lines · Wenda Ni
Dear all,
I am working on a kernel module that incorporate both
pr_debugandpr_warn. I would like to seepr_debugmessages from dmesg.What I followed is to specify kernel parameter by saying "loglevel=7". This can be seen confirmed from
/proc/cmdline. But still, I donot getpr_debuglevel messages either from dmesg or from/var/log/messages. I also tried echo 7 >/proc/sys/kernel/printk. It does not return what I expect, either.Let me know what I am missing. Thank you very much in advance.
Cheers,
Wenda Ni, Ph.D.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/
attachments/20161017/16f479c1/attachment-0001.html------------------------------
Message: 6
Date: Tue, 18 Oct 2016 14:11:41 +0000 (UTC)
From: Amit Mahadik <[email protected]>
Subject: Fw: TPS65910 Regulator Isuue
To: Kernelnewbies <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"Hi,? ? ?I am working on integrating TPS695190 regulator code into kernel version 4.4.16. The regulator powers MMC card slot using Designware MMC controller. I have declared the necessary code in my
board.cfile. The MMC card slot is powered by ldo8 supply declared as
------------------------------------------------------------
-----------------Code---------------------------------------
------------------------------------------static struct
regulator_consumer_supplyopv5xc_ldo8_supply[] = { ???????REGULATOR_SUPPLY("sd_vdd", NULL),
};static struct
regulator_init_dataopv5xc_ldo8= {
??????? .constraints = {
??????????????? .min_uV = 1000000,
??????????????? .max_uV = 3300000,
??????????????? .valid_ops_mask = (REGULATOR_CHANGE_VOLTAGE| ???????????????????????????????REGULATOR_CHANGE_STATUS), ??????????????? .boot_on = 1,
??????? },
??????? .num_consumer_supplies =ARRAY_SIZE(opv5xc_ldo8_supply), ??????? .consumer_supplies =opv5xc_ldo8_supply,
};
static structtps65910_boardtps65910_pdata= {
????? ??????? .tps65910_pmic_init_data[TPS65911_REG_LDO8]???? =&opv5xc_ldo8,
};
static structi2c_board_info__initdataopv5xc_i2c1_devs[] = { ??????? {
???????????????I2C_BOARD_INFO("tps65911",TPS65910_I2C_ID1), ??????????????? .platform_data =&tps65910_pdata,
??????? },
};
------------------------------------------------------------
------------------------------------------------------------
-----------------------------------------------
When I callregulator_getstruct regulator*sd_vdd=regulator_get(NULL, "sd_vdd");? function from the Designware MMC driver code function the kernel panics.I have attached the log file for reference. Can somebody please let me know what I am doing wrong here?
Regards,Amit.-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/
attachments/20161018/389572dc/attachment.html -------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: log.txt
Url: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161018/389572dc/attachment.txt------------------------------
Quoted 9 lines
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbiesEnd of Kernelnewbies Digest, Vol 71, Issue 22
*********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161019/e17a60d7/attachment-0001.html