Home
last modified time | relevance | path

Searched refs:var (Results 1 – 10 of 10) sorted by relevance

/kernel/sched/
Dstats.h34 #define __schedstat_inc(var) do { var++; } while (0) argument
35 #define schedstat_inc(var) do { if (schedstat_enabled()) { var++; } } while (0) argument
36 #define __schedstat_add(var, amt) do { var += (amt); } while (0) argument
37 #define schedstat_add(var, amt) do { if (schedstat_enabled()) { var += (amt); } } while (0) argument
38 #define __schedstat_set(var, val) do { var = (val); } while (0) argument
39 #define schedstat_set(var, val) do { if (schedstat_enabled()) { var = (val); } } while (0) argument
40 #define schedstat_val(var) (var) argument
41 #define schedstat_val_or_zero(var) ((schedstat_enabled()) ? (var) : 0) argument
49 # define __schedstat_inc(var) do { } while (0) argument
50 # define schedstat_inc(var) do { } while (0) argument
[all …]
Dwait_bit.c174 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()
Dfair.c3047 typeof(*ptr) res, var = READ_ONCE(*ptr); \
3049 res = var + val; \
3051 if (val < 0 && res > var) \
3067 typeof(*ptr) res, var = READ_ONCE(*ptr); \
3068 res = var - val; \
3069 if (res > var) \
/kernel/trace/
Dtrace_events_hist.c139 struct hist_var var; member
492 struct hist_field *var; member
846 if (hist_field && hist_field->var.idx == var_idx && in check_field_for_var_ref()
847 hist_field->var.hist_data == var_data) in check_field_for_var_ref()
935 if (find_any_var_ref(hist_data, field->var.idx)) { in check_var_refs()
1052 strcmp(hist_field->var.name, var_name) == 0) { in find_var_field()
1228 var_idx = hist_field->var.idx; in resolve_var_refs()
1229 var_data = hist_field->var.hist_data; in resolve_var_refs()
1837 kfree(hist_field->var.name); in __destroy_hist_field()
1983 hist_field->var.name = kstrdup(var_name, GFP_KERNEL); in create_hist_field()
[all …]
Dtrace.h429 #define FTRACE_CMP_TYPE(var, type) \ argument
430 __builtin_types_compatible_p(typeof(var), type *)
433 #define IF_ASSIGN(var, entry, etype, id) \ argument
434 if (FTRACE_CMP_TYPE(var, etype)) { \
435 var = (typeof(var))(entry); \
456 #define trace_assign_type(var, ent) \ argument
458 IF_ASSIGN(var, ent, struct ftrace_entry, TRACE_FN); \
459 IF_ASSIGN(var, ent, struct ctx_switch_entry, 0); \
460 IF_ASSIGN(var, ent, struct stack_entry, TRACE_STACK); \
461 IF_ASSIGN(var, ent, struct userstack_entry, TRACE_USER_STACK);\
[all …]
/kernel/locking/
Dpercpu-rwsem.c198 #define per_cpu_sum(var) \ argument
200 typeof(var) __sum = 0; \
204 __sum += per_cpu(var, cpu); \
/kernel/
Dsmp.c207 #define cfd_seq_store(var, src, dst, type) \ argument
210 var = cfd_seq_inc(src, dst, type); \
432 #define cfd_seq_store(var, src, dst, type) argument
/kernel/bpf/
Dbtf.c3095 const struct btf_type *var = btf_type_by_id(btf, vsi->type); in btf_find_datasec_var() local
3096 const struct btf_type *var_type = btf_type_by_id(btf, var->type); in btf_find_datasec_var()
3528 const struct btf_var *var; in btf_var_check_meta() local
3529 u32 meta_needed = sizeof(*var); in btf_var_check_meta()
3560 var = btf_type_var(t); in btf_var_check_meta()
3561 if (var->linkage != BTF_VAR_STATIC && in btf_var_check_meta()
3562 var->linkage != BTF_VAR_GLOBAL_ALLOCATED) { in btf_var_check_meta()
3574 const struct btf_var *var = btf_type_var(t); in btf_var_log() local
3576 btf_verifier_log(env, "type_id=%u linkage=%u", t->type, var->linkage); in btf_var_log()
3713 const struct btf_type *var; in btf_datasec_show() local
[all …]
/kernel/debug/kdb/
Dkdb_main.c355 static int kdb_setenv(const char *var, const char *val) in kdb_setenv() argument
361 varlen = strlen(var); in kdb_setenv()
367 sprintf(ep, "%s=%s", var, val); in kdb_setenv()
371 && ((strncmp(__env[i], var, varlen) == 0) in kdb_setenv()
/kernel/events/
Dcore.c5317 void *var = &child->ctx->refcount; in perf_event_release_kernel() local
5327 wake_up_var(var); in perf_event_release_kernel()