/tools/testing/radix-tree/linux/ |
D | percpu.h | 5 #define __get_cpu_var(var) var argument 6 #define this_cpu_ptr(var) var argument 7 #define this_cpu_read(var) var argument 8 #define this_cpu_xchg(var, val) uatomic_xchg(&var, val) argument 9 #define this_cpu_cmpxchg(var, old, new) uatomic_cmpxchg(&var, old, new) argument 11 #define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu)) argument
|
/tools/arch/x86/include/asm/ |
D | rmwcc.h | 7 #define __GEN_RMWcc(fullop, var, cc, ...) \ argument 10 : : "m" (var), ## __VA_ARGS__ \ 17 #define GEN_UNARY_RMWcc(op, var, arg0, cc) \ argument 18 __GEN_RMWcc(op " " arg0, var, cc) 20 #define GEN_BINARY_RMWcc(op, var, vcon, val, arg0, cc) \ argument 21 __GEN_RMWcc(op " %1, " arg0, var, cc, vcon (val)) 25 #define __GEN_RMWcc(fullop, var, cc, ...) \ argument 29 : "+m" (var), "=qm" (c) \ 34 #define GEN_UNARY_RMWcc(op, var, arg0, cc) \ argument 35 __GEN_RMWcc(op " " arg0, var, cc) [all …]
|
/tools/perf/util/ |
D | setup.py | 16 for var in ('CFLAGS', 'OPT'): 17 vars[var] = sub("-specs=[^ ]+", "", vars[var]) 19 vars[var] = sub("-mcet", "", vars[var]) 21 vars[var] = sub("-fcf-protection", "", vars[var]) 23 vars[var] = sub("-fstack-clash-protection", "", vars[var]) 25 vars[var] = sub("-fstack-protector-strong", "", vars[var]) 27 vars[var] = sub("-fno-semantic-interposition", "", vars[var]) 29 vars[var] = sub("-ffat-lto-objects", "", vars[var])
|
D | config.c | 236 static char var[MAXNAME]; in perf_parse_file() local 273 baselen = get_base_var(var); in perf_parse_file() 276 var[baselen++] = '.'; in perf_parse_file() 277 var[baselen] = 0; in perf_parse_file() 282 var[baselen] = tolower(c); in perf_parse_file() 289 if (get_value(fn, data, var, baselen+1) < 0) { in perf_parse_file() 420 static int perf_buildid_config(const char *var, const char *value) in perf_buildid_config() argument 423 if (!strcmp(var, "buildid.dir")) { in perf_buildid_config() 424 const char *dir = perf_config_dirname(var, value); in perf_buildid_config() 437 static int perf_default_core_config(const char *var __maybe_unused, in perf_default_core_config() [all …]
|
D | color_config.c | 12 int perf_config_colorbool(const char *var, const char *value, int stdout_is_tty) in perf_config_colorbool() argument 24 if (!perf_config_bool(var, value)) in perf_config_colorbool() 39 int perf_color_default_config(const char *var, const char *value, in perf_color_default_config() argument 42 if (!strcmp(var, "color.ui")) { in perf_color_default_config() 43 perf_use_color_default = perf_config_colorbool(var, value, -1); in perf_color_default_config()
|
D | string2.h | 24 char *asprintf_expr_inout_ints(const char *var, bool in, size_t nints, int *ints); 26 static inline char *asprintf_expr_in_ints(const char *var, size_t nints, int *ints) in asprintf_expr_in_ints() argument 28 return asprintf_expr_inout_ints(var, true, nints, ints); in asprintf_expr_in_ints() 31 static inline char *asprintf_expr_not_in_ints(const char *var, size_t nints, int *ints) in asprintf_expr_not_in_ints() argument 33 return asprintf_expr_inout_ints(var, false, nints, ints); in asprintf_expr_not_in_ints()
|
D | llvm-utils.c | 43 int perf_llvm_config(const char *var, const char *value) in perf_llvm_config() argument 45 if (!strstarts(var, "llvm.")) in perf_llvm_config() 47 var += sizeof("llvm.") - 1; in perf_llvm_config() 49 if (!strcmp(var, "clang-path")) in perf_llvm_config() 51 else if (!strcmp(var, "clang-bpf-cmd-template")) in perf_llvm_config() 53 else if (!strcmp(var, "clang-opt")) in perf_llvm_config() 55 else if (!strcmp(var, "kbuild-dir")) in perf_llvm_config() 57 else if (!strcmp(var, "kbuild-opts")) in perf_llvm_config() 59 else if (!strcmp(var, "dump-obj")) in perf_llvm_config() 60 llvm_param.dump_obj = !!perf_config_bool(var, value); in perf_llvm_config() [all …]
|
D | debug.h | 50 #define pr_time_N(n, var, t, fmt, ...) \ argument 51 eprintf_time(n, var, t, fmt, ##__VA_ARGS__) 75 int eprintf(int level, int var, const char *fmt, ...) __printf(3, 4); 76 int eprintf_time(int level, int var, u64 t, const char *fmt, ...) __printf(4, 5); 77 int veprintf(int level, int var, const char *fmt, va_list args);
|
D | debug.c | 66 int veprintf(int level, int var, const char *fmt, va_list args) in veprintf() argument 70 if (var >= level) { in veprintf() 82 int eprintf(int level, int var, const char *fmt, ...) in eprintf() argument 88 ret = veprintf(level, var, fmt, args); in eprintf() 109 int eprintf_time(int level, int var, u64 t, const char *fmt, ...) in eprintf_time() argument 114 if (var >= level) { in eprintf_time()
|
/tools/virtio/linux/ |
D | compiler.h | 5 #define WRITE_ONCE(var, val) \ argument 6 (*((volatile typeof(val) *)(&(var))) = (val)) 8 #define READ_ONCE(var) (*((volatile typeof(var) *)(&(var)))) argument
|
/tools/perf/ |
D | builtin-config.c | 72 static int show_spec_config(struct perf_config_set *set, const char *var) in show_spec_config() argument 81 if (!strstarts(var, section->name)) in show_spec_config() 85 const char *name = var + strlen(section->name) + 1; in show_spec_config() 91 printf("%s=%s\n", var, value); in show_spec_config() 121 static int parse_config_arg(char *arg, char **var, char **value) in parse_config_arg() argument 140 *var = arg; in parse_config_arg() 146 *var = strsep(&arg, "="); in parse_config_arg() 147 if (*var[0] == '\0') { in parse_config_arg() 211 char *var, *value; in cmd_config() local 219 if (parse_config_arg(arg, &var, &value) < 0) { in cmd_config() [all …]
|
D | builtin-help.c | 219 static void unsupported_man_viewer(const char *name, const char *var) in unsupported_man_viewer() argument 222 "Please consider using 'man.<tool>.%s' instead.", name, var); in unsupported_man_viewer() 249 static int add_man_viewer_info(const char *var, const char *value) in add_man_viewer_info() argument 251 const char *name = var + 4; in add_man_viewer_info() 261 return config_error_nonbool(var); in add_man_viewer_info() 266 return config_error_nonbool(var); in add_man_viewer_info() 274 static int perf_help_config(const char *var, const char *value, void *cb) in perf_help_config() argument 278 if (!strcmp(var, "help.format")) { in perf_help_config() 280 return config_error_nonbool(var); in perf_help_config() 286 if (!strcmp(var, "man.viewer")) { in perf_help_config() [all …]
|
D | perf.c | 99 static int pager_command_config(const char *var, const char *value, void *data) in pager_command_config() argument 102 if (strstarts(var, "pager.") && !strcmp(var + 6, c->cmd)) in pager_command_config() 103 c->val = perf_config_bool(var, value); in pager_command_config() 118 static int browser_command_config(const char *var, const char *value, void *data) in browser_command_config() argument 121 if (strstarts(var, "tui.") && !strcmp(var + 4, c->cmd)) in browser_command_config() 122 c->val = perf_config_bool(var, value); in browser_command_config() 123 if (strstarts(var, "gtk.") && !strcmp(var + 4, c->cmd)) in browser_command_config() 124 c->val = perf_config_bool(var, value) ? 2 : 0; in browser_command_config()
|
/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-log.h | 70 #define intel_pt_log_var(var, fmt) intel_pt_log("%s: " #var " " fmt "\n", __func__, var) argument 72 #define intel_pt_log_x32(var) intel_pt_log_var(var, "%#x") argument 73 #define intel_pt_log_x64(var) intel_pt_log_var(var, "%#" PRIx64) argument
|
/tools/virtio/asm/ |
D | barrier.h | 9 #define virt_store_mb(var, value) do { \ argument 10 typeof(var) virt_store_mb_value = (value); \ 11 __atomic_exchange(&(var), &virt_store_mb_value, &virt_store_mb_value, \ 24 #define virt_store_mb(var, value) do { WRITE_ONCE(var, value); dmb(ish); } while (0) argument
|
/tools/testing/selftests/bpf/progs/ |
D | profiler1.c | 3 #define barrier_var(var) asm volatile("" : "=r"(var) : "0"(var)) argument
|
D | test_map_lock.c | 11 int var[VAR_NUM]; member 23 int var[VAR_NUM]; member 47 val->var[i] = rnd; in bpf_map_lock_test() 56 q->var[i] = rnd; in bpf_map_lock_test()
|
D | test_global_func1.c | 12 int f0(int var, struct __sk_buff *skb) in f0() argument 34 int f3(int val, struct __sk_buff *skb, int var) in f3() argument 38 return skb->ifindex * val * var; in f3()
|
D | freplace_attach_probe.c | 13 int var[VAR_NUM]; member 34 val->var[0] = 99; in new_handle_kprobe()
|
/tools/testing/selftests/powerpc/include/ |
D | basic_asm.h | 40 #define STACK_FRAME_PARAM(var) __STACK_FRAME_PARAM(var) argument 43 #define STACK_FRAME_LOCAL(num_params, var) \ argument 44 __STACK_FRAME_LOCAL(num_params, var)
|
/tools/testing/selftests/rseq/ |
D | rseq-ppc.h | 161 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \ argument 162 RSEQ_LOAD_LONG(var) "%%r17, %[" __rseq_str(var) "]\n\t" \ 166 #define RSEQ_ASM_OP_CMPNE(var, expectnot, label) \ argument 167 RSEQ_LOAD_LONG(var) "%%r17, %[" __rseq_str(var) "]\n\t" \ 171 #define RSEQ_ASM_OP_STORE(value, var) \ argument 172 RSEQ_STORE_LONG(var) "%[" __rseq_str(value) "], %[" __rseq_str(var) "]\n\t" 175 #define RSEQ_ASM_OP_R_LOAD(var) \ argument 176 RSEQ_LOAD_LONG(var) "%%r17, %[" __rseq_str(var) "]\n\t" 179 #define RSEQ_ASM_OP_R_STORE(var) \ argument 180 RSEQ_STORE_LONG(var) "%%r17, %[" __rseq_str(var) "]\n\t" [all …]
|
D | rseq-arm64.h | 142 #define RSEQ_ASM_OP_STORE(value, var) \ argument 143 " str %[" __rseq_str(value) "], %[" __rseq_str(var) "]\n" 145 #define RSEQ_ASM_OP_STORE_RELEASE(value, var) \ argument 146 " stlr %[" __rseq_str(value) "], %[" __rseq_str(var) "]\n" 148 #define RSEQ_ASM_OP_FINAL_STORE(value, var, post_commit_label) \ argument 149 RSEQ_ASM_OP_STORE(value, var) \ 152 #define RSEQ_ASM_OP_FINAL_STORE_RELEASE(value, var, post_commit_label) \ argument 153 RSEQ_ASM_OP_STORE_RELEASE(value, var) \ 156 #define RSEQ_ASM_OP_CMPEQ(var, expect, label) \ argument 157 " ldr " RSEQ_ASM_TMP_REG ", %[" __rseq_str(var) "]\n" \ [all …]
|
/tools/lib/subcmd/ |
D | parse-options.h | 228 #define OPT__VERBOSE(var) OPT_BOOLEAN('v', "verbose", (var), "be verbose") argument 229 #define OPT__QUIET(var) OPT_BOOLEAN('q', "quiet", (var), "be quiet") argument 230 #define OPT__VERBOSITY(var) \ argument 231 { OPTION_CALLBACK, 'v', "verbose", (var), NULL, "be more verbose", \ 233 { OPTION_CALLBACK, 'q', "quiet", (var), NULL, "be more quiet", \ 235 #define OPT__DRY_RUN(var) OPT_BOOLEAN('n', "dry-run", (var), "dry run") argument 236 #define OPT__ABBREV(var) \ argument 237 { OPTION_CALLBACK, 0, "abbrev", (var), "n", \
|
/tools/perf/scripts/perl/Perf-Trace-Util/ |
D | Context.c | 25 # define PERL_UNUSED_VAR(var) if (0) var = var argument
|
/tools/perf/ui/browsers/ |
D | res_sample.c | 19 static int res_sample_config(const char *var, const char *value, void *data __maybe_unused) in res_sample_config() argument 21 if (!strcmp(var, "samples.context")) in res_sample_config() 22 return perf_config_u64(&context_len, var, value); in res_sample_config()
|