/tools/perf/arch/x86/annotate/ |
D | instructions.c | 3 { .name = "adc", .ops = &mov_ops, }, 4 { .name = "adcb", .ops = &mov_ops, }, 5 { .name = "adcl", .ops = &mov_ops, }, 6 { .name = "add", .ops = &mov_ops, }, 7 { .name = "addl", .ops = &mov_ops, }, 8 { .name = "addq", .ops = &mov_ops, }, 9 { .name = "addsd", .ops = &mov_ops, }, 10 { .name = "addw", .ops = &mov_ops, }, 11 { .name = "and", .ops = &mov_ops, }, 12 { .name = "andb", .ops = &mov_ops, }, [all …]
|
/tools/include/linux/ |
D | static_call_types.h | 12 #define STATIC_CALL_KEY(name) __PASTE(STATIC_CALL_KEY_PREFIX, name) argument 13 #define STATIC_CALL_KEY_STR(name) __stringify(STATIC_CALL_KEY(name)) argument 18 #define STATIC_CALL_TRAMP(name) __PASTE(STATIC_CALL_TRAMP_PREFIX, name) argument 19 #define STATIC_CALL_TRAMP_STR(name) __stringify(STATIC_CALL_TRAMP(name)) argument 37 #define DECLARE_STATIC_CALL(name, func) \ argument 38 extern struct static_call_key STATIC_CALL_KEY(name); \ 39 extern typeof(func) STATIC_CALL_TRAMP(name); 43 #define __raw_static_call(name) (&STATIC_CALL_TRAMP(name)) argument 52 #define __STATIC_CALL_ADDRESSABLE(name) \ argument 53 __ADDRESSABLE(STATIC_CALL_KEY(name)) [all …]
|
D | btf_ids.h | 47 #define BTF_ID(prefix, name) \ argument 48 __BTF_ID(__ID(__BTF_ID__##prefix##__##name##__)) 65 #define __BTF_ID_LIST(name, scope) \ argument 68 "." #scope " " #name "; \n" \ 69 #name ":; \n" \ 72 #define BTF_ID_LIST(name) \ argument 73 __BTF_ID_LIST(name, local) \ 74 extern u32 name[]; 76 #define BTF_ID_LIST_GLOBAL(name) \ argument 77 __BTF_ID_LIST(name, globl) [all …]
|
D | hashtable.h | 17 #define DEFINE_HASHTABLE(name, bits) \ argument 18 struct hlist_head name[1 << (bits)] = \ 21 #define DECLARE_HASHTABLE(name, bits) \ argument 22 struct hlist_head name[1 << (bits)] 24 #define HASH_SIZE(name) (ARRAY_SIZE(name)) argument 25 #define HASH_BITS(name) ilog2(HASH_SIZE(name)) argument 105 #define hash_for_each(name, bkt, obj, member) \ argument 106 for ((bkt) = 0, obj = NULL; obj == NULL && (bkt) < HASH_SIZE(name);\ 108 hlist_for_each_entry(obj, &name[bkt], member) 119 #define hash_for_each_safe(name, bkt, tmp, obj, member) \ argument [all …]
|
/tools/perf/util/include/linux/ |
D | linkage.h | 27 #define SYM_L_GLOBAL(name) .globl name argument 28 #define SYM_L_WEAK(name) .weak name argument 29 #define SYM_L_LOCAL(name) /* nothing */ argument 37 #define SYM_ENTRY(name, linkage, align...) \ argument 38 linkage(name) ASM_NL \ 40 name: 45 #define SYM_START(name, linkage, align...) \ argument 46 SYM_ENTRY(name, linkage, align) 51 #define SYM_END(name, sym_type) \ argument 52 .type name sym_type ASM_NL \ [all …]
|
/tools/perf/arch/powerpc/annotate/ |
D | instructions.c | 4 static struct ins_ops *powerpc__associate_instruction_ops(struct arch *arch, const char *name) in powerpc__associate_instruction_ops() argument 13 if (name[0] != 'b' || in powerpc__associate_instruction_ops() 14 !strncmp(name, "bcd", 3) || in powerpc__associate_instruction_ops() 15 !strncmp(name, "brinc", 5) || in powerpc__associate_instruction_ops() 16 !strncmp(name, "bper", 4)) in powerpc__associate_instruction_ops() 21 i = strlen(name) - 1; in powerpc__associate_instruction_ops() 26 if (name[i] == '+' || name[i] == '-') in powerpc__associate_instruction_ops() 29 if (name[i] == 'l' || (name[i] == 'a' && name[i-1] == 'l')) { in powerpc__associate_instruction_ops() 36 if (strcmp(name, "bnl") && strcmp(name, "bnl+") && in powerpc__associate_instruction_ops() 37 strcmp(name, "bnl-") && strcmp(name, "bnla") && in powerpc__associate_instruction_ops() [all …]
|
/tools/perf/arch/csky/annotate/ |
D | instructions.c | 7 const char *name) in csky__associate_ins_ops() argument 12 if (!strcmp(name, "bt") || in csky__associate_ins_ops() 13 !strcmp(name, "bf") || in csky__associate_ins_ops() 14 !strcmp(name, "bez") || in csky__associate_ins_ops() 15 !strcmp(name, "bnez") || in csky__associate_ins_ops() 16 !strcmp(name, "bnezad") || in csky__associate_ins_ops() 17 !strcmp(name, "bhsz") || in csky__associate_ins_ops() 18 !strcmp(name, "bhz") || in csky__associate_ins_ops() 19 !strcmp(name, "blsz") || in csky__associate_ins_ops() 20 !strcmp(name, "blz") || in csky__associate_ins_ops() [all …]
|
/tools/testing/selftests/powerpc/include/ |
D | subunit.h | 9 static inline void test_start(char *name) in test_start() argument 11 printf("test: %s\n", name); in test_start() 14 static inline void test_failure_detail(char *name, char *detail) in test_failure_detail() argument 16 printf("failure: %s [%s]\n", name, detail); in test_failure_detail() 19 static inline void test_failure(char *name) in test_failure() argument 21 printf("failure: %s\n", name); in test_failure() 24 static inline void test_error(char *name) in test_error() argument 26 printf("error: %s\n", name); in test_error() 29 static inline void test_skip(char *name) in test_skip() argument 31 printf("skip: %s\n", name); in test_skip() [all …]
|
/tools/testing/selftests/bpf/prog_tests/ |
D | core_extern.c | 24 const char *name; member 29 { .name = "default search path", .data = { .bpf_syscall = true } }, 31 .name = "custom values", 53 { .name = "tristate (y)", .cfg = CFG"CONFIG_TRISTATE=y\n", 55 { .name = "tristate (n)", .cfg = CFG"CONFIG_TRISTATE=n\n", 57 { .name = "tristate (m)", .cfg = CFG"CONFIG_TRISTATE=m\n", 59 { .name = "tristate (int)", .fails = 1, .cfg = CFG"CONFIG_TRISTATE=1" }, 60 { .name = "tristate (bad)", .fails = 1, .cfg = CFG"CONFIG_TRISTATE=M" }, 62 { .name = "bool (y)", .cfg = CFG"CONFIG_BOOL=y\n", 64 { .name = "bool (n)", .cfg = CFG"CONFIG_BOOL=n\n", [all …]
|
D | core_reloc.c | 18 #define FLAVORS_CASE_COMMON(name) \ argument 19 .case_name = #name, \ 21 .btf_src_file = "btf__core_reloc_" #name ".o" \ 23 #define FLAVORS_CASE(name) { \ argument 24 FLAVORS_CASE_COMMON(name), \ 25 .input = FLAVORS_DATA(core_reloc_##name), \ 26 .input_len = sizeof(struct core_reloc_##name), \ 31 #define FLAVORS_ERR_CASE(name) { \ argument 32 FLAVORS_CASE_COMMON(name), \ 41 #define NESTING_CASE_COMMON(name) \ argument [all …]
|
/tools/testing/selftests/bpf/ |
D | test_btf.h | 10 #define BTF_TYPE_ENC(name, info, size_or_type) \ argument 11 (name), (info), (size_or_type) 15 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument 16 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_INT, 0, 0), sz), \ 19 #define BTF_FWD_ENC(name, kind_flag) \ argument 20 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_FWD, kind_flag, 0), 0) 28 #define BTF_STRUCT_ENC(name, nr_elems, sz) \ argument 29 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_STRUCT, 0, nr_elems), sz) 31 #define BTF_UNION_ENC(name, nr_elems, sz) \ argument 32 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_UNION, 0, nr_elems), sz) [all …]
|
/tools/testing/selftests/exec/ |
D | binfmt_script | 43 def test(name, size, good=True, leading="", root="./", target="/perl", argument 71 script = "binfmt_script-%s" % (name) 82 % (test_num, name)) 85 % (test_num, name)) 89 % (test_num, name, proc.returncode)) 92 % (test_num, name)) 111 test(name="too-big", size=SIZE+80, good=False) 113 test(name="exact", size=SIZE, good=False) 115 test(name="exact-space", size=SIZE, good=False, leading=" ") 117 test(name="whitespace-too-big", size=SIZE+71, good=False, root="", [all …]
|
/tools/testing/selftests/openat2/ |
D | resolve_test.c | 110 const char *name; member 138 { .name = "[beneath] jump to /", in test_openat2_opath_tests() 141 { .name = "[beneath] absolute link to $root", in test_openat2_opath_tests() 144 { .name = "[beneath] chained absolute links to $root", in test_openat2_opath_tests() 147 { .name = "[beneath] jump outside $root", in test_openat2_opath_tests() 150 { .name = "[beneath] temporary jump outside $root", in test_openat2_opath_tests() 153 { .name = "[beneath] symlink temporary jump outside $root", in test_openat2_opath_tests() 156 { .name = "[beneath] chained symlink temporary jump outside $root", in test_openat2_opath_tests() 159 { .name = "[beneath] garbage links to $root", in test_openat2_opath_tests() 162 { .name = "[beneath] chained garbage links to $root", in test_openat2_opath_tests() [all …]
|
D | openat2_test.c | 37 const char *name; member 52 { .name = "normal struct", in test_openat2_struct() 56 { .name = "bigger struct (zeroed out)", in test_openat2_struct() 63 { .name = "zero-sized 'struct'", in test_openat2_struct() 65 { .name = "smaller-than-v0 struct", in test_openat2_struct() 70 { .name = "bigger struct (non-zero data in first 'future field')", in test_openat2_struct() 73 { .name = "bigger struct (non-zero data in middle of 'future fields')", in test_openat2_struct() 76 { .name = "bigger struct (non-zero data at end of 'future fields')", in test_openat2_struct() 139 test->name, misalign); in test_openat2_struct() 142 test->name, misalign, test->err, in test_openat2_struct() [all …]
|
/tools/perf/util/ |
D | fncache.c | 12 char name[]; member 27 static bool lookup_fncache(const char *name, bool *res) in lookup_fncache() argument 29 int h = shash((const unsigned char *)name) % FNHSIZE; in lookup_fncache() 33 if (!strcmp(n->name, name)) { in lookup_fncache() 41 static void update_fncache(const char *name, bool res) in update_fncache() argument 43 struct fncache *n = malloc(sizeof(struct fncache) + strlen(name) + 1); in update_fncache() 44 int h = shash((const unsigned char *)name) % FNHSIZE; in update_fncache() 48 strcpy(n->name, name); in update_fncache() 54 bool file_available(const char *name) in file_available() argument 58 if (lookup_fncache(name, &res)) in file_available() [all …]
|
D | pmu.c | 32 char *name; member 38 int perf_pmu_parse(struct list_head *list, char *name); 59 char *name = evt_ent->d_name; in perf_pmu__format_parse() local 62 if (!strcmp(name, ".") || !strcmp(name, "..")) in perf_pmu__format_parse() 65 snprintf(path, PATH_MAX, "%s/%s", dir, name); in perf_pmu__format_parse() 73 ret = perf_pmu_parse(head, name); in perf_pmu__format_parse() 86 static int pmu_format(const char *name, struct list_head *format) in pmu_format() argument 95 "%s" EVENT_SOURCE_DEVICE_PATH "%s/format", sysfs, name); in pmu_format() 143 static int perf_pmu__parse_scale(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_scale() argument 151 scnprintf(path, PATH_MAX, "%s/%s.scale", dir, name); in perf_pmu__parse_scale() [all …]
|
/tools/perf/include/bpf/ |
D | bpf.h | 21 #define bpf_map(name, _type, type_key, type_val, _max_entries) \ argument 22 struct bpf_map SEC("maps") name = { \ 28 struct ____btf_map_##name { \ 32 struct ____btf_map_##name __attribute__((section(".maps." #name), used)) \ 33 ____btf_map_##name = { } 43 #define pid_map(name, value_type) bpf_map(name, HASH, pid_t, value_type, 64) argument 55 #define syscall_enter(name) \ argument 56 SEC("syscalls:sys_enter_" #name) syscall_enter_ ## name 58 #define syscall_exit(name) \ argument 59 SEC("syscalls:sys_exit_" #name) syscall_exit_ ## name [all …]
|
/tools/perf/arch/s390/annotate/ |
D | instructions.c | 7 char *endptr, *tok, *name; in s390_call__parse() local 19 name = strchr(endptr, '<'); in s390_call__parse() 20 if (name == NULL) in s390_call__parse() 23 name++; in s390_call__parse() 26 strchr(name, arch->objdump.skip_functions_char)) in s390_call__parse() 29 tok = strchr(name, '>'); in s390_call__parse() 34 ops->target.name = strdup(name); in s390_call__parse() 37 if (ops->target.name == NULL) in s390_call__parse() 89 ops->target.name = strdup(s + 1); in s390_mov__parse() 91 if (ops->target.name == NULL) in s390_mov__parse() [all …]
|
/tools/perf/ |
D | builtin-help.c | 30 char name[0]; member 36 char name[0]; member 59 static const char *get_man_viewer_info(const char *name) in get_man_viewer_info() argument 64 if (!strcasecmp(name, viewer->name)) in get_man_viewer_info() 189 static void add_man_viewer(const char *name) in add_man_viewer() argument 192 size_t len = strlen(name); in add_man_viewer() 197 strcpy((*p)->name, name); in add_man_viewer() 200 static int supported_man_viewer(const char *name, size_t len) in supported_man_viewer() argument 202 return (!strncasecmp("man", name, len) || in supported_man_viewer() 203 !strncasecmp("woman", name, len) || in supported_man_viewer() [all …]
|
D | builtin-bench.c | 34 const char *name; member 96 const char *name; member 119 for (coll = collections; coll->name; coll++) 123 for (bench = coll->benchmarks; bench && bench->name; bench++) 129 printf("\n # List of available benchmarks for collection '%s':\n\n", coll->name); in dump_benchmarks() 132 printf("%14s: %s\n", bench->name, bench->summary); in dump_benchmarks() 167 printf("%14s: %s\n", coll->name, coll->summary); in print_usage() 192 char *name; in run_bench() local 197 name = zalloc(size); in run_bench() 198 BUG_ON(!name); in run_bench() [all …]
|
/tools/perf/arch/sparc/annotate/ |
D | instructions.c | 120 static struct ins_ops *sparc__associate_instruction_ops(struct arch *arch, const char *name) in sparc__associate_instruction_ops() argument 124 if (!strcmp(name, "call") || in sparc__associate_instruction_ops() 125 !strcmp(name, "jmp") || in sparc__associate_instruction_ops() 126 !strcmp(name, "jmpl")) { in sparc__associate_instruction_ops() 128 } else if (!strcmp(name, "ret") || in sparc__associate_instruction_ops() 129 !strcmp(name, "retl") || in sparc__associate_instruction_ops() 130 !strcmp(name, "return")) { in sparc__associate_instruction_ops() 132 } else if (!strcmp(name, "mov")) { in sparc__associate_instruction_ops() 135 if (name[0] == 'c' && in sparc__associate_instruction_ops() 136 (name[1] == 'w' || name[1] == 'x')) in sparc__associate_instruction_ops() [all …]
|
/tools/testing/selftests/firmware/ |
D | fw_fallback.sh | 23 local name="$1" 27 echo -n "$name" >"$DIR"/trigger_request & 31 while [ ! -e "$DIR"/"$name"/loading ]; do 40 echo 1 >"$DIR"/"$name"/loading 41 cat "$file" >"$DIR"/"$name"/data 42 echo 0 >"$DIR"/"$name"/loading 50 local name="$1" 54 echo -n "$name" >"$DIR"/trigger_request 2>/dev/null & 58 while [ ! -e "$DIR"/"$name"/loading ]; do 67 echo -1 >"$DIR"/"$name"/loading [all …]
|
/tools/usb/usbip/src/ |
D | usbip.c | 35 const char *name; member 43 .name = "help", 49 .name = "version", 55 .name = "attach", 61 .name = "detach", 67 .name = "list", 73 .name = "bind", 79 .name = "unbind", 85 .name = "port", 100 for (i = 0; cmds[i].name != NULL; i++) in usbip_help() [all …]
|
/tools/bpf/bpftool/ |
D | netlink_dumper.h | 13 #define NET_START_OBJECT_NESTED(name) \ argument 16 jsonw_name(json_wtr, name); \ 19 fprintf(stdout, "%s {", name); \ 53 #define NET_START_ARRAY(name, fmt_str) \ argument 56 jsonw_name(json_wtr, name); \ 59 fprintf(stdout, fmt_str, name); \ 71 #define NET_DUMP_UINT(name, fmt_str, val) \ argument 74 jsonw_uint_field(json_wtr, name, val); \ 79 #define NET_DUMP_STR(name, fmt_str, str) \ argument 82 jsonw_string_field(json_wtr, name, str);\
|
/tools/testing/selftests/net/ |
D | hwtstamp_config.c | 20 lookup_value(const char **names, int size, const char *name) in lookup_value() argument 25 if (names[value] && strcasecmp(names[value], name) == 0) in lookup_value() 47 #define TX_TYPE(name) [HWTSTAMP_TX_ ## name] = #name argument 56 #define RX_FILTER(name) [HWTSTAMP_FILTER_ ## name] = #name argument 90 const char *name; in main() local 123 name = lookup_name(tx_types, N_TX_TYPES, config.tx_type); in main() 124 if (name) in main() 125 printf("tx_type = %s\n", name); in main() 128 name = lookup_name(rx_filters, N_RX_FILTERS, config.rx_filter); in main() 129 if (name) in main() [all …]
|