Home
last modified time | relevance | path

Searched refs:table (Results 1 – 25 of 116) sorted by relevance

12345

/tools/perf/util/
A Dthreads.c26 struct threads_table_entry *table = &threads->table[i]; in threads__init() local
29 init_rwsem(&table->lock); in threads__init()
38 struct threads_table_entry *table = &threads->table[i]; in threads__exit() local
50 struct threads_table_entry *table = &threads->table[i]; in threads__nr() local
54 up_read(&table->lock); in threads__nr()
69 th = table->last_match; in __threads_table_entry__get_last_match()
89 up_write(&table->lock); in threads_table_entry__set_last_match()
103 up_read(&table->lock); in threads__find()
138 struct threads_table_entry *table = &threads->table[i]; in threads__remove_all_threads() local
160 if (table->last_match && RC_CHK_EQUAL(table->last_match, thread)) in threads__remove()
[all …]
A Dsyscalltbl.c57 if (table && id >= 0 && id < table->num_to_name_len) in syscalltbl__name()
58 return table->num_to_name[id]; in syscalltbl__name()
81 if (!table) in syscalltbl__id()
85 key.tbl = table->num_to_name; in syscalltbl__id()
86 id = bsearch(&key, table->sorted_names, table->sorted_names_len, in syscalltbl__id()
96 if (!table) in syscalltbl__num_idx()
99 return table->sorted_names_len; in syscalltbl__num_idx()
106 if (!table) in syscalltbl__id_at_idx()
110 return table->sorted_names[idx]; in syscalltbl__id_at_idx()
117 for (int i = *idx + 1; table && i < table->sorted_names_len; ++i) { in syscalltbl__strglobmatch_next()
[all …]
A Dmetricgroup.c415 return d->fn(pm, table, d->data); in metricgroup__sys_event_iter()
428 if (table) { in metricgroup__for_each_metric()
681 const struct pmu_metrics_table *table; member
780 root_metric, visited, table); in resolve_metric()
918 table); in __add_metric()
1041 /*visited_metrics=*/NULL, table); in metricgroup__add_metric_callback()
1498 if (!table) in metricgroup__parse_groups()
1505 /*fake_pmu=*/false, table); in metricgroup__parse_groups()
1518 /*fake_pmu=*/true, table); in metricgroup__parse_groups_test()
1543 if (!table) in metricgroup__has_metric_or_groups()
[all …]
/tools/power/acpi/tools/acpidump/
A Dapdump.c40 *(u32 *)table->signature); in ap_is_valid_header()
48 table->length); in ap_is_valid_header()
83 status = acpi_ut_verify_checksum(table, table->length); in ap_is_valid_checksum()
88 table->signature); in ap_is_valid_checksum()
123 return (table->length); in ap_get_table_length()
224 ACPI_FREE(table); in ap_dump_all_tables()
275 ACPI_FREE(table); in ap_dump_table_by_address()
325 &table, &address); in ap_dump_table_by_name()
341 ACPI_FREE(table); in ap_dump_table_by_name()
374 if (!table) { in ap_dump_table_from_file()
[all …]
A Dapfiles.c104 int ap_write_to_binary_file(struct acpi_table_header *table, u32 instance) in ap_write_to_binary_file() argument
114 table_length = ap_get_table_length(table); in ap_write_to_binary_file()
118 if (ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_write_to_binary_file()
121 ACPI_COPY_NAMESEG(filename, table->signature); in ap_write_to_binary_file()
142 table->signature, filename, table->length, in ap_write_to_binary_file()
143 table->length); in ap_write_to_binary_file()
154 actual = fwrite(table, 1, table_length, file); in ap_write_to_binary_file()
A Dacpidump.h71 u8 ap_is_valid_header(struct acpi_table_header *table);
73 u8 ap_is_valid_checksum(struct acpi_table_header *table);
75 u32 ap_get_table_length(struct acpi_table_header *table);
82 int ap_write_to_binary_file(struct acpi_table_header *table, u32 instance);
/tools/arch/x86/lib/
A Dinat.c29 const insn_attr_t *table; in inat_get_escape_attribute() local
35 if (!table) in inat_get_escape_attribute()
39 if (!table) in inat_get_escape_attribute()
42 return table[opcode]; in inat_get_escape_attribute()
48 const insn_attr_t *table; in inat_get_group_attribute() local
54 if (!table) in inat_get_group_attribute()
58 if (!table) in inat_get_group_attribute()
68 const insn_attr_t *table; in inat_get_avx_attribute() local
73 if (!table) in inat_get_avx_attribute()
78 if (!table) in inat_get_avx_attribute()
[all …]
/tools/testing/selftests/net/netfilter/
A Dnft_audit.sh26 add table t
86 for table in t1 t2; do
87 do_test "nft add table $table" \
88 "table=$table family=2 entries=1 op=nft_register_table"
90 do_test "nft add chain $table c1" \
93 do_test "nft add chain $table c2; add chain $table c3" \
96 cmd="add rule $table c1 counter"
99 "table=$table family=2 entries=1 op=nft_register_rule"
102 "table=$table family=2 entries=2 op=nft_register_rule"
108 cmd+="$sep add rule $table $chain counter"
[all …]
A Dconntrack_vrf.sh59 if ! ip -net "$ns0" li add tvrf type vrf table 9876; then
88 table testct {
142 table ip nat {
168 if ip netns exec "$ns0" nft list table ip nat |grep -q 'counter packets 1' &&
169 ip netns exec "$ns0" nft list table ip nat |grep -q 'untracked counter packets [1-9]'; then
189 table ip nat {
203 if ip netns exec "$ns0" nft list table ip nat |grep -q 'counter packets 1'; then
A Dnft_fib.sh43 table inet filter {
56 table inet filter {
69 table inet filter {
84 table $family filter {
134 ip netns exec "$1" nft flush table ip filter
135 ip netns exec "$1" nft flush table ip6 filter
166 table inet filter {
194 ip netns exec "$ns" nft list table inet filter
345 table inet t {
807 ip -net "$nsrouter" rule add from all table 128
[all …]
A Dnft_queue.sh91 table inet $name {
127 table inet countrules {
180 table $proto blackh {
323 table inet filter {
357 if ! ip -net "$ns1" link add tvrf type vrf table 9876;then
368 table inet filter {
446 table inet sctpq {
478 table inet sctpq {
499 if ! ip netns exec "$ns1" nft delete table inet sctpq; then
525 table inet udpq {
[all …]
/tools/perf/tests/
A Dpfm.c35 } table[] = { in test__pfm_events() local
73 table[i].events, in test__pfm_events()
75 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_events()
77 table[i].nr_events); in test__pfm_events()
78 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_events()
97 } table[] = { in test__pfm_group() local
158 table[i].events, in test__pfm_group()
160 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_group()
162 table[i].nr_events); in test__pfm_group()
163 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_group()
[all …]
A Dpmu-events.c478 if (!table || !sys_event_table) in test__pmu_event_table()
481 err = pmu_events_table__for_each_event(table, /*pmu=*/ NULL, in test__pmu_event_table()
527 if (!table) in __test_core_pmu_event_aliases()
542 pmu->events_table = table; in __test_core_pmu_event_aliases()
543 pmu_add_cpu_aliases_table(pmu, table); in __test_core_pmu_event_aliases()
575 struct perf_pmu_test_event const **table; in __test_uncore_pmu_event_aliases() local
610 for (table = &test_pmu->aliases[0]; *table; table++) in __test_uncore_pmu_event_aliases()
620 for (table = &test_pmu->aliases[0]; *table; table++) { in __test_uncore_pmu_event_aliases()
621 struct perf_pmu_test_event test_event = **table; in __test_uncore_pmu_event_aliases()
841 const struct pmu_metrics_table *table, in test__parsing_callback() argument
[all …]
/tools/perf/pmu-events/
A Dpmu-events.h86 const struct pmu_events_table *table,
90 const struct pmu_metrics_table *table,
93 int pmu_events_table__for_each_event(const struct pmu_events_table *table,
104 int pmu_events_table__find_event(const struct pmu_events_table *table,
109 size_t pmu_events_table__num_events(const struct pmu_events_table *table,
112 int pmu_metrics_table__for_each_metric(const struct pmu_metrics_table *table, pmu_metric_iter_fn fn,
121 int pmu_metrics_table__find_metric(const struct pmu_metrics_table *table,
A Dempty-pmu-events.c409 ret = fn(&pe, table, data); in pmu_events_table__for_each_event_pmu()
454 return fn ? fn(&pe, table, data) : 0; in pmu_events_table__find_event_pmu()
464 for (size_t i = 0; i < table->num_pmus; i++) { in pmu_events_table__for_each_event()
479 int pmu_events_table__find_event(const struct pmu_events_table *table, in pmu_events_table__find_event() argument
485 for (size_t i = 0; i < table->num_pmus; i++) { in pmu_events_table__find_event()
505 for (size_t i = 0; i < table->num_pmus; i++) { in pmu_events_table__num_events()
529 ret = fn(&pm, table, data); in pmu_metrics_table__for_each_metric_pmu()
574 return fn ? fn(&pm, table, data) : 0; in pmu_metrics_table__find_metric_pmu()
583 for (size_t i = 0; i < table->num_pmus; i++) { in pmu_metrics_table__for_each_metric()
584 int ret = pmu_metrics_table__for_each_metric_pmu(table, &table->pmus[i], in pmu_metrics_table__for_each_metric()
[all …]
A DREADME45 (one table like the following, per JSON file; table name 'pme_power8'
61 - A 'mapping table' that maps each CPU of the architecture, to its
62 'PMU events table'
69 .table = pme_power8
81 to a single 'PMU events table'.
83 2. The 'pmu-events.h' has an extern declaration for the mapping table
84 and the generated 'pmu-events.c' defines this table.
90 matching events table and builds aliases for those events. This allows
/tools/testing/selftests/net/
A Dfib-onlink-tests.sh180 ip li add ${VRF} type vrf table ${VRF_TABLE}
224 ip ro flush table ${VRF_TABLE}
225 ip -6 ro flush table ${VRF_TABLE}
234 local table="$1"
244 run_cmd ip ro add table "${table}" "${prefix}"/32 via "${gw}" "${dev}" onlink
250 local table="$1"
260 run_cmd ip ro add table "${table}" "${prefix}"/32 \
332 local table="$1"
342 run_cmd ip -6 ro add table "${table}" "${prefix}"/128 via "${gw}" "${dev}" onlink
348 local table="$1"
[all …]
A Dfib_rule_tests.sh156 $IP -6 rule add $match table $RTABLE
172 $IP -6 rule add $match table $RTABLE 2>/dev/null
177 $IP -6 rule del $match table $RTABLE
398 $IP -6 rule add dsfield 0x04 table $RTABLE_PEER
432 $IP -6 rule add dscp 0x3f table $RTABLE_PEER
450 $IP -6 rule del dscp 0x3f table $RTABLE_PEER
475 $IP rule add $match table $RTABLE
491 $IP rule add $match table $RTABLE 2>/dev/null
496 $IP rule del $match table $RTABLE
722 $IP -4 rule add dscp 0x3f table $RTABLE_PEER
[all …]
A Dudpgso.sh23 ip route del local 10.0.0.1/32 table local dev lo
24 ip route del local fd00::1/128 table local dev lo
26 ip route add local 10.0.0.1/32 table local dev lo mtu 1500
27 ip route add local fd00::1/128 table local dev lo mtu 1500
/tools/testing/selftests/drivers/net/mlxsw/
A Dfib.sh103 ip -n $ns route add table local 192.0.2.1/32 dev dummy1
107 ip -n $ns route add table main 192.0.2.1/32 dev dummy1
115 ip -n $ns route add table main 192.0.2.2/32 dev dummy1
119 ip -n $ns route add table local 192.0.2.2/32 dev dummy1
200 ip -n $ns route add table local 2001:db8:1::1/128 dev dummy1
204 ip -n $ns route add table main 2001:db8:1::1/128 dev dummy1
212 ip -n $ns route add table main 2001:db8:1::2/128 dev dummy1
216 ip -n $ns route add table local 2001:db8:1::2/128 dev dummy1
/tools/power/acpi/os_specific/service_layers/
A Doslinuxtbl.c38 struct acpi_table_header **table);
59 struct acpi_table_header **table,
67 struct acpi_table_header **table,
195 *table = local_table; in acpi_os_get_table_by_address()
245 instance, table, address); in acpi_os_get_table_by_name()
379 table, address); in acpi_os_get_table_by_index()
975 *table = local_table; in osl_get_bios_table()
1115 *table = mapped_table; in osl_map_table()
1133 if (table) { in osl_unmap_table()
1134 acpi_os_unmap_memory(table, ap_get_table_length(table)); in osl_unmap_table()
[all …]
/tools/arch/x86/tools/
A Dgen-insn-attr-x86.awk17 delete table
181 if (array_size(table) != 0) {
182 print_table(table, tname "[INAT_GROUP_TABLE_SIZE]",
203 if (array_size(table) != 0) {
204 print_table(table, tname "[INAT_OPCODE_TABLE_SIZE]",
272 if (idx in table)
286 table[idx] = "INAT_MAKE_ESCAPE(" escape[ref] ")"
373 table[idx] = add_flags(table[idx], "INAT_REX2_VARIANT")
375 table[idx] = add_flags(table[idx],flags)
379 table[idx] = add_flags(table[idx],variant)
/tools/testing/selftests/kvm/lib/loongarch/
A Dprocessor.c35 static void virt_set_pgtable(struct kvm_vm *vm, vm_paddr_t table, vm_paddr_t child) in virt_set_pgtable() argument
40 ptep = addr_gpa2hva(vm, table); in virt_set_pgtable()
49 vm_paddr_t child, table; in virt_arch_pgd_alloc() local
54 child = table = 0; in virt_arch_pgd_alloc()
57 table = vm_phy_page_alloc(vm, LOONGARCH_PAGE_TABLE_PHYS_MIN, in virt_arch_pgd_alloc()
59 TEST_ASSERT(table, "Fail to allocate page tale at level %d\n", i); in virt_arch_pgd_alloc()
60 virt_set_pgtable(vm, table, child); in virt_arch_pgd_alloc()
61 child = table; in virt_arch_pgd_alloc()
63 vm->pgd = table; in virt_arch_pgd_alloc()
/tools/perf/Documentation/
A Dperf-kallsyms.txt17 addresses and the addresses in the ELF kallsyms symbol table (for symbols in
24 Increase verbosity level, showing details about symbol table loading, etc.
/tools/bpf/bpftool/
A Dmain.h116 int build_pinned_obj_table(struct hashmap *table,
118 void delete_pinned_obj_table(struct hashmap *table);
119 __weak int build_obj_refs_table(struct hashmap **table,
121 __weak void delete_obj_refs_table(struct hashmap *table);
122 __weak void emit_obj_refs_json(struct hashmap *table, __u32 id,
124 __weak void emit_obj_refs_plain(struct hashmap *table, __u32 id,

Completed in 44 milliseconds

12345