Home
last modified time | relevance | path

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

12345678910

/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/lib/bpf/
Dbtf_dump.c179 static int btf_dump_order_type(struct btf_dump *d, __u32 id, bool through_ptr);
180 static void btf_dump_emit_type(struct btf_dump *d, __u32 id, __u32 cont_id);
198 int btf_dump__dump_type(struct btf_dump *d, __u32 id) in btf_dump__dump_type() argument
202 if (id > btf__get_nr_types(d->btf)) in btf_dump__dump_type()
227 err = btf_dump_order_type(d, id, false); in btf_dump__dump_type()
310 static int btf_dump_add_emit_queue_id(struct btf_dump *d, __u32 id) in btf_dump_add_emit_queue_id() argument
325 d->emit_queue[d->emit_queue_cnt++] = id; in btf_dump_add_emit_queue_id()
403 static int btf_dump_order_type(struct btf_dump *d, __u32 id, bool through_ptr) in btf_dump_order_type() argument
416 struct btf_dump_type_aux_state *tstate = &d->type_states[id]; in btf_dump_order_type()
425 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/perf/util/
Dperf_regs.c27 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id) in perf_reg_value() argument
32 if (regs->cache_mask & (1ULL << id)) in perf_reg_value()
35 if (!(mask & (1ULL << id))) in perf_reg_value()
38 for (i = 0; i < id; i++) { in perf_reg_value()
43 regs->cache_mask |= (1ULL << id); in perf_reg_value()
44 regs->cache_regs[id] = regs->regs[idx]; in perf_reg_value()
47 *valp = regs->cache_regs[id]; in perf_reg_value()
Dcpumap.h35 static inline int cpu_map__id_to_socket(int id) in cpu_map__id_to_socket() argument
37 return id >> 24; in cpu_map__id_to_socket()
40 static inline int cpu_map__id_to_die(int id) in cpu_map__id_to_die() argument
42 return (id >> 16) & 0xff; in cpu_map__id_to_die()
45 static inline int cpu_map__id_to_cpu(int id) in cpu_map__id_to_cpu() argument
47 return id & 0xffff; in cpu_map__id_to_cpu()
Dsyscalltbl.c40 int id; member
75 entries[j].id = i; in syscalltbl__init_native()
104 const char *syscalltbl__name(const struct syscalltbl *tbl __maybe_unused, int id) in syscalltbl__name() argument
106 return id <= syscalltbl_native_max_id ? syscalltbl_native[id]: NULL; in syscalltbl__name()
115 return sc ? sc->id : -1; in syscalltbl__id()
126 return syscalls[i].id; in syscalltbl__strglobmatch_next()
156 const char *syscalltbl__name(const struct syscalltbl *tbl, int id) in syscalltbl__name() argument
158 return audit_syscall_to_name(id, tbl->audit_machine); in syscalltbl__name()
Dbpf-event.c40 int id = event->bpf.id; in machine__process_bpf_event_load() local
47 info_node = perf_env__find_bpf_prog_info(env, id); in machine__process_bpf_event_load()
61 map->dso->bpf_prog.id = id; in machine__process_bpf_event_load()
107 node->id = btf_id; in perf_env__fetch_btf()
268 .id = info->id, in perf_event__synthesize_one_bpf_prog()
305 __u32 id = 0; in perf_event__synthesize_bpf_events() local
313 err = bpf_prog_get_next_id(id, &id); in perf_event__synthesize_bpf_events()
326 fd = bpf_prog_get_fd_by_id(id); in perf_event__synthesize_bpf_events()
329 __func__, id); in perf_event__synthesize_bpf_events()
348 static void perf_env__add_bpf_info(struct perf_env *env, u32 id) in perf_env__add_bpf_info() argument
[all …]
/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 …]
Dmperf_monitor.c30 static int mperf_get_count_freq(unsigned int id, unsigned long long *count,
38 .id = C0,
45 .id = Cx,
53 .id = AVG_FREQ,
117 static int mperf_get_count_percent(unsigned int id, double *percent, in mperf_get_count_percent() argument
126 if (id != C0 && id != Cx) in mperf_get_count_percent()
136 mperf_cstates[id].name, mperf_diff, tsc_diff); in mperf_get_count_percent()
141 mperf_cstates[id].name, mperf_diff, timediff); in mperf_get_count_percent()
145 if (id == Cx) in mperf_get_count_percent()
149 mperf_cstates[id].name, mperf_diff, aperf_diff, cpu); in mperf_get_count_percent()
[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))
Dsctop.py54 common_callchain, id, args): argument
59 syscalls[id] += 1
61 syscalls[id] = 1
65 id, args): argument
81 for id, val in sorted(syscalls.items(),
85 print("%-40s %10d" % (syscall_name(id), val))
Dsyscall-counts-by-pid.py43 common_callchain, id, args): argument
48 syscalls[common_comm][common_pid][id] += 1
50 syscalls[common_comm][common_pid][id] = 1
54 id, args): argument
73 for id, val in sorted(syscalls[comm][pid].items(),
75 print(" %-38s %10d" % (syscall_name(id), val))
Dexport-to-sqlite.py718 def ptwrite(id, raw_buf): argument
723 ptwrite_query.addBindValue(str(id))
728 def cbr(id, raw_buf): argument
733 cbr_query.addBindValue(str(id))
739 def mwait(id, raw_buf): argument
744 mwait_query.addBindValue(str(id))
749 def pwre(id, raw_buf): argument
755 pwre_query.addBindValue(str(id))
761 def exstop(id, raw_buf): argument
765 exstop_query.addBindValue(str(id))
[all …]
/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/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 …]
/tools/bpf/bpftool/Documentation/
Dbpftool-net.rst28 | *PROG* := { **id** *PROG_ID* | **pinned** *FILE* | **tag** *PROG_TAG* }
103 eth0(2) driver id 198
106 eth0(2) htb name prefix_matcher.o:[cls_prefix_matcher_htb] id 111727 act []
107 eth0(2) clsact/ingress fbflow_icmp id 130246 act []
108 eth0(2) clsact/egress prefix_matcher.o:[cls_prefix_matcher_clsact] id 111726
109 eth0(2) clsact/egress cls_fg_dscp id 108619 act []
110 eth0(2) clsact/egress fbflow_egress id 130245
122 "id": 198
130 "id": 111727,
137 "id": 130246,
[all …]
/tools/iio/
Diio_event_monitor.c126 enum iio_chan_type type = IIO_EVENT_CODE_EXTRACT_CHAN_TYPE(event->id); in event_is_known()
127 enum iio_modifier mod = IIO_EVENT_CODE_EXTRACT_MODIFIER(event->id); in event_is_known()
128 enum iio_event_type ev_type = IIO_EVENT_CODE_EXTRACT_TYPE(event->id); in event_is_known()
129 enum iio_event_direction dir = IIO_EVENT_CODE_EXTRACT_DIR(event->id); in event_is_known()
246 enum iio_chan_type type = IIO_EVENT_CODE_EXTRACT_CHAN_TYPE(event->id); in print_event()
247 enum iio_modifier mod = IIO_EVENT_CODE_EXTRACT_MODIFIER(event->id); in print_event()
248 enum iio_event_type ev_type = IIO_EVENT_CODE_EXTRACT_TYPE(event->id); in print_event()
249 enum iio_event_direction dir = IIO_EVENT_CODE_EXTRACT_DIR(event->id); in print_event()
250 int chan = IIO_EVENT_CODE_EXTRACT_CHAN(event->id); in print_event()
251 int chan2 = IIO_EVENT_CODE_EXTRACT_CHAN2(event->id); in print_event()
[all …]
/tools/testing/selftests/net/
Dtest_vxlan_under_vrf.sh81 ip -netns hv-$hv link add vxlan0 type vxlan id 10 local 172.16.0.$hv dev veth0 dstport 4789
95 id=$1
97 ip netns add vm-$id
100 ip link set veth-tap netns hv-$id
101 ip -netns hv-$id link set veth-tap master br0
102 ip -netns hv-$id link set veth-tap up
104 ip link set veth-hv netns vm-$id
105 ip -netns vm-$id addr add 10.0.0.$id/24 dev veth-hv
106 ip -netns vm-$id link set veth-hv up
/tools/perf/lib/
Devlist.c186 int cpu, int thread, u64 id) in perf_evlist__id_hash() argument
191 sid->id = id; in perf_evlist__id_hash()
193 hash = hash_64(sid->id, PERF_EVLIST__HLIST_BITS); in perf_evlist__id_hash()
199 int cpu, int thread, u64 id) in perf_evlist__id_add() argument
201 perf_evlist__id_hash(evlist, evsel, cpu, thread, id); in perf_evlist__id_add()
202 evsel->id[evsel->ids++] = id; in perf_evlist__id_add()
211 u64 id; in perf_evlist__id_add_fd() local
214 ret = ioctl(fd, PERF_EVENT_IOC_ID, &id); in perf_evlist__id_add_fd()
239 id = read_data[id_idx]; in perf_evlist__id_add_fd()
242 perf_evlist__id_add(evlist, evsel, cpu, thread, id); in perf_evlist__id_add_fd()
/tools/bpf/bpftool/
Dbtf.c84 static int dump_btf_type(const struct btf *btf, __u32 id, in dump_btf_type() argument
95 jsonw_uint_field(w, "id", id); in dump_btf_type()
99 printf("[%u] %s '%s'", id, btf_kind_str[safe_kind], in dump_btf_type()
538 unsigned int id; in btf_parse_fd() local
548 id = strtoul(**argv, &endptr, 0); in btf_parse_fd()
555 fd = bpf_btf_get_fd_by_id(id); in btf_parse_fd()
558 id, strerror(errno)); in btf_parse_fd()
586 __u32 btf_id, id = 0; in build_btf_type_table() local
593 err = bpf_prog_get_next_id(id, &id); in build_btf_type_table()
596 err = bpf_map_get_next_id(id, &id); in build_btf_type_table()
[all …]

12345678910