Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/tools/perf/arch/x86/util/
Dunwind-libunwind.c14 int id; in LIBUNWIND__ARCH_REG_ID() local
18 id = PERF_REG_X86_AX; in LIBUNWIND__ARCH_REG_ID()
21 id = PERF_REG_X86_DX; in LIBUNWIND__ARCH_REG_ID()
24 id = PERF_REG_X86_CX; in LIBUNWIND__ARCH_REG_ID()
27 id = PERF_REG_X86_BX; in LIBUNWIND__ARCH_REG_ID()
30 id = PERF_REG_X86_SI; in LIBUNWIND__ARCH_REG_ID()
33 id = PERF_REG_X86_DI; in LIBUNWIND__ARCH_REG_ID()
36 id = PERF_REG_X86_BP; in LIBUNWIND__ARCH_REG_ID()
39 id = PERF_REG_X86_SP; in LIBUNWIND__ARCH_REG_ID()
42 id = PERF_REG_X86_R8; in LIBUNWIND__ARCH_REG_ID()
[all …]
Dheader.c84 static bool is_full_cpuid(const char *id) in is_full_cpuid() argument
86 const char *tmp = id; in is_full_cpuid()
100 int strcmp_cpuid_str(const char *mapcpuid, const char *id) in strcmp_cpuid_str() argument
106 bool full_cpuid = is_full_cpuid(id); in strcmp_cpuid_str()
114 "vendor-family-model-stepping\n", id); in strcmp_cpuid_str()
124 match = !regexec(&re, id, 1, pmatch, 0); in strcmp_cpuid_str()
134 cpuid_len = strrchr(id, '-') - id; in strcmp_cpuid_str()
136 cpuid_len = strlen(id); in strcmp_cpuid_str()
/tools/perf/util/
Ddsos.c40 static bool dso_id__empty(struct dso_id *id) in dso_id__empty() argument
42 if (!id) in dso_id__empty()
45 return !id->maj && !id->min && !id->ino && !id->ino_generation; in dso_id__empty()
48 static void dso__inject_id(struct dso *dso, struct dso_id *id) in dso__inject_id() argument
50 dso->id.maj = id->maj; in dso__inject_id()
51 dso->id.min = id->min; in dso__inject_id()
52 dso->id.ino = id->ino; in dso__inject_id()
53 dso->id.ino_generation = id->ino_generation; in dso__inject_id()
70 return __dso_id__cmp(&a->id, &b->id); in dso__cmp_id()
97 static int __dso__cmp_long_name(const char *long_name, struct dso_id *id, struct dso *b) in __dso__cmp_long_name() argument
[all …]
Dperf_regs.c23 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id) in perf_reg_value() argument
28 if (regs->cache_mask & (1ULL << id)) in perf_reg_value()
31 if (!(mask & (1ULL << id))) in perf_reg_value()
34 for (i = 0; i < id; i++) { in perf_reg_value()
39 regs->cache_mask |= (1ULL << id); in perf_reg_value()
40 regs->cache_regs[id] = regs->regs[idx]; in perf_reg_value()
43 *valp = regs->cache_regs[id]; in perf_reg_value()
Dexpr.h17 char *id; member
47 void expr__del_id(struct expr_parse_ctx *ctx, const char *id);
48 int expr__add_id(struct expr_parse_ctx *ctx, const char *id);
49 int expr__add_id_val(struct expr_parse_ctx *ctx, const char *id, double val);
51 int expr__get_id(struct expr_parse_ctx *ctx, const char *id,
53 int expr__resolve_id(struct expr_parse_ctx *ctx, const char *id,
Dexpr.c40 int expr__add_id(struct expr_parse_ctx *ctx, const char *id) in expr__add_id() argument
52 ret = hashmap__set(&ctx->ids, id, data_ptr, in expr__add_id()
62 int expr__add_id_val(struct expr_parse_ctx *ctx, const char *id, double val) in expr__add_id_val() argument
74 ret = hashmap__set(&ctx->ids, id, data_ptr, in expr__add_id_val()
133 int expr__get_id(struct expr_parse_ctx *ctx, const char *id, in expr__get_id() argument
136 return hashmap__find(&ctx->ids, id, (void **)data) ? 0 : -1; in expr__get_id()
139 int expr__resolve_id(struct expr_parse_ctx *ctx, const char *id, in expr__resolve_id() argument
144 if (expr__get_id(ctx, id, datap) || !*datap) { in expr__resolve_id()
145 pr_debug("%s not found\n", id); in expr__resolve_id()
152 data->is_ref, data->ref.counted, data->val, id); in expr__resolve_id()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dbtf_write.c15 int id, err, str_off; in test_btf_write() local
31 id = btf__add_int(btf, "int", 4, BTF_INT_SIGNED); in test_btf_write()
32 ASSERT_EQ(id, 1, "int_id"); in test_btf_write()
44 id = btf__add_int(btf, "bad sz int", 7, 0); in test_btf_write()
45 ASSERT_ERR(id, "int_bad_sz"); in test_btf_write()
47 id = btf__add_int(btf, "bad enc int", 4, 123); in test_btf_write()
48 ASSERT_ERR(id, "int_bad_enc"); in test_btf_write()
50 id = btf__add_int(btf, NULL, 4, 0); in test_btf_write()
51 ASSERT_ERR(id, "int_bad_null_name"); in test_btf_write()
53 id = btf__add_int(btf, "", 4, 0); in test_btf_write()
[all …]
Dbtf_dump.c32 int err = 0, id; in btf_dump_all_types() local
38 for (id = 1; id <= type_cnt; id++) { in btf_dump_all_types()
39 err = btf_dump__dump_type(d, id); in btf_dump_all_types()
141 int id, err, i; in test_btf_dump_incremental() local
161 id = btf__add_enum(btf, NULL, 4); in test_btf_dump_incremental()
162 ASSERT_EQ(id, 1, "enum_id"); in test_btf_dump_incremental()
166 id = btf__add_int(btf, "int", 4, BTF_INT_SIGNED); in test_btf_dump_incremental()
167 ASSERT_EQ(id, 2, "int_id"); in test_btf_dump_incremental()
169 id = btf__add_struct(btf, "s", 4); in test_btf_dump_incremental()
170 ASSERT_EQ(id, 3, "struct_id"); in test_btf_dump_incremental()
[all …]
/tools/bpf/resolve_btfids/
Dmain.c82 int id; member
151 struct btf_id *id; in btf_id__find() local
155 id = rb_entry(p, struct btf_id, rb_node); in btf_id__find()
156 cmp = strcmp(id->name, name); in btf_id__find()
162 return id; in btf_id__find()
172 struct btf_id *id; in btf_id__add() local
177 id = rb_entry(parent, struct btf_id, rb_node); in btf_id__add()
178 cmp = strcmp(id->name, name); in btf_id__add()
184 return unique ? NULL : id; in btf_id__add()
187 id = zalloc(sizeof(*id)); in btf_id__add()
[all …]
/tools/lib/bpf/
Dbtf_dump.c226 static int btf_dump_order_type(struct btf_dump *d, __u32 id, bool through_ptr);
227 static void btf_dump_emit_type(struct btf_dump *d, __u32 id, __u32 cont_id);
245 int btf_dump__dump_type(struct btf_dump *d, __u32 id) in btf_dump__dump_type() argument
249 if (id > btf__get_nr_types(d->btf)) in btf_dump__dump_type()
257 err = btf_dump_order_type(d, id, false); in btf_dump__dump_type()
341 static int btf_dump_add_emit_queue_id(struct btf_dump *d, __u32 id) in btf_dump_add_emit_queue_id() argument
355 d->emit_queue[d->emit_queue_cnt++] = id; in btf_dump_add_emit_queue_id()
433 static int btf_dump_order_type(struct btf_dump *d, __u32 id, bool through_ptr) in btf_dump_order_type() argument
446 struct btf_dump_type_aux_state *tstate = &d->type_states[id]; in btf_dump_order_type()
455 t = btf__type_by_id(d->btf, id); in btf_dump_order_type()
[all …]
/tools/testing/radix-tree/
Didr-test.c16 int item_idr_free(int id, void *p, void *data) in item_idr_free() argument
19 assert(item->index == id); in item_idr_free()
25 void item_idr_remove(struct idr *idr, int id) in item_idr_remove() argument
27 struct item *item = idr_find(idr, id); in item_idr_remove()
28 assert(item->index == id); in item_idr_remove()
29 idr_remove(idr, id); in item_idr_remove()
44 int id; in idr_alloc_test() local
52 id = idr_alloc_cyclic(&idr, item, 1, 0x4000, GFP_KERNEL); in idr_alloc_test()
53 assert(id == item->index); in idr_alloc_test()
173 int idr_u32_cb(int id, void *ptr, void *data) in idr_u32_cb() argument
[all …]
/tools/testing/selftests/kvm/aarch64/
Dget-reg-list.c103 static const char *core_id_to_str(__u64 id) in core_id_to_str() argument
105 __u64 core_off = id & ~REG_MASK, idx; in core_id_to_str()
142 TEST_FAIL("Unknown core reg id: 0x%llx", id); in core_id_to_str()
146 static const char *sve_id_to_str(__u64 id) in sve_id_to_str() argument
150 if (id == KVM_REG_ARM64_SVE_VLS) in sve_id_to_str()
153 sve_off = id & ~(REG_MASK | ((1ULL << 5) - 1)); in sve_id_to_str()
154 i = id & (KVM_ARM64_SVE_MAX_SLICES - 1); in sve_id_to_str()
156 TEST_ASSERT(i == 0, "Currently we don't expect slice > 0, reg id 0x%llx", id); in sve_id_to_str()
161 n = (id >> 5) & (KVM_ARM64_SVE_NUM_ZREGS - 1); in sve_id_to_str()
162 TEST_ASSERT(id == KVM_REG_ARM64_SVE_ZREG(n, 0), in sve_id_to_str()
[all …]
/tools/testing/selftests/drivers/net/mlxsw/
Ddevlink_trap_policer.sh193 local id=$1; shift
196 t0=$(devlink_trap_policer_rx_dropped_get $id)
198 t1=$(devlink_trap_policer_rx_dropped_get $id)
206 local id=$1; shift
210 devlink trap policer set $DEVLINK_DEV policer $id rate 1000 burst 512
211 devlink trap group set $DEVLINK_DEV group l3_drops policer $id
227 drop_rate=$(policer_drop_rate_get $id)
242 drop_rate=$(policer_drop_rate_get $id)
263 drop_rate=$(policer_drop_rate_get $id)
275 local id
[all …]
/tools/bpf/bpftool/
Dpids.c21 void emit_obj_refs_plain(struct obj_refs_table *table, __u32 id, const char *prefix) {} in emit_obj_refs_plain() argument
22 void emit_obj_refs_json(struct obj_refs_table *table, __u32 id, json_writer_t *json_writer) {} in emit_obj_refs_json() argument
35 hash_for_each_possible(table->table, refs, node, e->id) { in add_ref()
36 if (refs->id != e->id) in add_ref()
47 e->id, e->pid, e->comm); in add_ref()
63 e->id, e->pid, e->comm); in add_ref()
67 refs->id = e->id; in add_ref()
72 e->id, e->pid, e->comm); in add_ref()
79 hash_add(table->table, &refs->node, e->id); in add_ref()
178 void emit_obj_refs_json(struct obj_refs_table *table, __u32 id, in emit_obj_refs_json() argument
[all …]
/tools/perf/tests/shell/
Dbuildid.sh20 echo 'int main(void) { return 0; }' | cc -Wl,--build-id=sha1 -o ${ex_sha1} -x c -
21 echo 'int main(void) { return 0; }' | cc -Wl,--build-id=md5 -o ${ex_md5} -x c -
27 id=`readelf -n ${1} 2>/dev/null | grep 'Build ID' | awk '{print $3}'`
29 echo "build id: ${id}"
31 link=${build_id_dir}/.build-id/${id:0:2}/${id:2}
39 file=${build_id_dir}/.build-id/${id:0:2}/`readlink ${link}`/elf
/tools/power/cpupower/utils/idle_monitor/
Dhsw_ext_idle.c35 .id = PC8,
42 .id = PC9,
49 .id = PC10,
62 static int hsw_ext_get_count(enum intel_hsw_ext_id id, unsigned long long *val, in hsw_ext_get_count() argument
67 switch (id) { in hsw_ext_get_count()
88 static int hsw_ext_get_count_percent(unsigned int id, double *percent, in hsw_ext_get_count_percent() argument
97 (current_count[id][cpu] - previous_count[id][cpu])) / in hsw_ext_get_count_percent()
101 hsw_ext_cstates[id].name, previous_count[id][cpu], in hsw_ext_get_count_percent()
102 current_count[id][cpu], cpu); in hsw_ext_get_count_percent()
105 hsw_ext_cstates[id].name, in hsw_ext_get_count_percent()
[all …]
Dsnb_idle.c33 .id = C7,
40 .id = PC2,
47 .id = PC7,
60 static int snb_get_count(enum intel_snb_id id, unsigned long long *val, in snb_get_count() argument
65 switch (id) { in snb_get_count()
86 static int snb_get_count_percent(unsigned int id, double *percent, in snb_get_count_percent() argument
95 (current_count[id][cpu] - previous_count[id][cpu])) / in snb_get_count_percent()
99 snb_cstates[id].name, previous_count[id][cpu], in snb_get_count_percent()
100 current_count[id][cpu], cpu); in snb_get_count_percent()
103 snb_cstates[id].name, in snb_get_count_percent()
[all …]
Dnhm_idle.c36 .id = C3,
43 .id = C6,
51 .id = PC3,
58 .id = PC6,
71 static int nhm_get_count(enum intel_nhm_id id, unsigned long long *val, in nhm_get_count() argument
76 switch (id) { in nhm_get_count()
101 static int nhm_get_count_percent(unsigned int id, double *percent, in nhm_get_count_percent() argument
110 (current_count[id][cpu] - previous_count[id][cpu])) / in nhm_get_count_percent()
114 nhm_cstates[id].name, previous_count[id][cpu], in nhm_get_count_percent()
115 current_count[id][cpu], cpu); in nhm_get_count_percent()
[all …]
Damd_fam14h_idle.c47 static int fam14h_nbp1_count(unsigned int id, unsigned long long *count,
54 .id = NON_PC0,
61 .id = PC1,
68 .id = PC6,
75 .id = NBP1,
101 switch (state->id) { in amd_fam14h_get_pci_info()
134 if (state->id == NBP1) { in amd_fam14h_init()
154 previous_count[state->id][cpu] = 0; in amd_fam14h_init()
170 if (state->id == NBP1) { in amd_fam14h_disable()
181 current_count[state->id][cpu] = val; in amd_fam14h_disable()
[all …]
/tools/perf/scripts/python/
Dfailed-syscalls-by-pid.py44 common_callchain, id, ret): argument
51 syscalls[common_comm][common_pid][id][ret] += 1
53 syscalls[common_comm][common_pid][id][ret] = 1
57 id, ret): argument
75 for id in id_keys:
76 print(" syscall: %-16s" % syscall_name(id))
77 ret_keys = syscalls[comm][pid][id].keys()
78 …for ret, val in sorted(syscalls[comm][pid][id].items(), key = lambda kv: (kv[1], kv[0]), reverse =…
Dsyscall-counts.py40 common_callchain, id, args): argument
45 syscalls[id] += 1
47 syscalls[id] = 1
50 common_secs, common_nsecs, common_pid, common_comm, id, args): argument
63 for id, val in sorted(syscalls.items(),
65 print("%-40s %10d" % (syscall_name(id), val))
/tools/testing/selftests/kvm/include/aarch64/
Dprocessor.h39 static inline void get_reg(struct kvm_vm *vm, uint32_t vcpuid, uint64_t id, uint64_t *addr) in get_reg() argument
42 reg.id = id; in get_reg()
47 static inline void set_reg(struct kvm_vm *vm, uint32_t vcpuid, uint64_t id, uint64_t val) in set_reg() argument
50 reg.id = id; in set_reg()
/tools/bpf/bpftool/Documentation/
Dbpftool-net.rst28 | *PROG* := { **id** *PROG_ID* | **pinned** *FILE* | **tag** *PROG_TAG* }
88 eth0(2) driver id 198
91 eth0(2) htb name prefix_matcher.o:[cls_prefix_matcher_htb] id 111727 act []
92 eth0(2) clsact/ingress fbflow_icmp id 130246 act []
93 eth0(2) clsact/egress prefix_matcher.o:[cls_prefix_matcher_clsact] id 111726
94 eth0(2) clsact/egress cls_fg_dscp id 108619 act []
95 eth0(2) clsact/egress fbflow_egress id 130245
107 "id": 198
115 "id": 111727,
122 "id": 130246,
[all …]
/tools/testing/selftests/net/forwarding/
Drouter_mpath_nh.sh98 ip nexthop del id 103
99 ip nexthop del id 101
100 ip nexthop del id 102
101 ip nexthop del id 106
102 ip nexthop del id 104
103 ip nexthop del id 105
148 ip nexthop del id 201
149 ip nexthop del id 202
150 ip nexthop del id 204
151 ip nexthop del id 205
[all …]
Dtc_common.sh11 local id=$1
16 tc_rule_handle_stats_get "$id" "$handle" > /dev/null
21 local id=$1
25 tc_rule_handle_stats_get "$id" "$handle" > /dev/null

12345678910>>...13