Home
last modified time | relevance | path

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

12345

/tools/perf/util/
Dthreads.c9 return &threads->table[(unsigned int)tid % THREADS__TABLE_SIZE]; in threads__table()
26 struct threads_table_entry *table = &threads->table[i]; in threads__init() local
28 hashmap__init(&table->shard, key_hash, key_equal, NULL); in threads__init()
29 init_rwsem(&table->lock); in threads__init()
30 table->last_match = NULL; in threads__init()
38 struct threads_table_entry *table = &threads->table[i]; in threads__exit() local
40 hashmap__clear(&table->shard); in threads__exit()
41 exit_rwsem(&table->lock); in threads__exit()
50 struct threads_table_entry *table = &threads->table[i]; in threads__nr() local
52 down_read(&table->lock); in threads__nr()
[all …]
Dmetricgroup.c490 const struct pmu_metrics_table *table, in metricgroup__sys_event_iter() argument
504 return d->fn(pm, table, d->data); in metricgroup__sys_event_iter()
510 const struct pmu_metrics_table *table __maybe_unused, in metricgroup__add_to_mep_groups_callback()
521 const struct pmu_metrics_table *table; in metricgroup__print() local
528 table = pmu_metrics_table__find(); in metricgroup__print()
529 if (table) { in metricgroup__print()
530 pmu_metrics_table__for_each_metric(table, in metricgroup__print()
801 const struct pmu_metrics_table *table; member
806 const struct pmu_metrics_table *table,
818 const struct pmu_metrics_table *table);
[all …]
/tools/power/acpi/tools/acpidump/
Dapdump.c15 ap_dump_table_buffer(struct acpi_table_header *table,
30 u8 ap_is_valid_header(struct acpi_table_header *table) in ap_is_valid_header() argument
33 if (!ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_is_valid_header()
37 if (!acpi_ut_valid_nameseg(table->signature)) { in ap_is_valid_header()
40 *(u32 *)table->signature); in ap_is_valid_header()
46 if (table->length < sizeof(struct acpi_table_header)) { in ap_is_valid_header()
48 table->length); in ap_is_valid_header()
68 u8 ap_is_valid_checksum(struct acpi_table_header *table) in ap_is_valid_checksum() argument
73 if (ACPI_VALIDATE_RSDP_SIG(table->signature)) { in ap_is_valid_checksum()
78 rsdp = ACPI_CAST_PTR(struct acpi_table_rsdp, table); in ap_is_valid_checksum()
[all …]
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()
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/
Dinat.c29 const insn_attr_t *table; in inat_get_escape_attribute() local
34 table = inat_escape_tables[n][0]; in inat_get_escape_attribute()
35 if (!table) in inat_get_escape_attribute()
37 if (inat_has_variant(table[opcode]) && lpfx_id) { in inat_get_escape_attribute()
38 table = inat_escape_tables[n][lpfx_id]; 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
53 table = inat_group_tables[n][0]; in inat_get_group_attribute()
54 if (!table) in inat_get_group_attribute()
[all …]
/tools/testing/selftests/net/netfilter/
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" \
91 "table=$table family=2 entries=1 op=nft_register_chain"
93 do_test "nft add chain $table c2; add chain $table c3" \
94 "table=$table family=2 entries=2 op=nft_register_chain"
96 cmd="add rule $table c1 counter"
99 "table=$table family=2 entries=1 op=nft_register_rule"
[all …]
Dnft_fib.sh39 table inet filter {
52 table inet filter {
66 table inet filter {
91 …if ! ip netns exec "$ns" nft list table inet filter | grep 'fib saddr . iif' | grep "$address" | g…
93 ip netns exec "$ns" nft list table inet filter
168 ip netns exec "$nsrouter" nft flush table inet filter
219 ip -net "$nsrouter" rule add from all table 128
220 ip -net "$nsrouter" rule add from all iif veth0 table 129
221 ip -net "$nsrouter" route add table 128 to 10.0.1.0/24 dev veth0
222 ip -net "$nsrouter" route add table 129 to 10.0.2.0/24 dev veth1
[all …]
Dconntrack_vrf.sh65 if ! ip -net "$ns0" li add tvrf type vrf table 9876; then
99 table testct {
153 table ip nat {
179 if ip netns exec "$ns0" nft list table ip nat |grep -q 'counter packets 1' &&
180 ip netns exec "$ns0" nft list table ip nat |grep -q 'untracked counter packets [1-9]'; then
200 table ip nat {
214 if ip netns exec "$ns0" nft list table ip nat |grep -q 'counter packets 1'; then
226 table ip t {
Dnft_queue.sh89 table inet $name {
125 table inet countrules {
178 table $proto blackh {
201 if ! ip netns exec "$nsrouter" nft delete table "$proto" blackh; then
318 table inet filter {
352 if ! ip -net "$ns1" link add tvrf type vrf table 9876;then
360 ip -net "$ns1" route add 10.0.2.0/24 via 10.0.1.1 dev eth0 table 9876
363 table inet filter {
424 table inet sctpq {
441 if ! ip netns exec "$nsrouter" nft delete table inet sctpq; then
[all …]
Dnft_nat.sh159 table $family nat {
229 table $family nat {
351 table $family nat {
413 table $family nat {
504 table $family nat {
593 table $family nat {
628 if ! ip netns exec "$ns0" nft delete table "$family" nat;then
668 table $family nat {
704 if ! ip netns exec "$ns0" nft delete table "$family" nat;then
769 table $family filter {
[all …]
/tools/perf/tests/
Dpfm.c35 } table[] = { in test__pfm_events() local
66 for (i = 0; i < ARRAY_SIZE(table); i++) { in test__pfm_events()
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
151 for (i = 0; i < ARRAY_SIZE(table); i++) { in test__pfm_group()
158 table[i].events, in test__pfm_group()
160 TEST_ASSERT_EQUAL(table[i].events, in test__pfm_group()
[all …]
Dpmu-events.c420 const struct pmu_events_table *table __maybe_unused, in test__pmu_event_table_core_callback()
454 const struct pmu_events_table *table __maybe_unused, in test__pmu_event_table_sys_callback()
490 const struct pmu_events_table *table = find_core_events_table("testarch", "testcpu"); in test__pmu_event_table() local
498 if (!table || !sys_event_table) in test__pmu_event_table()
501 err = pmu_events_table__for_each_event(table, /*pmu=*/ NULL, in test__pmu_event_table()
545 const struct pmu_events_table *table = find_core_events_table("testarch", "testcpu"); in __test_core_pmu_event_aliases() local
547 if (!table) in __test_core_pmu_event_aliases()
563 pmu->events_table = table; in __test_core_pmu_event_aliases()
564 pmu_add_cpu_aliases_table(pmu, table); in __test_core_pmu_event_aliases()
568 res = pmu_events_table__find_event(table, pmu, "bp_l1_btb_correct", NULL, NULL); in __test_core_pmu_event_aliases()
[all …]
/tools/perf/pmu-events/
Dpmu-events.h76 const struct pmu_events_table *table,
80 const struct pmu_metrics_table *table,
83 int pmu_events_table__for_each_event(const struct pmu_events_table *table,
94 int pmu_events_table__find_event(const struct pmu_events_table *table,
99 size_t pmu_events_table__num_events(const struct pmu_events_table *table,
102 int pmu_metrics_table__for_each_metric(const struct pmu_metrics_table *table, pmu_metric_iter_fn fn,
Dempty-pmu-events.c305 static int pmu_events_table__for_each_event_pmu(const struct pmu_events_table *table, in pmu_events_table__for_each_event_pmu() argument
319 ret = fn(&pe, table, data); in pmu_events_table__for_each_event_pmu()
326 static int pmu_events_table__find_event_pmu(const struct pmu_events_table *table, in pmu_events_table__find_event_pmu() argument
364 return fn ? fn(&pe, table, data) : 0; in pmu_events_table__find_event_pmu()
369 int pmu_events_table__for_each_event(const struct pmu_events_table *table, in pmu_events_table__for_each_event() argument
374 for (size_t i = 0; i < table->num_pmus; i++) { in pmu_events_table__for_each_event()
375 const struct pmu_table_entry *table_pmu = &table->pmus[i]; in pmu_events_table__for_each_event()
382 ret = pmu_events_table__for_each_event_pmu(table, table_pmu, fn, data); in pmu_events_table__for_each_event()
389 int pmu_events_table__find_event(const struct pmu_events_table *table, in pmu_events_table__find_event() argument
395 for (size_t i = 0; i < table->num_pmus; i++) { in pmu_events_table__find_event()
[all …]
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/
Dfib_rule_tests.sh94 $IP route add table $RTABLE_PEER 198.51.100.11/32 via 192.0.2.11
97 $IP route add table $RTABLE_PEER 2001:db8::1:11/128 via 2001:db8::11
110 $IP link add name vrf0 up type vrf table $RTABLE_VRF
144 pref=$($IP -6 rule show $1 table $RTABLE | cut -d ":" -f 1)
156 $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
193 $IP -6 route add table $RTABLE default via $GW_IP6 dev $DEV onlink
313 $IP -6 rule add dsfield 0x04 table $RTABLE_PEER
338 $IP -6 rule del dsfield 0x04 table $RTABLE_PEER
[all …]
Dfib-onlink-tests.sh180 ip li add ${VRF} type vrf table ${VRF_TABLE}
182 ip ro add table ${VRF_TABLE} unreachable default metric 8192
183 ip -6 ro add table ${VRF_TABLE} unreachable default metric 8192
211 ip -6 ro add table ${VRF_TABLE} default via ${V6ADDRS[p7]/::[0-9]/::64}
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 \
[all …]
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
Dsctp_vrf.sh40 ip -n $SERVER_NS link add vrf-1 type vrf table 10
41 ip -n $SERVER_NS link add vrf-2 type vrf table 20
56 ip -n $SERVER_NS route add table 10 $CLIENT_IP4 dev veth1 src $SERVER_IP4
57 ip -n $SERVER_NS route add table 20 $CLIENT_IP4 dev veth2 src $SERVER_IP4
59 ip -n $SERVER_NS route add table 10 $CLIENT_IP6 dev veth1 src $SERVER_IP6
60 ip -n $SERVER_NS route add table 20 $CLIENT_IP6 dev veth2 src $SERVER_IP6
/tools/testing/selftests/drivers/net/mlxsw/
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/arch/x86/tools/
Dgen-insn-attr-x86.awk17 delete table
179 if (array_size(table) != 0) {
180 print_table(table, tname "[INAT_GROUP_TABLE_SIZE]",
201 if (array_size(table) != 0) {
202 print_table(table, tname "[INAT_OPCODE_TABLE_SIZE]",
270 if (idx in table)
284 table[idx] = "INAT_MAKE_ESCAPE(" escape[ref] ")"
366 table[idx] = add_flags(table[idx], "INAT_REX2_VARIANT")
368 table[idx] = add_flags(table[idx],flags)
372 table[idx] = add_flags(table[idx],variant)
/tools/power/acpi/os_specific/service_layers/
Doslinuxtbl.c38 struct acpi_table_header **table);
42 char *signature, struct acpi_table_header **table);
44 static void osl_unmap_table(struct acpi_table_header *table);
59 struct acpi_table_header **table,
67 struct acpi_table_header **table,
156 struct acpi_table_header **table) in acpi_os_get_table_by_address() argument
195 *table = local_table; in acpi_os_get_table_by_address()
221 struct acpi_table_header **table, in acpi_os_get_table_by_name() argument
240 osl_get_bios_table(signature, instance, table, address); in acpi_os_get_table_by_name()
245 instance, table, address); in acpi_os_get_table_by_name()
[all …]
/tools/bpf/bpftool/
Dmain.h115 int build_pinned_obj_table(struct hashmap *table,
117 void delete_pinned_obj_table(struct hashmap *table);
118 __weak int build_obj_refs_table(struct hashmap **table,
120 __weak void delete_obj_refs_table(struct hashmap *table);
121 __weak void emit_obj_refs_json(struct hashmap *table, __u32 id,
123 __weak void emit_obj_refs_plain(struct hashmap *table, __u32 id,
/tools/perf/Documentation/
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.

12345