| /linux/include/trace/events/ |
| H A D | irq.h | 103 DECLARE_EVENT_CLASS(softirq, 122 * softirq_entry - called immediately before the softirq handler 123 * @vec_nr: softirq vector number 126 * we can determine the softirq handler routine. 128 DEFINE_EVENT(softirq, softirq_entry, 136 * softirq_exit - called immediately after the softirq handler returns 137 * @vec_nr: softirq vector number 140 * we can determine the softirq handler routine. 142 DEFINE_EVENT(softirq, softirq_exit, 150 * softirq_raise - called immediately when a softirq i [all...] |
| /linux/kernel/ |
| H A D | softirq.c | 3 * linux/kernel/softirq.c 39 - If a softirq needs serialization, let it serialize itself 41 - Even if softirq is serialized, only local cpu is marked for 47 - NET RX softirq. It is multithreaded and does not require 49 - NET TX softirq. It kicks software netdevice queues, hence 73 * the softirq load for us. 97 * - count is changed by SOFTIRQ_OFFSET on entering or leaving softirq 104 * softirq and whether we just have bh disabled. 111 * softirq disabled section to be preempted. 118 * the task which is in a softirq disabled section is preempted or blocks. [all …]
|
| H A D | Kconfig.preempt | 107 bool "Enforce softirq synchronisation on PREEMPT_RT" 111 the softirq is preemptible. This enforces the same per-CPU BLK 116 this if you suspect an error with preemptible softirq and want test
|
| H A D | user.c | 98 * occasionally also taken from softirq/tasklet context, when 99 * task-structs get RCU-freed. Hence all locking must be softirq-safe. 102 * softirq callbacks, and they can unconditionally enable interrupts, and
|
| /linux/include/kunit/ |
| H A D | run-in-irq-context.h | 58 * Helper function which repeatedly runs the given @func in task, softirq, and 62 * run concurrently: one in each of task, softirq, and hardirq context. 75 * especially in softirq context when the softirq may have interrupted a task 91 * struct for the BH workqueue (the way we access softirq context). in kunit_run_irq_test() 126 "Incorrect hash values reported from softirq context"); in kunit_run_irq_test()
|
| /linux/Documentation/RCU/ |
| H A D | UP.rst | 15 Example 1: softirq Suicide 20 this same list in softirq context. Suppose that the process-context scan 21 is referencing element B when it is interrupted by softirq processing, 26 from softirq, the list scan would find itself referencing a newly freed 134 then, since RCU callbacks can be invoked from softirq context, 135 the callback might be called from a softirq that interrupted
|
| H A D | checklist.rst | 205 invoked from softirq context, and in any case with bottom halves 241 and re-enables softirq, for example, rcu_read_lock_bh() and 272 network-driver NAPI (softirq) context. BPF relies heavily on RCU 375 with softirq disabled, e.g., via spin_lock_bh(). Failing to 376 disable softirq on a given acquisition of that lock will result 377 in deadlock as soon as the RCU softirq handler happens to run 407 might be concurrently invoked by that CPU's softirq handler and
|
| /linux/kernel/trace/ |
| H A D | trace_osnoise.c | 214 struct osn_softirq softirq; member 359 osn_var->softirq.arrival_time = 0; in timerlat_softirq_exit() 360 osn_var->softirq.delta_start = 0; in timerlat_softirq_exit() 408 seq_puts(s, "# || / _----=> hardirq/softirq\n"); in print_osnoise_headers() 436 seq_puts(s, "# | / _---=> hardirq/softirq\n"); in print_osnoise_headers() 524 seq_puts(s, "# || / _----=> hardirq/softirq\n"); in print_timerlat_headers() 540 seq_puts(s, "# | / _---=> hardirq/softirq\n"); in print_timerlat_headers() 706 * cond_move_softirq_delta_start - Forward the delta_start of a running softirq. 708 * If a softirq is preempted by an IRQ or NMI, its delta_start is pushed 716 if (osn_var->softirq.delta_start) in cond_move_softirq_delta_start() [all …]
|
| /linux/tools/testing/selftests/net/bench/ |
| H A D | test_bench_page_pool.sh | 19 …echo "${result}" | grep -o -E "no-softirq-page_pool01 Per elem: ([0-9]+) cycles\(tsc\) ([0-9]+\.[0… 23 …echo "${result}" | grep -o -E "no-softirq-page_pool02 Per elem: ([0-9]+) cycles\(tsc\) ([0-9]+\.[0… 27 …echo "${result}" | grep -o -E "no-softirq-page_pool03 Per elem: ([0-9]+) cycles\(tsc\) ([0-9]+\.[0…
|
| /linux/include/linux/ |
| H A D | hrtimer_defs.h | 78 * @softirq_activated: displays, if the softirq is raised - update of softirq 84 * @softirq_expiry_lock: Lock which is taken while softirq based hrtimer are 94 * @softirq_next_timer: Pointer to the first expiring softirq based timer
|
| H A D | dlm.h | 62 * dlm request callbacks (ast, bast) are softirq safe. Flag should be 64 * strongest context for ast, bast callback is softirq as it avoids 165 * can be processed in softirq context. Also some of the callback
|
| H A D | connector.h | 96 * It can be safely called from softirq context, but may silently 122 * It can be safely called from softirq context, but may silently
|
| /linux/Documentation/locking/ |
| H A D | lockdep-design.rst | 55 - softirq 88 ||| \-> softirq disabled and not in softirq context 89 || \--> acquired in softirq context 120 A softirq-unsafe lock-class is automatically hardirq-unsafe as well. The 125 <softirq-safe> or <softirq-unsafe> 160 <softirq-safe> -> <softirq-unsafe> 164 thus could result in a lock inversion deadlock. Likewise, a softirq-safe 165 lock could be taken by an softirq context, interrupting a softirq-unsafe 178 - if a new softirq-safe lock is discovered, we check whether it took 179 any softirq-unsafe lock in the past. [all …]
|
| /linux/Documentation/translations/it_IT/kernel-hacking/ |
| H A D | locking.rst | 173 Sincronizzazione fra il contesto utente e i softirq 176 Se un softirq condivide dati col contesto utente, avete due problemi. 177 Primo, il contesto utente corrente potrebbe essere interroto da un softirq, 180 (``include/linux/spinlock.h``) viene utilizzato. Questo disabilita i softirq 192 (``include/linux/interrupt.h``), la quale impedisce ai softirq d'essere 198 Questo caso è uguale al precedente, un tasklet viene eseguito da un softirq. 204 softirq. 229 Sincronizzazione fra softirq 232 Spesso un softirq potrebbe condividere dati con se stesso o un tasklet/timer. 234 Lo stesso softirq argument [all …]
|
| H A D | hacking.rst | 40 - non associata ad alcun processo, servendo un softirq o tasklet; 50 softirq è in esecuzione su d'una CPU, nessun altro softirq può avvicendarsi 77 Attenzione che se avete la prelazione o i softirq disabilitati (vedere 101 Contesto d'interruzione software: softirq e tasklet 107 eseguita (``kernel/softirq.c``). 116 Il file ``include/linux/interrupt.h`` elenca i differenti tipi di 'softirq'. 117 Un tipo di softirq molto importante è il timer (``include/linux/timer.h``): 121 Dato che i softirq possono essere eseguiti simultaneamente su più di un 134 Potete determinate se siete in un softirq (o tasklet) utilizzando la 432 Lo scopo è di prevenire l'esecuzione di softirq e tasklet sul processore
|
| /linux/Documentation/kernel-hacking/ |
| H A D | locking.rst | 164 If a softirq shares data with user context, you have two problems. 165 Firstly, the current user context can be interrupted by a softirq, and 180 (``include/linux/interrupt.h``), which protects you from the softirq 187 from a softirq. 193 from a softirq. From a locking point of view, tasklets and timers are 221 Often a softirq might want to share data with itself or a tasklet/timer. 223 The Same Softirq 226 The same softirq can run on the other CPUs: you can use a per-CPU array 228 going so far as to use a softirq, you probably care about scalable 239 tasklet, different softirq or the same or another softirq: any of them [all …]
|
| /linux/kernel/locking/ |
| H A D | lockdep_proc.c | 157 [LOCK_CHAIN_SOFTIRQ_CONTEXT] = "softirq", in lc_show() 159 LOCK_CHAIN_HARDIRQ_CONTEXT] = "hardirq|softirq", in lc_show() 224 seq_printf(m, " softirq on events: %11llu\n", si1); in lockdep_stats_debug_show() 225 seq_printf(m, " softirq off events: %11llu\n", si2); in lockdep_stats_debug_show() 226 seq_printf(m, " redundant softirq ons: %11llu\n", sr1); in lockdep_stats_debug_show() 227 seq_printf(m, " redundant softirq offs: %11llu\n", sr2); in lockdep_stats_debug_show() 321 seq_printf(m, " in-softirq chains: %11u\n", in lockdep_stats_show() 343 seq_printf(m, " softirq-safe locks: %11lu\n", in lockdep_stats_show() 345 seq_printf(m, " softirq-unsafe locks: %11lu\n", in lockdep_stats_show() 356 seq_printf(m, " softirq-read-safe locks: %11lu\n", in lockdep_stats_show() [all …]
|
| /linux/arch/sh/kernel/ |
| H A D | irq.c | 93 * Copy the softirq bits in preempt_count so that the in handle_one_irq() 94 * softirq checks work in the hardirq context. in handle_one_irq() 118 * allocate per-cpu stacks for hardirq and for softirq processing 164 /* build the stack frame on the softirq stack */ in do_softirq_own_stack() 170 /* switch to the softirq stack */ in do_softirq_own_stack()
|
| /linux/tools/testing/selftests/net/bench/page_pool/ |
| H A D | bench_page_pool_simple.c | 108 /* GFP_ATOMIC needed when under run softirq */ in pp_fill_ptr_ring() 227 /* This test cannot activate correct code path, due to no-softirq ctx */ in run_benchmark_tests() 229 time_bench_loop(nr_loops, 0, "no-softirq-page_pool01", NULL, in run_benchmark_tests() 232 time_bench_loop(nr_loops, 0, "no-softirq-page_pool02", NULL, in run_benchmark_tests() 235 time_bench_loop(nr_loops, 0, "no-softirq-page_pool03", NULL, in run_benchmark_tests()
|
| /linux/lib/ |
| H A D | irq_poll.c | 25 * raise of the blk iopoll softirq. 91 * If softirq window is exhausted then punt. in irq_poll_softirq() 192 * set the POLL softirq bit. The local_bh_disable()/enable() pair in irq_poll_cpu_dead() 194 * reach idle with the POLL softirq pending. in irq_poll_cpu_dead()
|
| /linux/arch/s390/kernel/ |
| H A D | vtime.c | 120 u64 timer, clock, user, guest, system, hardirq, softirq; in do_account_vtime() local 153 softirq = update_tsk_timer(&tsk->thread.softirq_timer, in do_account_vtime() 156 clock - user - guest - system - hardirq - softirq; in do_account_vtime() 173 if (softirq) in do_account_vtime() 174 account_system_index_scaled(tsk, softirq, CPUTIME_SOFTIRQ); in do_account_vtime() 176 return virt_timer_forward(user + guest + system + hardirq + softirq); in do_account_vtime()
|
| /linux/Documentation/timers/ |
| H A D | highres.rst | 176 red-black tree to a separate double linked list and invokes the softirq 183 context to the softirq and to the task which is woken up by the expired 199 The softirq for running the hrtimer queues and executing the callbacks has been 200 separated from the tick bound timer softirq to allow accurate delivery of high 202 timers. The execution of this softirq can still be delayed by other softirqs,
|
| /linux/Documentation/translations/it_IT/locking/ |
| H A D | lockdep-design.rst | 53 - softirq 84 ||| \-> softirq disabilitati e fuori da un contesto di softirq 85 || \--> acquisito in un contesto di softirq 117 Una classe softirq insicura è automaticamente insicura anche per hardirq. I 122 <softirq-safe> o <softirq-unsafe> 157 <softirq-safe> -> <softirq-unsafe> 306 e differenti scenari con hardirq e softirq e annidamenti vari (nella pratica,
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_scheduler.h | 84 local_bh_disable(); /* prevent local softirq and lock recursion */ in i915_sched_engine_active_lock_bh() 92 local_bh_enable(); /* restore softirq, and kick ksoftirqd! */ in i915_sched_engine_active_unlock_bh()
|
| /linux/tools/perf/scripts/python/ |
| H A D | netdev-times.py | 26 # which raise NET_RX softirq 27 net_rx_dic = {}; # key is cpu and value include time of NET_RX softirq-entry 87 # a NET_RX softirq 323 # if an irq doesn't include NET_RX softirq, drop. 360 # merge information related to a NET_RX softirq
|