Re: how to find the pointer address

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

 



On Thu, Jan 13, 2011 at 04:07, mohit verma <mohit89mlnc@xxxxxxxxx> wrote:
>
> hi all,
>
> i have to trap  some kernel functions  like:
>
>
>          any pathname resolution function  has to go through the
> link_path_walk() kernel function. so what this function returns is 0 on
> success or error.
>  but when it reurns with 0  , the nameidata->dentry and  mnt fields of
> nameidata structure point to the pathname component.
> so most probably( m not  sure) this  will change the stack address and get
> back to the calling  point of link_path_walk().
>
> is there any way by which i can find out the address of the pointer returned
> back from link_path_walk() (indirectly)  of nameidata structure.
> i mean as  u guys suggested me over here  to just use kprobe() kernel
> tracing funtion to use  but the problem is with how to find it out?
>
> is  there any way in /proc subsystem to  check it out?

Please rephrase your question: are you going to find symbol address?

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
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