Skip to contentSkip to conversation

(unknown)

DISCUSSION Alexei Babich 3 participants 4 messages May 19, 2008 – Jun 14, 2008

lore
Share & tools
lore
#0 lore raw

Hi all,
How I can disable printk() output bufferization ? I need that printk() prints symbol-by-symbol or line-by-line.

Thank you.

Signature · 9 lines
Regards,
Alexei Babich, chematic engineer, OOO NPP "Rezonans", Chelyabinsk, Russia
http://www.rez.ru
Jabber ID: [email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#1 lore raw

Re:

Quoted 3 lines · Alexei Babich

Hi all,
How I can disable printk() output bufferization ? I need that printk() prints symbol-by-symbol or line-by-line.

Check this out - since it has similar embedded requirements like yours (what is a chematic engineer?):

http://tree.celinuxforum.org/pipermail/celinux-dev/2006-July/001261.html

Read the comments part of kernel/printk.c - printk() is an amazing function, because it can be called in ANY CONTEXT.....which also means
that it cannot sleep. But since u know many I/O function involved
some form of waiting, therefore printk() necessarily HAVE TO WRITE TO A BUFFER, and it only write to the screen/console whenever it is allowed to sleep (which involved holding a console semaphore).

In short, printk() sometimes will output to screen directly, esp when
u are not in the interrupt context. Otherwise it may just buffer for
later delivery.

Quoted 7 lines

Thank you.
--
Regards,
Alexei Babich, chematic engineer, OOO NPP "Rezonans", Chelyabinsk, Russia
http://www.rez.ru
Jabber ID: [email protected]
--

Signature · 7 lines
Regards,
Peter Teoh
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#2 lore raw

Re:

Quoted 2 lines

Check this out - since it has similar embedded requirements like yours (what is a chematic engineer?):

I ment circuit, not schematic, and that's a misprint in addition :)

Quoted 1 line

http://tree.celinuxforum.org/pipermail/celinux-dev/2006-July/001261.html

Thank you for link.

Quoted 6 lines

Read the comments part of kernel/printk.c - printk() is an amazing function, because it can be called in ANY CONTEXT.....which also means
that it cannot sleep. But since u know many I/O function involved
some form of waiting, therefore printk() necessarily HAVE TO WRITE TO A BUFFER,

OK, I need decrease buffer depth.
Thank you.

Signature · 9 lines
Regards,
Alexei Babich, circuit engineer, OOO NPP "Rezonans", Chelyabinsk, Russia
http://www.rez.ru
Jabber ID: [email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#3 lore raw

how to find when a symbol introduced into the kernel

Hi all

To write multiple kernel version compatible programs, I need to know when a specific symbol (a struct or a function)were introduced in to the kernel tree

Binary search against multiple kernel sources is a way,but is still slow.Is there any fast way to use modern git technology to make my life easier?

Many thanks.

Best Regards
Zhaohui Wang

Quoted 26 lines

-----Original Message-----
From: [email protected] [mailto:linux-newbie- [email protected]] On Behalf Of Alexei Babich
Sent: Friday, May 30, 2008 7:06 AM
To: [email protected]
Subject: Re:

Quoted 1 line

Check this out - since it has similar embedded requirements like

yours

Quoted 1 line

(what is a chematic engineer?):

I ment circuit, not schematic, and that's a misprint in addition :)

Quoted 1 line

http://tree.celinuxforum.org/pipermail/celinux-dev/2006-

July/001261.html
Thank you for link.

Quoted 3 lines

Read the comments part of kernel/printk.c - printk() is an amazing function, because it can be called in ANY CONTEXT.....which also

means

Quoted 3 lines

that it cannot sleep. But since u know many I/O function involved
some form of waiting, therefore printk() necessarily HAVE TO WRITE TO A BUFFER,

OK, I need decrease buffer depth.
Thank you.

Quoted 12 lines

--
Regards,
Alexei Babich, circuit engineer, OOO NPP "Rezonans", Chelyabinsk, Russia
http://www.rez.ru
Jabber ID: [email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs