Lines Matching +full:i +full:- +full:leak +full:- +full:current
4 * @remark Copyright 2002-2009 OProfile authors
62 list_add(&task->tasks, &dying_tasks); in task_free_notify()
74 /* To avoid latency problems, we only process the current CPU, in task_exit_notify()
91 struct mm_struct *mm = current->mm; in munmap_notify()
97 if (mpnt && mpnt->vm_file && (mpnt->vm_flags & VM_EXEC)) { in munmap_notify()
99 /* To avoid latency problems, we only process the current CPU, in munmap_notify()
149 /* make sure we don't leak task structs */ in free_all_tasks()
159 return -ENOMEM; in sync_start()
215 if (path->dentry->d_flags & DCACHE_COOKIE) in fast_get_dcookie()
216 return (unsigned long)path->dentry; in fast_get_dcookie()
222 /* Look up the dcookie for the task's mm->exe_file,
225 * shared-library samples with particular applications
239 cookie = fast_get_dcookie(&exe_file->f_path); in get_exec_dcookie()
248 * sure to do this lookup before a mm->mmap modification happens so
260 for (vma = find_vma(mm, addr); vma; vma = vma->vm_next) { in lookup_dcookie()
262 if (addr < vma->vm_start || addr >= vma->vm_end) in lookup_dcookie()
265 if (vma->vm_file) { in lookup_dcookie()
266 cookie = fast_get_dcookie(&vma->vm_file->f_path); in lookup_dcookie()
267 *offset = (vma->vm_pgoff << PAGE_SHIFT) + addr - in lookup_dcookie()
268 vma->vm_start; in lookup_dcookie()
286 static void add_cpu_switch(int i) in add_cpu_switch() argument
290 add_event_entry(i); in add_cpu_switch()
308 add_event_entry(task->pid); in add_user_ctx_switch()
310 /* Another code for daemon back-compat */ in add_user_ctx_switch()
313 add_event_entry(task->tgid); in add_user_ctx_switch()
387 add_sample_entry(s->eip, s->event); in add_sample()
398 cookie = lookup_dcookie(mm, s->eip, &offset); in add_sample()
410 add_sample_entry(offset, s->event); in add_sample()
450 list_del(&task->tasks); in process_task_mortuary()
458 int i; in mark_done() local
462 for_each_online_cpu(i) { in mark_done()
463 if (!cpumask_test_cpu(i, marked_cpus)) in mark_done()
481 sb_bt_ignore = -2,
490 * lookup in task->mm->mmap to convert EIP into dcookie/offset
502 unsigned int i; in sync_buffer() local
515 for (i = 0; i < available; ++i) { in sync_buffer()
520 if (is_code(sample->eip)) { in sync_buffer()
521 flags = sample->event; in sync_buffer()
577 int i; in oprofile_put_buff() local
579 i = start; in oprofile_put_buff()
582 while (i != stop) { in oprofile_put_buff()
583 add_event_entry(buf[i++]); in oprofile_put_buff()
585 if (i >= max) in oprofile_put_buff()
586 i = 0; in oprofile_put_buff()