<br><br><div class="gmail_quote">On Sat, Feb 26, 2011 at 5:14 PM, Daniel Baluta <span dir="ltr"><<a href="mailto:daniel.baluta@gmail.com">daniel.baluta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">> i am putting a printk() on link_path_walk() kernel function ( the pathname<br>
> resolution function). i access that printk() only at some special condition<br>
> (like if pathname passed to link_path_walk() matches with some name) . but<br>
> when it gets hit like when i pass pathname via unlink(2) , lots of messages<br>
> are written to dmesg ( or /var/log/messages) . i could not understand why<br>
> these lots of messages are being written ? (i was hoping for only one<br>
> message)<br>
<br>
</div>Try to printout the name of the process on behalf of which the kernel<br>
runs link_path_walk<br>
using current->comm.<br>
<br>
Then filter out the printks done by your application.<br></blockquote><div> </div><div>i have checked with timestamps . and all the repeated lines show the
same timestemps. and yes, daniel, the program name is also same each
time.<br>but why are these lines repeated in /var/log/messages file ? :) <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<font color="#888888"><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>........................<div><i>MOHIT VERMA</i></div><br>