/kernel/sched/ |
D | stats.h | 38 #define __schedstat_inc(var) do { var++; } while (0) argument 39 #define schedstat_inc(var) do { if (schedstat_enabled()) { var++; } } while (0) argument 40 #define __schedstat_add(var, amt) do { var += (amt); } while (0) argument 41 #define schedstat_add(var, amt) do { if (schedstat_enabled()) { var += (amt); } } while (0) argument 42 #define __schedstat_set(var, val) do { var = (val); } while (0) argument 43 #define schedstat_set(var, val) do { if (schedstat_enabled()) { var = (val); } } while (0) argument 44 #define schedstat_val(var) (var) argument 45 #define schedstat_val_or_zero(var) ((schedstat_enabled()) ? (var) : 0) argument 76 # define __schedstat_inc(var) do { } while (0) argument 77 # define schedstat_inc(var) do { } while (0) argument [all …]
|
D | wait_bit.c | 174 void init_wait_var_entry(struct wait_bit_queue_entry *wbq_entry, void *var, int flags) in init_wait_var_entry() argument 178 .flags = (var), in init_wait_var_entry() 191 void wake_up_var(void *var) in wake_up_var() argument 193 __wake_up_bit(__var_waitqueue(var), var, -1); in wake_up_var()
|
D | sched.h | 528 # define u64_u32_load_copy(var, copy) var argument 529 # define u64_u32_store_copy(var, copy, val) (var = val) argument 531 # define u64_u32_load_copy(var, copy) \ argument 541 __val = var; \ 545 # define u64_u32_store_copy(var, copy, val) \ argument 548 var = __val; \ 557 # define u64_u32_load(var) u64_u32_load_copy(var, var##_copy) argument 558 # define u64_u32_store(var, val) u64_u32_store_copy(var, var##_copy, val) argument
|
D | fair.c | 3256 typeof(*ptr) res, var = READ_ONCE(*ptr); \ 3258 res = var + val; \ 3260 if (val < 0 && res > var) \ 3276 typeof(*ptr) res, var = READ_ONCE(*ptr); \ 3277 res = var - val; \ 3278 if (res > var) \
|
/kernel/trace/ |
D | trace_events_hist.c | 171 struct hist_var var; member 537 struct hist_field *var; member 910 if (hist_field && hist_field->var.idx == var_idx && in check_field_for_var_ref() 911 hist_field->var.hist_data == var_data) in check_field_for_var_ref() 999 if (find_any_var_ref(hist_data, field->var.idx)) { in check_var_refs() 1116 strcmp(hist_field->var.name, var_name) == 0) { in find_var_field() 1292 var_idx = hist_field->var.idx; in resolve_var_refs() 1293 var_data = hist_field->var.hist_data; in resolve_var_refs() 1899 kfree(hist_field->var.name); in __destroy_hist_field() 2047 hist_field->var.name = kstrdup(var_name, GFP_KERNEL); in create_hist_field() [all …]
|
D | trace.h | 428 #define FTRACE_CMP_TYPE(var, type) \ argument 429 __builtin_types_compatible_p(typeof(var), type *) 432 #define IF_ASSIGN(var, entry, etype, id) \ argument 433 if (FTRACE_CMP_TYPE(var, etype)) { \ 434 var = (typeof(var))(entry); \ 455 #define trace_assign_type(var, ent) \ argument 457 IF_ASSIGN(var, ent, struct ftrace_entry, TRACE_FN); \ 458 IF_ASSIGN(var, ent, struct ctx_switch_entry, 0); \ 459 IF_ASSIGN(var, ent, struct stack_entry, TRACE_STACK); \ 460 IF_ASSIGN(var, ent, struct userstack_entry, TRACE_USER_STACK);\ [all …]
|
/kernel/locking/ |
D | percpu-rwsem.c | 215 #define per_cpu_sum(var) \ argument 217 typeof(var) __sum = 0; \ 221 __sum += per_cpu(var, cpu); \
|
/kernel/ |
D | smp.c | 211 #define cfd_seq_store(var, src, dst, type) \ argument 214 var = cfd_seq_inc(src, dst, type); \ 445 #define cfd_seq_store(var, src, dst, type) argument
|
/kernel/debug/kdb/ |
D | kdb_main.c | 354 static int kdb_setenv(const char *var, const char *val) in kdb_setenv() argument 360 varlen = strlen(var); in kdb_setenv() 366 sprintf(ep, "%s=%s", var, val); in kdb_setenv() 370 && ((strncmp(__env[i], var, varlen) == 0) in kdb_setenv()
|
/kernel/bpf/ |
D | btf.c | 3330 const struct btf_type *var = btf_type_by_id(btf, vsi->type); in btf_find_datasec_var() local 3331 const struct btf_type *var_type = btf_type_by_id(btf, var->type); in btf_find_datasec_var() 4036 const struct btf_var *var; in btf_var_check_meta() local 4037 u32 meta_needed = sizeof(*var); in btf_var_check_meta() 4068 var = btf_type_var(t); in btf_var_check_meta() 4069 if (var->linkage != BTF_VAR_STATIC && in btf_var_check_meta() 4070 var->linkage != BTF_VAR_GLOBAL_ALLOCATED) { in btf_var_check_meta() 4082 const struct btf_var *var = btf_type_var(t); in btf_var_log() local 4084 btf_verifier_log(env, "type_id=%u linkage=%u", t->type, var->linkage); in btf_var_log() 4221 const struct btf_type *var; in btf_datasec_show() local [all …]
|
/kernel/events/ |
D | core.c | 5236 void *var = &child->ctx->refcount; in perf_event_release_kernel() local 5246 wake_up_var(var); in perf_event_release_kernel()
|