• Home
  • Raw
  • Download

Lines Matching refs:info

55 	struct bpf_iter_seq_task_info *info = seq->private;  in task_seq_start()  local
58 task = task_seq_get_next(info->common.ns, &info->tid, false); in task_seq_start()
69 struct bpf_iter_seq_task_info *info = seq->private; in task_seq_next() local
73 ++info->tid; in task_seq_next()
75 task = task_seq_get_next(info->common.ns, &info->tid, false); in task_seq_next()
138 task_file_seq_get_next(struct bpf_iter_seq_task_file_info *info) in task_file_seq_get_next() argument
140 struct pid_namespace *ns = info->common.ns; in task_file_seq_get_next()
141 u32 curr_tid = info->tid; in task_file_seq_get_next()
143 unsigned int curr_fd = info->fd; in task_file_seq_get_next()
150 if (info->task) { in task_file_seq_get_next()
151 curr_task = info->task; in task_file_seq_get_next()
152 curr_fd = info->fd; in task_file_seq_get_next()
156 info->task = NULL; in task_file_seq_get_next()
157 info->tid = curr_tid; in task_file_seq_get_next()
162 info->task = curr_task; in task_file_seq_get_next()
163 if (curr_tid == info->tid) { in task_file_seq_get_next()
164 curr_fd = info->fd; in task_file_seq_get_next()
166 info->tid = curr_tid; in task_file_seq_get_next()
181 info->fd = curr_fd; in task_file_seq_get_next()
189 info->task = NULL; in task_file_seq_get_next()
190 info->fd = 0; in task_file_seq_get_next()
191 curr_tid = ++(info->tid); in task_file_seq_get_next()
197 struct bpf_iter_seq_task_file_info *info = seq->private; in task_file_seq_start() local
200 info->task = NULL; in task_file_seq_start()
201 file = task_file_seq_get_next(info); in task_file_seq_start()
210 struct bpf_iter_seq_task_file_info *info = seq->private; in task_file_seq_next() local
213 ++info->fd; in task_file_seq_next()
215 return task_file_seq_get_next(info); in task_file_seq_next()
232 struct bpf_iter_seq_task_file_info *info = seq->private; in DEFINE_BPF_ITER_FUNC() local
243 ctx.task = info->task; in DEFINE_BPF_ITER_FUNC()
244 ctx.fd = info->fd; in DEFINE_BPF_ITER_FUNC()
256 struct bpf_iter_seq_task_file_info *info = seq->private; in task_file_seq_stop() local
262 put_task_struct(info->task); in task_file_seq_stop()
263 info->task = NULL; in task_file_seq_stop()
308 task_vma_seq_get_next(struct bpf_iter_seq_task_vma_info *info) in task_vma_seq_get_next() argument
310 struct pid_namespace *ns = info->common.ns; in task_vma_seq_get_next()
314 u32 curr_tid = info->tid; in task_vma_seq_get_next()
321 if (info->task) { in task_vma_seq_get_next()
322 curr_task = info->task; in task_vma_seq_get_next()
323 curr_vma = info->vma; in task_vma_seq_get_next()
363 info->prev_vm_start = curr_vma->vm_start; in task_vma_seq_get_next()
364 info->prev_vm_end = curr_vma->vm_end; in task_vma_seq_get_next()
376 info->tid = curr_tid + 1; in task_vma_seq_get_next()
380 if (curr_tid != info->tid) { in task_vma_seq_get_next()
381 info->tid = curr_tid; in task_vma_seq_get_next()
413 curr_vma = find_vma(curr_task->mm, info->prev_vm_end - 1); in task_vma_seq_get_next()
418 curr_vma->vm_start == info->prev_vm_start && in task_vma_seq_get_next()
419 curr_vma->vm_end == info->prev_vm_end) in task_vma_seq_get_next()
428 info->task = curr_task; in task_vma_seq_get_next()
429 info->vma = curr_vma; in task_vma_seq_get_next()
434 info->task = NULL; in task_vma_seq_get_next()
441 info->task = NULL; in task_vma_seq_get_next()
442 info->vma = NULL; in task_vma_seq_get_next()
448 struct bpf_iter_seq_task_vma_info *info = seq->private; in task_vma_seq_start() local
451 vma = task_vma_seq_get_next(info); in task_vma_seq_start()
460 struct bpf_iter_seq_task_vma_info *info = seq->private; in task_vma_seq_next() local
463 return task_vma_seq_get_next(info); in task_vma_seq_next()
477 struct bpf_iter_seq_task_vma_info *info = seq->private; in DEFINE_BPF_ITER_FUNC() local
488 ctx.task = info->task; in DEFINE_BPF_ITER_FUNC()
489 ctx.vma = info->vma; in DEFINE_BPF_ITER_FUNC()
500 struct bpf_iter_seq_task_vma_info *info = seq->private; in task_vma_seq_stop() local
512 info->prev_vm_start = ~0UL; in task_vma_seq_stop()
513 info->prev_vm_end = info->vma->vm_end; in task_vma_seq_stop()
514 mmap_read_unlock(info->task->mm); in task_vma_seq_stop()
515 put_task_struct(info->task); in task_vma_seq_stop()
516 info->task = NULL; in task_vma_seq_stop()