sections, but .absolute exes are also necessary
atm. */
return stap_add_vma_map_info(tsk->group_leader,
- addr,
- addr + length,
- offset, dentry,
- module);
+ addr, addr + length,
+ dentry, module);
}
}
}
}
if (stap_find_vma_map_info_user(tsk->group_leader, m,
&addr_offset, NULL,
- NULL, NULL) != 0) {
+ NULL) != 0) {
return 0;
}
}
{
unsigned long vm_start = 0;
if (stap_find_vma_map_info(task->group_leader, addr,
- &vm_start, NULL,
- NULL, NULL, &user) == 0)
+ &vm_start, NULL, NULL, &user) == 0)
if (user != NULL)
{
struct _stp_module *m = (struct _stp_module *)user;
pid_t pid;
unsigned long vm_start;
unsigned long vm_end;
- unsigned long vm_pgoff;
struct dentry *dentry;
// User data (possibly stp_module)
// Add the vma info to the vma map hash table.
// Caller is responsible for dentry lifetime.
static int
-stap_add_vma_map_info(struct task_struct *tsk, unsigned long vm_start,
- unsigned long vm_end, unsigned long vm_pgoff,
+stap_add_vma_map_info(struct task_struct *tsk,
+ unsigned long vm_start, unsigned long vm_end,
struct dentry *dentry, void *user)
{
struct hlist_head *head;
entry->pid = tsk->pid;
entry->vm_start = vm_start;
entry->vm_end = vm_end;
- entry->vm_pgoff = vm_pgoff;
entry->dentry = dentry;
entry->user = user;
static int
stap_find_vma_map_info(struct task_struct *tsk, unsigned long addr,
unsigned long *vm_start, unsigned long *vm_end,
- unsigned long *vm_pgoff, struct dentry **dentry,
- void **user)
+ struct dentry **dentry, void **user)
{
struct hlist_head *head;
struct hlist_node *node;
*vm_start = found_entry->vm_start;
if (vm_end != NULL)
*vm_end = found_entry->vm_end;
- if (vm_pgoff != NULL)
- *vm_pgoff = found_entry->vm_pgoff;
if (dentry != NULL)
*dentry = found_entry->dentry;
if (user != NULL)
static int
stap_find_vma_map_info_user(struct task_struct *tsk, void *user,
unsigned long *vm_start, unsigned long *vm_end,
- unsigned long *vm_pgoff, struct dentry **dentry)
+ struct dentry **dentry)
{
struct hlist_head *head;
struct hlist_node *node;
*vm_start = found_entry->vm_start;
if (vm_end != NULL)
*vm_end = found_entry->vm_end;
- if (vm_pgoff != NULL)
- *vm_pgoff = found_entry->vm_pgoff;
if (dentry != NULL)
*dentry = found_entry->dentry;
rc = 0;
if (strcmp (s->name, ".dynamic") == 0) {
unsigned long vm_addr;
if (stap_find_vma_map_info_user(tsk->group_leader, m,
- &vm_addr, NULL, NULL, NULL) == 0)
+ &vm_addr, NULL, NULL) == 0)
return startLoc + vm_addr;
}