Home
last modified time | relevance | path

Searched refs:name (Results 1 – 25 of 836) sorted by relevance

12345678910>>...34

/tools/perf/arch/x86/annotate/
Dinstructions.c3 { .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/
Dstatic_call_types.h12 #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 …]
Dbtf_ids.h47 #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 …]
Dhashtable.h17 #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/
Dlinkage.h27 #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/mips/annotate/
Dinstructions.c4 struct ins_ops *mips__associate_ins_ops(struct arch *arch, const char *name) in mips__associate_ins_ops() argument
8 if (!strncmp(name, "bal", 3) || in mips__associate_ins_ops()
9 !strncmp(name, "bgezal", 6) || in mips__associate_ins_ops()
10 !strncmp(name, "bltzal", 6) || in mips__associate_ins_ops()
11 !strncmp(name, "bgtzal", 6) || in mips__associate_ins_ops()
12 !strncmp(name, "blezal", 6) || in mips__associate_ins_ops()
13 !strncmp(name, "beqzal", 6) || in mips__associate_ins_ops()
14 !strncmp(name, "bnezal", 6) || in mips__associate_ins_ops()
15 !strncmp(name, "bgtzl", 5) || in mips__associate_ins_ops()
16 !strncmp(name, "bltzl", 5) || in mips__associate_ins_ops()
[all …]
/tools/perf/arch/powerpc/annotate/
Dinstructions.c4 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/
Dinstructions.c7 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/
Dsubunit.h9 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/
Dcore_extern.c24 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 …]
Dcore_reloc.c13 #define MODULES_CASE(name, sec_name, tp_name) { \ argument
14 .case_name = name, \
43 #define FLAVORS_CASE_COMMON(name) \ argument
44 .case_name = #name, \
46 .btf_src_file = "btf__core_reloc_" #name ".o" \
48 #define FLAVORS_CASE(name) { \ argument
49 FLAVORS_CASE_COMMON(name), \
50 .input = FLAVORS_DATA(core_reloc_##name), \
51 .input_len = sizeof(struct core_reloc_##name), \
56 #define FLAVORS_ERR_CASE(name) { \ argument
[all …]
/tools/testing/selftests/bpf/
Dtest_btf.h10 #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 …]
Dtest_progs.h90 extern bool test__start_subtest(const char *name);
133 #define ASSERT_TRUE(actual, name) ({ \ argument
136 CHECK(!___ok, (name), "unexpected %s: got FALSE\n", (name)); \
140 #define ASSERT_FALSE(actual, name) ({ \ argument
143 CHECK(!___ok, (name), "unexpected %s: got TRUE\n", (name)); \
147 #define ASSERT_EQ(actual, expected, name) ({ \ argument
152 CHECK(!___ok, (name), \
154 (name), (long long)(___act), (long long)(___exp)); \
158 #define ASSERT_NEQ(actual, expected, name) ({ \ argument
163 CHECK(!___ok, (name), \
[all …]
/tools/testing/selftests/exec/
Dbinfmt_script43 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/
Dresolve_test.c110 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 …]
Dopenat2_test.c41 const char *name; member
56 { .name = "normal struct", in test_openat2_struct()
60 { .name = "bigger struct (zeroed out)", in test_openat2_struct()
67 { .name = "zero-sized 'struct'", in test_openat2_struct()
69 { .name = "smaller-than-v0 struct", in test_openat2_struct()
74 { .name = "bigger struct (non-zero data in first 'future field')", in test_openat2_struct()
77 { .name = "bigger struct (non-zero data in middle of 'future fields')", in test_openat2_struct()
80 { .name = "bigger struct (non-zero data at end of 'future fields')", in test_openat2_struct()
143 test->name, misalign); in test_openat2_struct()
146 test->name, misalign, test->err, in test_openat2_struct()
[all …]
/tools/perf/util/
Dfncache.c12 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 …]
Dpmu.c35 char *name; member
41 int perf_pmu_parse(struct list_head *list, char *name);
63 char *name = evt_ent->d_name; in perf_pmu__format_parse() local
66 if (!strcmp(name, ".") || !strcmp(name, "..")) in perf_pmu__format_parse()
69 snprintf(path, PATH_MAX, "%s/%s", dir, name); in perf_pmu__format_parse()
77 ret = perf_pmu_parse(head, name); in perf_pmu__format_parse()
90 static int pmu_format(const char *name, struct list_head *format) in pmu_format() argument
99 "%s" EVENT_SOURCE_DEVICE_PATH "%s/format", sysfs, name); in pmu_format()
147 static int perf_pmu__parse_scale(struct perf_pmu_alias *alias, char *dir, char *name) in perf_pmu__parse_scale() argument
155 scnprintf(path, PATH_MAX, "%s/%s.scale", dir, name); in perf_pmu__parse_scale()
[all …]
/tools/perf/include/bpf/
Dbpf.h21 #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/x86/util/
Dpmu.c21 char *name; member
32 if (!strcmp(pmu->name, INTEL_PT_PMU_NAME)) in perf_pmu__get_default_config()
34 if (!strcmp(pmu->name, INTEL_BTS_PMU_NAME)) in perf_pmu__get_default_config()
45 zfree(&pmu_alias->name); in pmu_alias__delete()
50 static struct pmu_alias *pmu_alias__new(char *name, char *alias) in pmu_alias__new() argument
55 pmu_alias->name = strdup(name); in pmu_alias__new()
56 if (!pmu_alias->name) in pmu_alias__new()
130 static char *__pmu_find_real_name(const char *name) in __pmu_find_real_name() argument
135 if (!strcmp(name, pmu_alias->alias)) in __pmu_find_real_name()
136 return pmu_alias->name; in __pmu_find_real_name()
[all …]
/tools/perf/arch/s390/annotate/
Dinstructions.c7 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/
Dbuiltin-help.c30 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 …]
Dbuiltin-bench.c34 const char *name; member
97 const char *name; member
120 for (coll = collections; coll->name; coll++)
124 for (bench = coll->benchmarks; bench && bench->name; bench++)
130 printf("\n # List of available benchmarks for collection '%s':\n\n", coll->name); in dump_benchmarks()
133 printf("%14s: %s\n", bench->name, bench->summary); in dump_benchmarks()
168 printf("%14s: %s\n", coll->name, coll->summary); in print_usage()
193 char *name; in run_bench() local
198 name = zalloc(size); in run_bench()
199 BUG_ON(!name); in run_bench()
[all …]
/tools/perf/arch/sparc/annotate/
Dinstructions.c120 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/
Dfw_fallback.sh23 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 …]

12345678910>>...34