Home
last modified time | relevance | path

Searched refs:task_struct (Results 1 – 25 of 69) sorted by relevance

123

/tools/testing/selftests/bpf/progs/
Dtask_kfunc_failure.c19 static struct __tasks_kfunc_map_value *insert_lookup_task(struct task_struct *task) in insert_lookup_task()
32 int BPF_PROG(task_kfunc_acquire_untrusted, struct task_struct *task, u64 clone_flags) in BPF_PROG()
34 struct task_struct *acquired; in BPF_PROG()
53 int BPF_PROG(task_kfunc_acquire_fp, struct task_struct *task, u64 clone_flags) in BPF_PROG()
55 struct task_struct *acquired, *stack_task = (struct task_struct *)&clone_flags; in BPF_PROG()
58 acquired = bpf_task_acquire((struct task_struct *)&stack_task); in BPF_PROG()
69 int BPF_PROG(task_kfunc_acquire_unsafe_kretprobe, struct task_struct *task, u64 clone_flags) in BPF_PROG()
71 struct task_struct *acquired; in BPF_PROG()
84 int BPF_PROG(task_kfunc_acquire_unsafe_kretprobe_rcu, struct task_struct *task, u64 clone_flags) in BPF_PROG()
86 struct task_struct *acquired; in BPF_PROG()
[all …]
Dtask_kfunc_success.c20 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym __weak;
22 struct task_struct *bpf_task_acquire___one(struct task_struct *task) __ksym __weak;
24 struct task_struct *bpf_task_acquire___two(struct task_struct *p, void *ctx) __ksym __weak;
26 struct task_struct *bpf_task_acquire___three(void *ctx) __ksym __weak;
38 static int test_acquire_release(struct task_struct *task) in test_acquire_release()
40 struct task_struct *acquired = NULL; in test_acquire_release()
66 int BPF_PROG(test_task_kfunc_flavor_relo, struct task_struct *task, u64 clone_flags) in BPF_PROG()
68 struct task_struct *acquired = NULL; in BPF_PROG()
96 int BPF_PROG(test_task_kfunc_flavor_relo_not_found, struct task_struct *task, u64 clone_flags) in BPF_PROG()
110 int BPF_PROG(test_task_acquire_release_argument, struct task_struct *task, u64 clone_flags) in BPF_PROG()
[all …]
Dtask_kfunc_common.h13 struct task_struct __kptr * task;
23 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym;
24 void bpf_task_release(struct task_struct *p) __ksym;
25 struct task_struct *bpf_task_from_pid(s32 pid) __ksym;
29 static inline struct __tasks_kfunc_map_value *tasks_kfunc_map_value_lookup(struct task_struct *p) in tasks_kfunc_map_value_lookup()
41 static inline int tasks_kfunc_map_insert(struct task_struct *p) in tasks_kfunc_map_insert()
45 struct task_struct *acquired, *old; in tasks_kfunc_map_insert()
Drcu_read_lock.c26 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym;
27 void bpf_task_release(struct task_struct *p) __ksym;
32 struct task_struct *task; in get_cgroup_id()
53 struct task_struct *task, *real_parent; in task_succ()
82 struct task_struct *task, *real_parent; in no_lock()
94 struct task_struct *task, *real_parent; in two_regions()
113 struct task_struct *task, *real_parent; in non_sleepable_1()
129 struct task_struct *task, *real_parent; in non_sleepable_2()
148 struct task_struct *task, *real_parent, *gparent; in task_acquire()
176 struct task_struct *task; in miss_lock()
[all …]
Dtest_task_under_cgroup.c11 long bpf_task_under_cgroup(struct task_struct *task, struct cgroup *ancestor) __ksym;
13 struct task_struct *bpf_task_acquire(struct task_struct *p) __ksym;
14 void bpf_task_release(struct task_struct *p) __ksym;
21 int BPF_PROG(handle__task_newtask, struct task_struct *task, u64 clone_flags) in BPF_PROG()
24 struct task_struct *acquired; in BPF_PROG()
Dcpumask_failure.c21 int BPF_PROG(test_alloc_no_release, struct task_struct *task, u64 clone_flags) in BPF_PROG()
34 int BPF_PROG(test_alloc_double_release, struct task_struct *task, u64 clone_flags) in BPF_PROG()
49 int BPF_PROG(test_acquire_wrong_cpumask, struct task_struct *task, u64 clone_flags) in BPF_PROG()
62 int BPF_PROG(test_mutate_cpumask, struct task_struct *task, u64 clone_flags) in BPF_PROG()
72 int BPF_PROG(test_insert_remove_no_release, struct task_struct *task, u64 clone_flags) in BPF_PROG()
96 int BPF_PROG(test_cpumask_null, struct task_struct *task, u64 clone_flags) in BPF_PROG()
106 int BPF_PROG(test_global_mask_out_of_rcu, struct task_struct *task, u64 clone_flags) in BPF_PROG()
140 int BPF_PROG(test_global_mask_no_null_check, struct task_struct *task, u64 clone_flags) in BPF_PROG()
168 int BPF_PROG(test_global_mask_rcu_no_null_check, struct task_struct *task, u64 clone_flags) in BPF_PROG()
Dtest_overhead.c10 struct task_struct;
13 int BPF_KPROBE(prog1, struct task_struct *tsk, const char *buf, bool exec) in BPF_KPROBE()
31 int BPF_PROG(prog4, struct task_struct *tsk, const char *buf, bool exec) in BPF_PROG()
37 int BPF_PROG(prog5, struct task_struct *tsk, const char *buf, bool exec) in BPF_PROG()
Dtest_subprogs.c57 return BPF_CORE_READ((struct task_struct *)(void *)t, tgid); in get_task_tgid()
71 struct task_struct *t = (void *)bpf_get_current_task(); in prog1()
83 struct task_struct *t = (void *)bpf_get_current_task(); in prog2()
101 struct task_struct *t = (void *)bpf_get_current_task(); in prog3()
117 struct task_struct *t = (void *)bpf_get_current_task(); in prog4()
Dcpumask_success.c66 int BPF_PROG(test_alloc_free_cpumask, struct task_struct *task, u64 clone_flags) in BPF_PROG()
82 int BPF_PROG(test_set_clear_cpu, struct task_struct *task, u64 clone_flags) in BPF_PROG()
111 int BPF_PROG(test_setall_clear_cpu, struct task_struct *task, u64 clone_flags) in BPF_PROG()
140 int BPF_PROG(test_first_firstzero_cpu, struct task_struct *task, u64 clone_flags) in BPF_PROG()
179 int BPF_PROG(test_firstand_nocpu, struct task_struct *task, u64 clone_flags) in BPF_PROG()
211 int BPF_PROG(test_test_and_set_clear, struct task_struct *task, u64 clone_flags) in BPF_PROG()
243 int BPF_PROG(test_and_or_xor, struct task_struct *task, u64 clone_flags) in BPF_PROG()
290 int BPF_PROG(test_intersects_subset, struct task_struct *task, u64 clone_flags) in BPF_PROG()
332 int BPF_PROG(test_copy_any_anyand, struct task_struct *task, u64 clone_flags) in BPF_PROG()
386 int BPF_PROG(test_insert_leave, struct task_struct *task, u64 clone_flags) in BPF_PROG()
[all …]
Dfind_vma.c23 static long check_vma(struct task_struct *task, struct vm_area_struct *vma, in check_vma()
40 struct task_struct *task = bpf_get_current_task_btf(); in handle_getpid()
56 struct task_struct *task = bpf_get_current_task_btf(); in handle_pe()
Dfind_vma_fail2.c12 static long write_task(struct task_struct *task, struct vm_area_struct *vma, in write_task()
24 struct task_struct *task = bpf_get_current_task_btf(); in handle_getpid()
Dfind_vma_fail1.c13 static long write_vma(struct task_struct *task, struct vm_area_struct *vma, in write_vma()
25 struct task_struct *task = bpf_get_current_task_btf(); in handle_getpid()
Dcgrp_ls_recursion.c27 struct task_struct *task = bpf_get_current_task_btf(); in BPF_PROG()
37 struct task_struct *task = bpf_get_current_task_btf(); in BPF_PROG()
56 struct task_struct *task; in BPF_PROG()
Dtask_ls_recursion.c33 struct task_struct *task = bpf_get_current_task_btf(); in BPF_PROG()
50 struct task_struct *task = bpf_get_current_task_btf(); in BPF_PROG()
90 struct task_struct *task; in BPF_PROG()
Dtest_skb_helpers.c20 struct task_struct *task; in test_skb_helpers()
24 task = (struct task_struct *)bpf_get_current_task(); in test_skb_helpers()
Dbpf_iter_task_btf.c19 struct task_struct *task = ctx->task; in dump_task_struct()
24 ptr.type_id = bpf_core_type_id_kernel(struct task_struct); in dump_task_struct()
Dtest_core_retro.c7 struct task_struct { struct
28 struct task_struct *task = (void *)bpf_get_current_task(); in handle_sys_enter() argument
Dnested_trust_failure.c28 int BPF_PROG(test_invalid_nested_user_cpus, struct task_struct *task, u64 clone_flags) in BPF_PROG()
36 int BPF_PROG(test_invalid_nested_offset, struct task_struct *task, u64 clone_flags) in BPF_PROG()
Dlru_bug.c7 struct task_struct __kptr_untrusted *ptr;
34 struct task_struct *current; in nanosleep()
Dlinked_funcs2.c54 whatever = 2 * bpf_core_type_size(struct task_struct); in set_output_weak()
75 whatever = bpf_core_type_size(struct task_struct); in BPF_PROG()
Dlinked_funcs1.c54 whatever = bpf_core_type_size(struct task_struct); in set_output_weak()
75 whatever = bpf_core_type_size(struct task_struct); in BPF_PROG()
Dtest_module_attach.c14 struct task_struct *task, struct bpf_testmod_test_read_ctx *read_ctx) in BPF_PROG()
24 struct task_struct *task, struct bpf_testmod_test_write_ctx *write_ctx) in BPF_PROG()
48 struct task_struct *task, struct bpf_testmod_test_read_ctx *read_ctx) in BPF_PROG()
Dprofiler.inc.h179 static INLINE void populate_ancestors(struct task_struct* task, in populate_ancestors()
182 struct task_struct* parent = task; in populate_ancestors()
252 struct task_struct* task, in populate_cgroup_info()
337 struct task_struct* task, in populate_var_metadata()
368 struct task_struct* task = (struct task_struct*)bpf_get_current_task(); in get_var_kill_data()
570 struct task_struct* task = (struct task_struct*)bpf_get_current_task(); in BPF_KPROBE()
639 struct task_struct* task = (struct task_struct*)bpf_get_current_task(); in raw_tracepoint__sched_process_exit()
715 struct task_struct* task = (struct task_struct*)bpf_get_current_task(); in raw_tracepoint__sched_process_exec()
725 struct task_struct* parent_task = BPF_CORE_READ(task, real_parent); in raw_tracepoint__sched_process_exec()
807 struct task_struct* task = (struct task_struct*)bpf_get_current_task(); in kprobe_ret__do_filp_open()
[all …]
/tools/bpf/runqslower/
Drunqslower.bpf.c28 static int trace_enqueue(struct task_struct *t) in trace_enqueue()
49 struct task_struct *p = (void *)ctx[0]; in handle__sched_wakeup()
58 struct task_struct *p = (void *)ctx[0]; in handle__sched_wakeup_new()
69 struct task_struct *prev = (struct task_struct *)ctx[1]; in handle__sched_switch()
70 struct task_struct *next = (struct task_struct *)ctx[2]; in handle__sched_switch()
/tools/perf/util/bpf_skel/
Doff_cpu.bpf.c105 static inline int get_task_state(struct task_struct *t) in get_task_state()
120 static inline __u64 get_cgroup_id(struct task_struct *t) in get_cgroup_id()
140 static inline int can_record(struct task_struct *t, int state) in can_record()
185 static int off_cpu_stat(u64 *ctx, struct task_struct *prev, in off_cpu_stat()
186 struct task_struct *next, int state) in off_cpu_stat()
239 struct task_struct *task; in on_newtask()
247 task = (struct task_struct *)bpf_get_current_task(); in on_newtask()
253 task = (struct task_struct *)ctx[0]; in on_newtask()
266 struct task_struct *prev, *next; in on_switch()
272 prev = (struct task_struct *)ctx[1]; in on_switch()
[all …]

123