/kernel/bpf/ |
D | tnum.c | 37 struct tnum tnum_lshift(struct tnum a, u8 shift) in tnum_lshift() argument 39 return TNUM(a.value << shift, a.mask << shift); in tnum_lshift() 42 struct tnum tnum_rshift(struct tnum a, u8 shift) in tnum_rshift() argument 44 return TNUM(a.value >> shift, a.mask >> shift); in tnum_rshift() 47 struct tnum tnum_arshift(struct tnum a, u8 min_shift, u8 insn_bitness) in tnum_arshift() argument 55 return TNUM((u32)(((s32)a.value) >> min_shift), in tnum_arshift() 56 (u32)(((s32)a.mask) >> min_shift)); in tnum_arshift() 58 return TNUM((s64)a.value >> min_shift, in tnum_arshift() 59 (s64)a.mask >> min_shift); in tnum_arshift() 62 struct tnum tnum_add(struct tnum a, struct tnum b) in tnum_add() argument [all …]
|
/kernel/trace/ |
D | tracing_map.c | 129 char *a = val_a; in tracing_map_cmp_string() local 132 return strcmp(a, b); in tracing_map_cmp_string() 142 u64 a = atomic64_read((atomic64_t *)val_a); in tracing_map_cmp_atomic64() local 145 return (a > b) ? 1 : ((a < b) ? -1 : 0); in tracing_map_cmp_atomic64() 151 type a = (type)(*(u64 *)val_a); \ 154 return (a > b) ? 1 : ((a < b) ? -1 : 0); \ 286 void tracing_map_array_clear(struct tracing_map_array *a) in tracing_map_array_clear() argument 290 if (!a->pages) in tracing_map_array_clear() 293 for (i = 0; i < a->n_pages; i++) in tracing_map_array_clear() 294 memset(a->pages[i], 0, PAGE_SIZE); in tracing_map_array_clear() [all …]
|
D | Kconfig | 89 Adds a very slight overhead to tracing when enabled. 151 by using a compiler feature to insert a small, 5-byte No-Operation 153 sequence is then dynamically patched into a tracer call when 165 Enable the kernel to trace a function at both its return 168 draw a call graph for each thread with some information like 170 address on the current task structure into a stack of calls. 202 The default measurement method is a maximum search, which is 227 The default measurement method is a maximum search, which is 253 spinning in a loop looking for interruptions caused by 254 something other than the kernel. For example, if a [all …]
|
D | trace_events_filter_test.h | 12 TP_PROTO(int a, int b, int c, int d, int e, int f, int g, int h), 14 TP_ARGS(a, b, c, d, e, f, g, h), 17 __field(int, a) 28 __entry->a = a; 39 __entry->a, __entry->b, __entry->c, __entry->d,
|
D | trace_probe_tmpl.h | 224 struct probe_arg *a = args + i; in print_probe_args() local 226 trace_seq_printf(s, " %s=", a->name); in print_probe_args() 227 if (likely(!a->count)) { in print_probe_args() 228 if (!a->type->print(s, data + a->offset, field)) in print_probe_args() 233 p = data + a->offset; in print_probe_args() 234 for (j = 0; j < a->count; j++) { in print_probe_args() 235 if (!a->type->print(s, p, field)) in print_probe_args() 237 trace_seq_putc(s, j == a->count - 1 ? '}' : ','); in print_probe_args() 238 p += a->type->size; in print_probe_args()
|
D | trace_branch.c | 337 struct ftrace_branch_data *a = p1; in annotated_branch_stat_cmp() local 342 percent_a = get_incorrect_percent(a); in annotated_branch_stat_cmp() 350 if (a->incorrect < b->incorrect) in annotated_branch_stat_cmp() 352 if (a->incorrect > b->incorrect) in annotated_branch_stat_cmp() 360 if (a->correct > b->correct) in annotated_branch_stat_cmp() 362 if (a->correct < b->correct) in annotated_branch_stat_cmp()
|
D | trace_hwlat.c | 136 #define time_sub(a, b) ((a) - (b)) argument 137 #define init_time(a, b) (a = b) argument 138 #define time_u64(a) a argument
|
D | trace_probe.c | 17 #define C(a, b) b argument 1094 int trace_probe_compare_arg_type(struct trace_probe *a, struct trace_probe *b) in trace_probe_compare_arg_type() argument 1099 if (a->nr_args < b->nr_args) in trace_probe_compare_arg_type() 1100 return a->nr_args + 1; in trace_probe_compare_arg_type() 1101 if (a->nr_args > b->nr_args) in trace_probe_compare_arg_type() 1104 for (i = 0; i < a->nr_args; i++) { in trace_probe_compare_arg_type() 1106 ((a->args[i].type != b->args[i].type) || in trace_probe_compare_arg_type() 1107 (a->args[i].count != b->args[i].count) || in trace_probe_compare_arg_type() 1108 strcmp(a->args[i].name, b->args[i].name))) in trace_probe_compare_arg_type()
|
/kernel/ |
D | Kconfig.preempt | 15 Select this option if you are building a kernel for a server or 30 This allows reaction to interactive events by allowing a 32 is in kernel mode executing a system call. This allows 36 Select this if you are building a kernel for a desktop system. 45 all kernel code (that is not executing in a critical section) 47 permitting a low priority process to be preempted involuntarily 48 even if it is in kernel mode executing a system call and would 49 otherwise not be about to reach a natural preemption point. 52 and a slight runtime overhead to kernel code. 54 Select this if you are building a kernel for a desktop or [all …]
|
D | Kconfig.hz | 13 a fast response for user interaction and that may experience bus 14 contention and cacheline bounces as a result of timer interrupts. 23 100 Hz is a typical choice for servers, SMP and NUMA systems 30 250 Hz is a good compromise choice allowing server performance 38 300 Hz is a good compromise choice allowing server performance
|
D | auditfilter.c | 689 static int audit_compare_rule(struct audit_krule *a, struct audit_krule *b) in audit_compare_rule() argument 693 if (a->flags != b->flags || in audit_compare_rule() 694 a->pflags != b->pflags || in audit_compare_rule() 695 a->listnr != b->listnr || in audit_compare_rule() 696 a->action != b->action || in audit_compare_rule() 697 a->field_count != b->field_count) in audit_compare_rule() 700 for (i = 0; i < a->field_count; i++) { in audit_compare_rule() 701 if (a->fields[i].type != b->fields[i].type || in audit_compare_rule() 702 a->fields[i].op != b->fields[i].op) in audit_compare_rule() 705 switch(a->fields[i].type) { in audit_compare_rule() [all …]
|
D | softirq.c | 501 static void tasklet_action_common(struct softirq_action *a, in tasklet_action_common() argument 539 static __latent_entropy void tasklet_action(struct softirq_action *a) in tasklet_action() argument 541 tasklet_action_common(a, this_cpu_ptr(&tasklet_vec), TASKLET_SOFTIRQ); in tasklet_action() 544 static __latent_entropy void tasklet_hi_action(struct softirq_action *a) in tasklet_hi_action() argument 546 tasklet_action_common(a, this_cpu_ptr(&tasklet_hi_vec), HI_SOFTIRQ); in tasklet_hi_action()
|
D | cred.c | 613 int cred_fscmp(const struct cred *a, const struct cred *b) in cred_fscmp() argument 618 if (a == b) in cred_fscmp() 620 if (uid_lt(a->fsuid, b->fsuid)) in cred_fscmp() 622 if (uid_gt(a->fsuid, b->fsuid)) in cred_fscmp() 625 if (gid_lt(a->fsgid, b->fsgid)) in cred_fscmp() 627 if (gid_gt(a->fsgid, b->fsgid)) in cred_fscmp() 630 ga = a->group_info; in cred_fscmp()
|
D | groups.c | 83 kgid_t a = *(kgid_t *)_a; in gid_cmp() local 86 return gid_gt(a, b) - gid_lt(a, b); in gid_cmp()
|
D | jump_label.c | 35 static int jump_label_cmp(const void *a, const void *b) in jump_label_cmp() argument 37 const struct jump_entry *jea = a; in jump_label_cmp() 63 static void jump_label_swap(void *a, void *b, int size) in jump_label_swap() argument 65 long delta = (unsigned long)a - (unsigned long)b; in jump_label_swap() 66 struct jump_entry *jea = a; in jump_label_swap()
|
/kernel/power/ |
D | Kconfig | 68 It also works with swap files to a limited extent (for details see 76 will get corrupted in a nasty way. 78 For more information take a look at <file:Documentation/power/swsusp.rst>. 89 to-disk implementation will look for a suspended disk image. 92 It should be a valid swap partition (at least for now) that is turned 101 Note there is currently not a way to specify which device to save the 123 If an arch can suspend (for suspend, hibernate, kexec, etc) on a 132 Allow the kernel to trigger a system transition into a global sleep 141 objects with the help of a sysfs-based interface. 158 (low power) states, for example after a specified period of inactivity [all …]
|
/kernel/rcu/ |
D | Kconfig.debug | 18 need to be converted to pass a lockdep expression. To prevent 34 This option provides a kernel module that runs performance 40 Say M if you want the RCU performance tests to build as a module. 51 This option provides a kernel module that runs torture tests 57 Say M if you want the RCU torture tests to build as a module. 66 If a given RCU grace period extends more than the specified 67 number of seconds, a CPU stall warning is printed. If the
|
D | Kconfig | 76 This option enables a task-based RCU implementation that uses 108 Select a specific number if testing RCU itself. 131 fanout to a large number will likely cause problematic 135 Select a specific number if testing RCU itself. 182 a given grace period before priority-boosting preempted RCU 201 such CPU, a kthread ("rcuox/N") will be created to invoke
|
/kernel/time/ |
D | timeconst.bc | 5 define gcd(a,b) { 9 b = a % b; 10 a = t; 12 return a; 20 /* Adjustment factor when a ceiling value is used. Use as: 29 /* Compute the appropriate mul/adj values as well as a shift count, 31 a shift value will be correct in the signed integer range and off
|
D | timeconv.c | 44 static long math_div(long a, long b) in math_div() argument 46 return a / b - (a % b < 0); in math_div()
|
D | Kconfig | 37 # Architecture can handle broadcast in a driver-agnostic way 76 This option keeps the tick running periodically at a constant 84 This option enables a tickless idle system: timer interrupts 106 the CPU is running tasks. Typically this requires running a single 155 We keep it around for a little while to enforce backward
|
/kernel/dma/ |
D | Kconfig | 115 Allocator as a percentage of the total memory in the system. 144 size. This works well for buffers up to a few hundreds kilobytes, but 145 for larger buffers it just a memory waste. With this parameter you can 148 expressed as a power of two multiplied by the PAGE_SIZE. 166 This also attempts to catch cases where a page owned by DMA is 167 accessed by the cpu in a way that could cause data corruption. For 171 This option causes a performance degradation. Use only if you want to 187 preparing literal scatter-gather descriptors, where there is a risk of
|
/kernel/gcov/ |
D | Kconfig | 17 directories, add a line similar to the following to the respective 20 For a single file (e.g. main.o): 50 Note that a kernel compiled with profiling flags will be significantly 62 In such a case, change this option to adjust the format used in the
|
/kernel/livepatch/ |
D | Kconfig | 17 This option has no runtime impact until a kernel "patch" 19 a patch, causing calls to patched functions to be redirected
|
/kernel/irq/ |
D | Kconfig | 29 # Facility to allocate a hardware interrupt. This is legacy support 119 to define a high CONFIG_NR_CPUS value but still want to have 123 out the interrupt descriptors in a more NUMA-friendly way. )
|