Home
last modified time | relevance | path

Searched refs:sleepable (Results 1 – 25 of 32) sorted by relevance

12

/linux/tools/verification/models/sched/
H A Dsssw.dot8 {node [shape = circle] "sleepable"};
13 "runnable" -> "sleepable" [ label = "sched_set_state_sleepable" ];
18 "signal_wakeup" -> "sleepable" [ label = "sched_set_state_sleepable" ];
19 "sleepable" [label = "sleepable"];
20 "sleepable" -> "runnable" [ label = "sched_set_state_runnable\nsched_wakeup" ];
21 "sleepable" -> "signal_wakeup" [ label = "sched_switch_yield" ];
22 …"sleepable" -> "sleepable" [ label = "sched_set_state_sleepable\nsched_switch_in\nsched_switch_pre…
23 "sleepable" -> "sleeping" [ label = "sched_switch_suspend\nsched_switch_blocking" ];
/linux/drivers/infiniband/sw/rxe/
H A Drxe_pool.h59 bool sleepable);
61 #define rxe_add_to_pool_ah(pool, obj, sleepable) __rxe_add_to_pool(pool, \ argument
62 &(obj)->elem, sleepable)
73 int __rxe_cleanup(struct rxe_pool_elem *elem, bool sleepable);
75 #define rxe_cleanup_ah(obj, sleepable) __rxe_cleanup(&(obj)->elem, sleepable) argument
H A Drxe_pool.c120 bool sleepable) in __rxe_add_to_pool() argument
137 gfp_flags = sleepable ? GFP_KERNEL : GFP_ATOMIC; in __rxe_add_to_pool()
139 if (sleepable) in __rxe_add_to_pool()
177 int __rxe_cleanup(struct rxe_pool_elem *elem, bool sleepable) in __rxe_cleanup() argument
184 if (sleepable) in __rxe_cleanup()
203 if (sleepable) { in __rxe_cleanup()
/linux/Documentation/trace/rv/
H A Dmonitor_sched.rst262 sleepable leads to sleeping and sleeping tasks require wakeup. It includes the
267 the task to ``sleepable``. After a task is suspended, it needs to be woken up
269 Setting the task's state to ``sleepable`` can be reverted before switching if it
275 type of switch when the task is not set to sleepable. This is a limitation of
284 ``sleepable`` as that would be a suspension. A special case of a yield occurs
292 This monitor doesn't include a running state, ``sleepable`` and ``runnable``
328 signal_deliver | sleepable | signal_deliver
/linux/kernel/bpf/
H A Dtrampoline.c1061 bool sleepable = prog->sleepable; in bpf_trampoline_enter() local
1064 return sleepable ? __bpf_prog_enter_sleepable_recur : in bpf_trampoline_enter()
1071 return sleepable ? __bpf_prog_enter_sleepable : __bpf_prog_enter; in bpf_trampoline_enter()
1076 bool sleepable = prog->sleepable; in bpf_trampoline_exit() local
1079 return sleepable ? __bpf_prog_exit_sleepable_recur : in bpf_trampoline_exit()
1086 return sleepable ? __bpf_prog_exit_sleepable : __bpf_prog_exit; in bpf_trampoline_exit()
H A Dbpf_iter.c548 if (prog->sleepable && !bpf_iter_target_support_resched(tinfo)) in bpf_iter_link_attach()
698 if (prog->sleepable) { in bpf_iter_run_prog()
H A Dsyscall.c2404 if (prog->sleepable) in __bpf_prog_put_noref()
2992 prog->sleepable = !!(attr->prog_flags & BPF_F_SLEEPABLE); in bpf_prog_load()
3177 enum bpf_attach_type attach_type, bool sleepable) in bpf_link_init_sleepable() argument
3182 link->sleepable = sleepable; in bpf_link_init_sleepable()
3274 if (link->sleepable || (link->prog && link->prog->sleepable)) in bpf_link_free()
6053 if (prog->sleepable) in bpf_prog_bind_map()
H A Dcore.c2821 bool sleepable; in __bpf_free_used_maps() local
2824 sleepable = aux->prog->sleepable; in __bpf_free_used_maps()
2829 if (sleepable) in __bpf_free_used_maps()
H A Dverifier.c5829 return env->prog->sleepable || in in_sleepable()
13798 bool sleepable, rcu_lock, rcu_unlock, preempt_disable, preempt_enable; in check_kfunc_call() local
13858 sleepable = is_kfunc_sleepable(&meta); in check_kfunc_call()
13859 if (sleepable && !in_sleepable(env)) { in check_kfunc_call()
13931 } else if (sleepable) { in check_kfunc_call()
13947 } else if (sleepable) { in check_kfunc_call()
13958 if (env->cur_state->active_irq_id && sleepable) { in check_kfunc_call()
20401 if (prog->sleepable) in check_map_prog_compatibility()
20479 if (env->prog->sleepable) in __add_used_map()
21570 func[i]->sleepable = prog->sleepable; in jit_subprogs()
[all …]
/linux/kernel/trace/rv/monitors/sssw/
H A DKconfig10 Monitor to ensure sched_set_state to sleepable leads to sleeping and
/linux/drivers/infiniband/hw/erdma/
H A Derdma_cmdq.c399 u64 *resp0, u64 *resp1, bool sleepable) in erdma_post_cmd_wait() argument
407 if (!sleepable) { in erdma_post_cmd_wait()
426 if (sleepable) in erdma_post_cmd_wait()
H A Derdma.h268 u64 *resp0, u64 *resp1, bool sleepable);
/linux/Documentation/mm/
H A Dbalance.rst19 In the absence of non sleepable allocation requests, it seems detrimental
65 for non-sleepable allocations. Second, the HIGHMEM zone is also balanced,
/linux/drivers/hid/bpf/
H A Dhid_bpf_struct_ops.c51 if (prog->sleepable) in hid_bpf_ops_check_member()
/linux/Documentation/driver-api/gpio/
H A Ddriver.rst84 sleepable APIs (like PM runtime) in its gpio_chip implementation (.get/.set
299 spinlock_t or any sleepable APIs (like PM runtime) as part of its irqchip
303 - If sleepable APIs have to be used, these can be done from the .irq_bus_lock()
331 threaded on -RT. As a result, spinlock_t or any sleepable APIs (like PM
739 - ensure that sleepable APIs are not used as part irq_chip implementation
740 If sleepable APIs have to be used, these can be done from the .irq_bus_lock()
742 - Chained GPIO irqchips: ensure spinlock_t or any sleepable APIs are not used
/linux/net/bpf/
H A Dbpf_dummy_struct_ops.c229 if (prog->sleepable) in bpf_dummy_ops_check_member()
/linux/include/linux/
H A Dbpf.h1731 sleepable:1; /* BPF program is sleepable */ member
1782 bool sleepable; member
2359 if (!prog->sleepable) in bpf_prog_run_array_uprobe()
2366 if (!prog->sleepable) in bpf_prog_run_array_uprobe()
2591 enum bpf_attach_type attach_type, bool sleepable);
2953 enum bpf_attach_type attach_type, bool sleepable) in bpf_link_init_sleepable() argument
/linux/Documentation/core-api/real-time/
H A Darchitecture-porting.rst74 locks, such as spinlock_t, become sleepable. For example, handling an
/linux/Documentation/locking/
H A Dhwspinlock.rst147 or sleepable operations under the hardware lock.
229 or sleepable operations under the hardware lock.
H A Dmutex-design.rst69 While formally kernel mutexes are sleepable locks, it is path (ii) that
/linux/kernel/trace/
H A Dbpf_trace.c1312 return prog->sleepable ? &bpf_get_stack_sleepable_proto : &bpf_get_stack_proto; in kprobe_prog_func_proto()
3073 bool sleepable = prog->sleepable; in uprobe_prog_run() local
3080 if (sleepable) in uprobe_prog_run()
3093 if (sleepable) in uprobe_prog_run()
/linux/Documentation/bpf/
H A Dkfuncs.rst316 be called by sleepable BPF programs (BPF_F_SLEEPABLE).
342 an RCU critical section. This is assumed by default in non-sleepable programs,
343 and must be explicitly ensured by calling ``bpf_rcu_read_lock`` for sleepable
/linux/Documentation/hid/
H A Dhid-bpf.rst176 Note that ``hid_rdesc_fixup`` can be declared as sleepable (``SEC("struct_ops.s/hid_rdesc_fixup")``…
201 Available API that can be used in syscall HID-BPF programs or in sleepable HID-BPF struct_ops progr…
/linux/tools/sched_ext/
H A DREADME.md178 useful BPF features, such as sleepable per-task storage allocation in the
/linux/tools/memory-model/Documentation/
H A Dordering.txt118 sleepable contexts. Therefore, RCU's grace-period primitives are

12