Re: messages printed lots of times

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> i am putting a printk() on link_path_walk() kernel function ( the pathname
> resolution function). i access that printk() only at some special condition
> (like if pathname passed to link_path_walk() matches with some name) . but
> when it gets hit  like when i pass pathname via unlink(2) , lots of messages
> are written to dmesg ( or /var/log/messages) . i could not understand why
> these lots of messages are being written  ? (i was hoping for only one
> message)

Try to printout the name of the process on behalf of which the kernel
runs link_path_walk
using current->comm.

Then filter out the printks done by your application.

thanks,
Daniel.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux