Home
last modified time | relevance | path

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

/kernel/sched/
Dstats.h33 #define schedstat_inc(var) do { if (schedstat_enabled()) { var++; } } while (0) argument
34 #define schedstat_add(var, amt) do { if (schedstat_enabled()) { var += (amt); } } while (0) argument
35 #define schedstat_set(var, val) do { if (schedstat_enabled()) { var = (val); } } while (0) argument
36 #define schedstat_val(var) (var) argument
37 #define schedstat_val_or_zero(var) ((schedstat_enabled()) ? (var) : 0) argument
50 #define schedstat_inc(var) do { } while (0) argument
51 #define schedstat_add(var, amt) do { } while (0) argument
52 #define schedstat_set(var, val) do { } while (0) argument
53 #define schedstat_val(var) 0 argument
54 #define schedstat_val_or_zero(var) 0 argument
Dfair.c2959 typeof(*ptr) res, var = READ_ONCE(*ptr); \
2961 res = var + val; \
2963 if (val < 0 && res > var) \
3245 typeof(*ptr) res, var = READ_ONCE(*ptr); \
3246 res = var - val; \
3247 if (res > var) \
/kernel/trace/
Dtrace.h296 #define FTRACE_CMP_TYPE(var, type) \ argument
297 __builtin_types_compatible_p(typeof(var), type *)
300 #define IF_ASSIGN(var, entry, etype, id) \ argument
301 if (FTRACE_CMP_TYPE(var, etype)) { \
302 var = (typeof(var))(entry); \
323 #define trace_assign_type(var, ent) \ argument
325 IF_ASSIGN(var, ent, struct ftrace_entry, TRACE_FN); \
326 IF_ASSIGN(var, ent, struct ctx_switch_entry, 0); \
327 IF_ASSIGN(var, ent, struct stack_entry, TRACE_STACK); \
328 IF_ASSIGN(var, ent, struct userstack_entry, TRACE_USER_STACK);\
[all …]
/kernel/locking/
Dpercpu-rwsem.c110 #define per_cpu_sum(var) \ argument
112 typeof(var) __sum = 0; \
116 __sum += per_cpu(var, cpu); \