mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Set inode for vdso to 0.
2006-11-23 Soren Sandmann <sandmann@daimi.au.dk> * process.c (read_maps): Set inode for vdso to 0. * binfile.c (read_inode): Return -1 on error, 0 on vdso (bin_file_new): Only read the inode if the file actually exists and is an elf file. (bin_file_check_inode): Return FALSE if there is no file.
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
973d92eb4d
commit
4ba672ee9f
@ -106,10 +106,12 @@ read_maps (int pid, int *n_maps)
|
||||
{
|
||||
/* For the vdso, the kernel reports 'offset' as the
|
||||
* the same as the mapping addres. This doesn't make
|
||||
* any sense to me, so we just zero it here.
|
||||
* any sense to me, so we just zero it here. There
|
||||
* is code in binfile.c (read_inode) that returns 0
|
||||
* for [vdso].
|
||||
*/
|
||||
map.offset = 0;
|
||||
map.inode = -1;
|
||||
map.inode = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user