| /tools/perf/arch/x86/util/ |
| A D | unwind-libunwind.c | 14 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() 73 return id; in LIBUNWIND__ARCH_REG_ID() 78 int id; in LIBUNWIND__ARCH_REG_ID() local [all …]
|
| /tools/power/x86/intel-speed-select/ |
| A D | isst-core.c | 64 int isst_is_punit_valid(struct isst_id *id) in isst_is_punit_valid() argument 67 return isst_ops->is_punit_valid(id); in isst_is_punit_valid() 198 ret = isst_get_ctdp_levels(id, &pkg_dev); in isst_get_pbf_info() 238 ret = isst_get_ctdp_levels(id, &pkg_dev); in isst_get_fact_info() 293 if (id->cpu < 0) in isst_set_trl_from_current_tdp() 375 ret = isst_get_ctdp_levels(id, pkg_dev); in isst_get_process_ctdp() 402 ctdp_level->control_cpu = id->cpu; in isst_get_process_ctdp() 403 ctdp_level->pkg_id = id->pkg; in isst_get_process_ctdp() 404 ctdp_level->die_id = id->die; in isst_get_process_ctdp() 421 ret = isst_get_fact_info(id, i, 0xff, in isst_get_process_ctdp() [all …]
|
| A D | isst.h | 194 int (*is_punit_valid)(struct isst_id *id); 204 int (*set_tdp_level)(struct isst_id *id, int tdp_level); 214 int (*clos_associate)(struct isst_id *id, int clos_id); 219 extern int get_cpu_count(struct isst_id *id); 220 extern int get_max_punit_core_id(struct isst_id *id); 228 extern void set_isst_id(struct isst_id *id, int cpu); 245 extern int isst_is_punit_valid(struct isst_id *id); 268 extern int isst_get_pbf_info(struct isst_id *id, int level, 281 extern int isst_pm_get_clos(struct isst_id *id, int clos, 283 extern int isst_set_clos(struct isst_id *id, int clos, [all …]
|
| A D | isst-daemon.c | 36 void process_level_change(struct isst_id *id) in process_level_change() argument 43 if (id->pkg < 0 || id->die < 0 || id->punit < 0) { in process_level_change() 49 if (tm - per_package_levels_tm[id->pkg][id->die][id->punit] < 2) in process_level_change() 52 per_package_levels_tm[id->pkg][id->die][id->punit] = tm; in process_level_change() 54 ret = isst_get_ctdp_levels(id, &pkg_dev); in process_level_change() 61 id->pkg, id->die, pkg_dev.current_level); in process_level_change() 68 if (per_package_levels_info[id->pkg][id->die][id->punit] == pkg_dev.current_level) in process_level_change() 72 id->cpu, id->pkg, id->die, per_package_levels_info[id->pkg][id->die][id->punit], in process_level_change() 75 per_package_levels_info[id->pkg][id->die][id->punit] = pkg_dev.current_level; in process_level_change() 103 if (!is_cpu_in_power_domain(i, id)) in process_level_change() [all …]
|
| A D | isst-core-mbox.c | 66 if (id->cpu < 0) in mbox_is_punit_valid() 69 if (id->pkg < 0 || id->die < 0 || id->punit) in mbox_is_punit_valid() 550 id->cpu, req, resp); in mbox_get_get_trl() 649 id->cpu, resp); in mbox_get_pbf_info() 741 id->cpu, pbf, req); in mbox_set_pbf_fact_status() 757 id->cpu, CONFIG_TDP, in _get_fact_bucket_info() 765 id->cpu, i, level, resp); in _get_fact_bucket_info() 778 id->cpu, CONFIG_TDP, in _get_fact_bucket_info() 786 id->cpu, i, level, k, resp); in _get_fact_bucket_info() 810 id->cpu, resp); in mbox_get_fact_info() [all …]
|
| A D | isst-core-tpmi.c | 120 if (id->punit < 0) in tpmi_is_punit_valid() 123 info.socket_id = id->pkg; in tpmi_is_punit_valid() 140 info.socket_id = id->pkg; in tpmi_read_pm_config() 157 info.socket_id = id->pkg; in tpmi_get_config_levels() 182 info.socket_id = id->pkg; in tpmi_get_ctdp_control() 234 info.socket_id = id->pkg; in tpmi_get_tdp_info() 297 info.socket_id = id->pkg; in tpmi_get_coremask_info() 323 info.socket_id = id->pkg; in tpmi_get_get_trls() 589 if (tmp_id != id->pkg) in _set_uncore_min_max() 674 id->punit = i; in tpmi_pm_qos_config() [all …]
|
| A D | isst-config.c | 449 if (id->pkg == tid.pkg && id->die == tid.die && id->punit == tid.punit) in is_cpu_in_power_domain() 568 if (id.pkg < 0 || id.die < 0 || id.punit < 0) in for_each_online_power_domain_in_set() 571 id.die = id.die % (max_die_id_package_0 + 1); in for_each_online_power_domain_in_set() 573 valid_mask[id.pkg][id.die] = 1; in for_each_online_power_domain_in_set() 575 if (cpus[id.pkg][id.die][id.punit] == -1) in for_each_online_power_domain_in_set() 576 cpus[id.pkg][id.die][id.punit] = i; in for_each_online_power_domain_in_set() 584 id.die = get_physical_die_id(id.cpu); in for_each_online_power_domain_in_set() 603 id.die = get_physical_die_id(id.cpu); in for_each_online_power_domain_in_set() 605 id.die = id.pkg; in for_each_online_power_domain_in_set() 716 if (id->pkg < 0 || id->die < 0 || id->punit < 0) in get_cpu_count() [all …]
|
| /tools/testing/selftests/drivers/net/netdevsim/ |
| A D | nexthop.sh | 124 $IP nexthop del id 1 165 $IP nexthop del id 10 176 $IP nexthop del id 10 225 $IP nexthop del id 10 241 $IP nexthop del id 10 445 $IP nexthop delete id 3 619 $IP nexthop delete id 3 881 $IP nexthop del id 1 909 $IP nexthop del id 1 928 $IP nexthop del id 1 [all …]
|
| /tools/perf/tests/ |
| A D | topology.c | 71 struct aggr_cpu_id id; in check_cpu_topology() local 128 id = aggr_cpu_id__cpu(cpu, NULL); in check_cpu_topology() 130 cpu.cpu == id.cpu.cpu); in check_cpu_topology() 138 env->cpu[cpu.cpu].die_id == id.die); in check_cpu_topology() 145 id = aggr_cpu_id__core(cpu, NULL); in check_cpu_topology() 153 env->cpu[cpu.cpu].die_id == id.die); in check_cpu_topology() 160 id = aggr_cpu_id__die(cpu, NULL); in check_cpu_topology() 165 env->cpu[cpu.cpu].die_id == id.die); in check_cpu_topology() 175 id = aggr_cpu_id__socket(cpu, NULL); in check_cpu_topology() 188 id = aggr_cpu_id__node(cpu, NULL); in check_cpu_topology() [all …]
|
| /tools/lib/bpf/ |
| A D | btf_relocate.c | 63 __u32 id; member 78 *id = r->id_map[*id]; in btf_relocate_rewrite_type_id() 201 for (id = 0; id < r->nr_dist_base_types; id++) { in btf_relocate_map_distilled_base() 204 info[id].id = id; in btf_relocate_map_distilled_base() 230 for (id = 1; id < r->nr_base_types; id++) { in btf_relocate_map_distilled_base() 239 for (id = 1; id < r->nr_base_types; id++) { in btf_relocate_map_distilled_base() 248 base_info.id = id; in btf_relocate_map_distilled_base() 284 id, dist_info->id); in btf_relocate_map_distilled_base() 359 r->id_map[dist_info->id] = id; in btf_relocate_map_distilled_base() 364 for (id = 1; id < r->nr_dist_base_types; id++) { in btf_relocate_map_distilled_base() [all …]
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | linked_list.c | 252 int id, lid, hid, nid; in init_btf() local 259 if (!ASSERT_EQ(id, 1, "btf__add_int")) in init_btf() 280 int id, err; in list_and_rb_node_same_struct() local 332 int id, err; in test_btf() local 338 id = btf__add_struct(btf, "foo", 24); in test_btf() 361 id = btf__add_struct(btf, "foo", 16); in test_btf() 370 id = btf__add_struct(btf, "baz", 16); in test_btf() 387 id = btf__add_struct(btf, "foo", 36); in test_btf() 413 id = btf__add_struct(btf, "foo", 24); in test_btf() 433 id = btf__add_struct(btf, "foo", 24); in test_btf() [all …]
|
| A D | btf_write.c | 15 int id, err, str_off; in gen_btf() local 28 ASSERT_EQ(id, 1, "int_id"); in gen_btf() 43 ASSERT_ERR(id, "int_bad_sz"); in gen_btf() 46 ASSERT_ERR(id, "int_bad_enc"); in gen_btf() 55 id = btf__add_ptr(btf, 1); in gen_btf() 56 ASSERT_EQ(id, 2, "ptr_id"); in gen_btf() 64 ASSERT_EQ(id, 3, "const_id"); in gen_btf() 89 ASSERT_EQ(id, 6, "array_id"); in gen_btf() 131 ASSERT_EQ(id, 8, "union_id"); in gen_btf() 157 ASSERT_EQ(id, 9, "enum_id"); in gen_btf() [all …]
|
| A D | libbpf_str.c | 26 int i, n, id; in test_libbpf_bpf_attach_type_str() local 34 if (!ASSERT_GT(id, 0, "bpf_attach_type_id")) in test_libbpf_bpf_attach_type_str() 36 t = btf__type_by_id(btf, id); in test_libbpf_bpf_attach_type_str() 71 int i, n, id; in test_libbpf_bpf_link_type_str() local 79 if (!ASSERT_GT(id, 0, "bpf_link_type_id")) in test_libbpf_bpf_link_type_str() 81 t = btf__type_by_id(btf, id); in test_libbpf_bpf_link_type_str() 116 int i, n, id; in test_libbpf_bpf_map_type_str() local 124 if (!ASSERT_GT(id, 0, "bpf_map_type_id")) in test_libbpf_bpf_map_type_str() 126 t = btf__type_by_id(btf, id); in test_libbpf_bpf_map_type_str() 173 int i, n, id; in test_libbpf_bpf_prog_type_str() local [all …]
|
| /tools/bpf/resolve_btfids/ |
| A D | main.c | 105 int id; member 217 id = zalloc(sizeof(*id)); in btf_id__add() 218 if (id) { in btf_id__add() 242 if (id) { in get_id() 526 id->addr[id->addr_cnt++] = sym.st_value; in symbols_collect() 605 if (id->id) { in symbols_resolve() 607 str, id->id, type_id, id->id); in symbols_resolve() 610 id->id = type_id; in symbols_resolve() 630 if (!id->id && !id->is_set && !id->is_set8) { in id_patch() 640 idx, id->id, id->name); in id_patch() [all …]
|
| /tools/testing/selftests/net/ |
| A D | test_vxlan_under_vrf.sh | 71 id=$1 73 ip link set veth-hv-$id netns ${hv[$id]} 74 ip -netns ${hv[$id]} link set veth-hv-$id name veth0 78 ip -netns ${hv[$id]} addr add 172.16.0.$id/24 dev veth0 79 ip -netns ${hv[$id]} link set veth0 up 82 ip -netns ${hv[$id]} link set br0 up 84 ip -netns ${hv[$id]} link add vxlan0 type vxlan id 10 local 172.16.0.$id dev veth0 dstport 4789 98 id=$1 102 ip link set veth-tap netns ${hv[$id]} 108 ip link set veth-hv netns ${vm[$id]} [all …]
|
| /tools/perf/util/ |
| A D | perf_regs.c | 38 reg_name = __perf_reg_name_csky(id); in perf_reg_name() 42 reg_name = __perf_reg_name_mips(id); in perf_reg_name() 46 reg_name = __perf_reg_name_riscv(id); in perf_reg_name() 48 reg_name = __perf_reg_name_s390(id); in perf_reg_name() 50 reg_name = __perf_reg_name_x86(id); in perf_reg_name() 52 reg_name = __perf_reg_name_arm(id); in perf_reg_name() 67 if (regs->cache_mask & (1ULL << id)) in perf_reg_value() 70 if (!(mask & (1ULL << id))) in perf_reg_value() 73 for (i = 0; i < id; i++) { in perf_reg_value() 78 regs->cache_mask |= (1ULL << id); in perf_reg_value() [all …]
|
| A D | perf_regs.h | 31 const char *perf_reg_name(int id, const char *arch); 32 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id); 35 const char *__perf_reg_name_arm64(int id); 38 const char *__perf_reg_name_arm(int id); 41 const char *__perf_reg_name_csky(int id); 44 const char *__perf_reg_name_loongarch(int id); 47 const char *__perf_reg_name_mips(int id); 50 const char *__perf_reg_name_powerpc(int id); 53 const char *__perf_reg_name_riscv(int id); 56 const char *__perf_reg_name_s390(int id); [all …]
|
| A D | expr.h | 24 int ids__insert(struct hashmap *ids, const char *id); 35 void expr__del_id(struct expr_parse_ctx *ctx, const char *id); 36 int expr__add_id(struct expr_parse_ctx *ctx, const char *id); 37 int expr__add_id_val(struct expr_parse_ctx *ctx, const char *id, double val); 38 int expr__add_id_val_source_count(struct expr_parse_ctx *ctx, const char *id, 41 int expr__get_id(struct expr_parse_ctx *ctx, const char *id, 45 int expr__resolve_id(struct expr_parse_ctx *ctx, const char *id, 57 double expr__has_event(const struct expr_parse_ctx *ctx, bool compute_ids, const char *id); 58 double expr__strcmp_cpuid_str(const struct expr_parse_ctx *ctx, bool compute_ids, const char *id);
|
| /tools/testing/selftests/bpf/progs/ |
| A D | cgrp_kfunc_common.h | 32 s32 id; in cgrps_kfunc_map_value_lookup() local 35 status = bpf_probe_read_kernel(&id, sizeof(id), &cgrp->self.id); in cgrps_kfunc_map_value_lookup() 39 return bpf_map_lookup_elem(&__cgrps_kfunc_map, &id); in cgrps_kfunc_map_value_lookup() 47 s32 id; in cgrps_kfunc_map_insert() local 49 status = bpf_probe_read_kernel(&id, sizeof(id), &cgrp->self.id); in cgrps_kfunc_map_insert() 54 status = bpf_map_update_elem(&__cgrps_kfunc_map, &id, &local, BPF_NOEXIST); in cgrps_kfunc_map_insert() 58 v = bpf_map_lookup_elem(&__cgrps_kfunc_map, &id); in cgrps_kfunc_map_insert() 60 bpf_map_delete_elem(&__cgrps_kfunc_map, &id); in cgrps_kfunc_map_insert() 66 bpf_map_delete_elem(&__cgrps_kfunc_map, &id); in cgrps_kfunc_map_insert()
|
| /tools/testing/selftests/net/forwarding/ |
| A D | router_mpath_nh_res.sh | 141 ip nexthop del id 103 142 ip nexthop del id 101 143 ip nexthop del id 102 144 ip nexthop del id 106 145 ip nexthop del id 104 146 ip nexthop del id 105 191 ip nexthop del id 201 192 ip nexthop del id 202 193 ip nexthop del id 204 194 ip nexthop del id 205 [all …]
|
| A D | tc_common.sh | 11 local id=$1 16 tc_rule_handle_stats_get "$id" "$handle" > /dev/null 21 local id=$1 26 tc_rule_handle_stats_get "$id" "$handle" > /dev/null 31 local id=$1 35 tc_rule_handle_stats_get "$id" "$handle" > /dev/null
|
| /tools/testing/radix-tree/ |
| A D | idr-test.c | 29 idr_remove(idr, id); in item_idr_remove() 44 int id; in idr_alloc_test() local 175 BUG_ON(id < 0); in idr_u32_cb() 183 u32 id = handle; in idr_u32_test1() local 187 BUG_ON(idr_alloc_u32(idr, DUMMY_PTR, &id, id, GFP_KERNEL)); in idr_u32_test1() 225 int i, id; in idr_align_test() local 291 idr_alloc(&find_idr, xa_mk_value(id), id, id + 1, GFP_KERNEL); in idr_throbber() 315 int id = 0; in idr_find_test_1() local 318 if ((id != anchor_id && id != throbber_id) || in idr_find_test_1() 388 unsigned int id; in idr_checks() local [all …]
|
| /tools/power/cpupower/utils/idle_monitor/ |
| A D | hsw_ext_idle.c | 35 .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 …]
|
| A D | snb_idle.c | 33 .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 …]
|
| A D | nhm_idle.c | 36 .id = C3, 43 .id = C6, 51 .id = PC3, 58 .id = PC6, 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() 118 nhm_cstates[id].name, in nhm_get_count_percent() [all …]
|