Home
last modified time | relevance | path

Searched refs:item (Results 1 – 25 of 45) sorted by relevance

12

/tools/testing/radix-tree/
A Dtest.c11 struct item *
17 struct item *
39 struct item *item = item_create(index, 0); in item_insert() local
40 int err = radix_tree_insert(root, item->index, item); in item_insert()
63 struct item *item = radix_tree_delete(root, index); in item_delete() local
65 if (!item) in item_delete()
74 struct item *item = container_of(head, struct item, rcu_head); in item_free_rcu() local
81 struct item *item = xa_erase(xa, index); in item_delete_rcu() local
93 struct item *item; in item_check_present() local
107 struct item *item; in item_check_absent() local
[all …]
A Dmultiorder.c19 struct item *item = item_create(index, order); in item_insert_order() local
23 xas_store(&xas, item); in item_insert_order()
30 free(item); in item_insert_order()
37 struct item *item; in multiorder_iteration() local
77 struct item *item; in multiorder_tagged_iteration() local
115 assert(!xa_is_internal(item)); in multiorder_tagged_iteration()
142 assert(!xa_is_internal(item)); in multiorder_tagged_iteration()
183 struct item *item; in iterator_func() local
188 if (xas_retry(&xas, item)) in iterator_func()
247 struct item *item = xa_load(ptr, index); in load_worker() local
[all …]
A Dtest.h7 struct item { struct
13 struct item *item_create(unsigned long index, unsigned int order); argument
15 void item_sanity(struct item *item, unsigned long index);
16 void item_free(struct item *item, unsigned long index);
19 struct item *item_lookup(struct radix_tree_root *root, unsigned long index);
42 struct item *
44 struct item *
A Diteration_check.c24 struct item *item = item_create(index, 0); in my_item_insert() local
31 item->order = order; in my_item_insert()
34 xas_store(&xas, item); in my_item_insert()
42 free(item); in my_item_insert()
139 struct item *item; in remove_entries_fn() local
143 item = xa_erase(&array, pgoff); in remove_entries_fn()
144 if (item) in remove_entries_fn()
145 item_free(item, pgoff); in remove_entries_fn()
A Didr-test.c18 struct item *item = p; in item_idr_free() local
19 assert(item->index == id); in item_idr_free()
27 struct item *item = idr_find(idr, id); in item_idr_remove() local
30 free(item); in item_idr_remove()
45 struct item *item; in idr_alloc_test() local
138 struct item *item = item_create(i, 0); in idr_nowait_test() local
158 struct item *item = item_create(indices[i], 0); in idr_get_next_test() local
346 struct item *item = item_create(i, 0); in idr_checks() local
373 struct item *item = item_create(i, 0); in idr_checks() local
387 struct item *item; in idr_checks() local
[all …]
A Dtag_check.c91 struct item *item; in contract_checks() local
104 assert(radix_tree_gang_lookup_tag(&tree, (void **)&item, 0, 1, 0) == 1); in contract_checks()
105 assert(radix_tree_gang_lookup_tag(&tree, (void **)&item, 0, 1, 1) == 0); in contract_checks()
134 struct item *items[BATCH]; in gang_check()
144 struct item *item = items[i]; in gang_check() local
146 while (last_index < item->index) { in gang_check()
311 struct item *items[BATCH]; in single_check()
/tools/testing/ktest/
A Dconfig-bisect.pl329 if (defined($b{$item}) && $b{$item} ne $a{$item}) {
330 $ret{$item} = $b{$item};
348 if (!defined($a{$item})) {
349 $ret{$item} = $b{$item};
370 if (!defined($a{$item})) {
373 if ($a{$item} ne $b{$item}) {
480 doprint "Updating $item to $source_configs{$item}\n";
481 $tmp_config{$item} = $source_configs{$item};
530 doprint " $good_configs{$item}\t$bad_configs{$item}\n";
598 if ($good_configs{$item} ne $bad_configs{$item}) {
[all …]
/tools/perf/
A Dbuiltin-config.c41 struct perf_config_item *item = NULL; in set_config() local
61 if (!use_system_config && item->from_system_config) in set_config()
63 if (item->value) in set_config()
65 item->name, item->value); in set_config()
76 struct perf_config_item *item; in show_spec_config() local
88 if (strcmp(name, item->name) == 0) { in show_spec_config()
89 char *value = item->value; in show_spec_config()
106 struct perf_config_item *item; in show_config() local
111 perf_config_set__for_each_entry(set, section, item) { in show_config()
112 char *value = item->value; in show_config()
[all …]
/tools/perf/tests/
A Dhwmon_pmu.c125 if (write(file, item->value, strlen(item->value)) < 0) { in test_pmu_get()
259 enum hwmon_item item; in test__parse_hwmon_filename() member
267 .item = HWMON_ITEM_ACCURACY, in test__parse_hwmon_filename()
275 .item = HWMON_ITEM_INPUT, in test__parse_hwmon_filename()
283 .item = HWMON_ITEM_VID, in test__parse_hwmon_filename()
291 .item = HWMON_ITEM_CRIT, in test__parse_hwmon_filename()
307 .item = HWMON_ITEM_NONE, in test__parse_hwmon_filename()
315 .item = HWMON_ITEM_NONE, in test__parse_hwmon_filename()
324 enum hwmon_item item; in test__parse_hwmon_filename() local
332 &item, in test__parse_hwmon_filename()
[all …]
/tools/perf/util/
A Dconfig.c640 return item; in find_config_item()
668 struct perf_config_item *item = zalloc(sizeof(*item)); in add_config_item() local
670 if (!item) in add_config_item()
674 if (!item->name) { in add_config_item()
676 free(item); in add_config_item()
681 return item; in add_config_item()
692 item->value = val; in set_value()
730 if (!item) { in collect_config()
732 if (!item) in collect_config()
861 zfree(&item->name); in perf_config_item__delete()
[all …]
A Dconfig.h67 #define perf_config_items__for_each_entry(list, item) \ argument
68 list_for_each_entry(item, list, node)
76 #define perf_config_set__for_each_entry(set, section, item) \ argument
78 perf_config_items__for_each_entry(&section->items, item)
/tools/testing/selftests/hid/tests/
A Dbase_gamepad.py114 def replace_none_in_tuple(item, default): argument
115 if item is None:
116 item = (None, None)
118 if None in item:
119 if item[0] is None:
120 item = (default[0], item[1])
121 if item[1] is None:
122 item = (item[0], default[1])
124 return item
/tools/perf/pmu-events/
A Dmodels.py19 for item in os.scandir(start_dir):
20 if not item.is_dir():
22 if arch in (item.name, 'all'):
23 archs.append(item.name)
33 for item in os.scandir(f'{start_dir}/{arch}'):
34 if item.is_dir():
36 if item.name == 'mapfile.csv':
A Djevents.py478 if not item.is_file() or not item.name.endswith('.json'):
621 if item.is_dir():
631 if not item.is_file() or not item.name.endswith('.json'):
659 if item.is_dir() and item.name != 'sys':
667 if item.is_dir() and is_leaf_dir_ignoring_sys(item.path):
687 if not item.is_file() or not item.name.endswith('.json') or item.name == 'metricgroups.json':
690 add_events_table_entries(item, get_topic(item.name))
1353 if item.is_dir():
1354 ftw(item.path, parents + [item.name], action)
1396 if not item.is_dir():
[all …]
/tools/perf/tests/shell/lib/
A Dperf_json_output_lint.py72 for item in json.loads(input):
74 count = len(item)
75 if count not in expected_items and count >= 1 and count <= 7 and 'metric-value' in item:
80 elif count not in expected_items and count >= 1 and count <= 5 and 'metricgroup' in item:
82 elif count - 1 in expected_items and 'metric-threshold' in item:
84 elif count in expected_items and 'insn per cycle' in item:
89 for key, value in item.items():
/tools/testing/selftests/arm64/mte/
A Dcheck_buffer_fill.c31 int i, j, item; in check_buffer_by_byte() local
35 item = ARRAY_SIZE(sizes); in check_buffer_by_byte()
37 for (i = 0; i < item; i++) { in check_buffer_by_byte()
67 int i, j, item, last_index; in check_buffer_underflow_by_byte() local
72 item = ARRAY_SIZE(sizes); in check_buffer_underflow_by_byte()
73 for (i = 0; i < item; i++) { in check_buffer_underflow_by_byte()
162 int i, j, item, last_index; in check_buffer_overflow_by_byte() local
168 item = ARRAY_SIZE(sizes); in check_buffer_overflow_by_byte()
169 for (i = 0; i < item; i++) { in check_buffer_overflow_by_byte()
341 item = ARRAY_SIZE(sizes); in check_buffer_by_block()
[all …]
A Dcheck_child_memory.c88 int item = ARRAY_SIZE(sizes); in check_child_memory_mapping() local
90 item = ARRAY_SIZE(sizes); in check_child_memory_mapping()
92 for (run = 0; run < item; run++) { in check_child_memory_mapping()
147 int item = ARRAY_SIZE(sizes); in main() local
154 sizes[item - 3] = page_size - 1; in main()
155 sizes[item - 2] = page_size; in main()
156 sizes[item - 1] = page_size + 1; in main()
/tools/crypto/tcrypt/
A Dtcrypt_speed_compare.py157 item = merged[alg][op][index]
158 base_cnt = item[f"base_{key}"]
159 new_cnt = item[f"new_{key}"]
165 bit_key = item["bit_key"]
166 byte_blocks = item["byte_blocks"]
/tools/testing/selftests/net/
A Dtest_vxlan_fdb_changelink.sh65 local item
66 for item in "${check_vec[@]}"; do
67 eval "local $item"
/tools/testing/selftests/drivers/net/mlxsw/
A Dsharedbuffer_configuration.py105 for item in objlist:
106 self._recs.append({"objid": item, "value": item.var_tuple()})
161 for item in self:
162 if item.weak_eq(by_obj):
163 return item
167 for item in self:
168 if item.weak_eq(by_obj):
169 self.remove(item)
/tools/testing/selftests/
A Dkselftest_harness.h817 head = item; \
818 item->next = NULL; \
819 item->prev = item; \
823 item->next = NULL; \
824 item->prev = head->prev; \
825 item->prev->next = item; \
826 head->prev = item; \
828 item->next = head; \
829 item->next->prev = item; \
830 item->prev = item; \
[all …]
/tools/lib/perf/include/internal/
A Devsel.h33 #define perf_evsel_for_each_per_thread_period_safe(evsel, tmp, item) \ argument
34 list_for_each_entry_safe(item, tmp, &(evsel)->per_stream_periods, node)
/tools/testing/selftests/cgroup/lib/include/
A Dcgroup_util.h63 extern ssize_t proc_read_text(int pid, bool thread, const char *item, char *buf, size_t size);
64 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
/tools/testing/selftests/rseq/
A Dparam_test.c1008 struct percpu_memcpy_buffer_node item, in this_cpu_memcpy_buffer_push() argument
1026 srcptr = (char *)&item; in this_cpu_memcpy_buffer_push()
1028 copylen = sizeof(item); in this_cpu_memcpy_buffer_push()
1048 struct percpu_memcpy_buffer_node *item, in this_cpu_memcpy_buffer_pop() argument
1065 destptr = (char *)item; in this_cpu_memcpy_buffer_pop()
1068 copylen = sizeof(*item); in this_cpu_memcpy_buffer_pop()
1098 memcpy(item, &buffer->c[cpu].array[offset - 1], sizeof(*item)); in __percpu_memcpy_buffer_pop()
1113 struct percpu_memcpy_buffer_node item; in test_percpu_memcpy_buffer_thread() local
1195 struct percpu_memcpy_buffer_node item; in test_percpu_memcpy_buffer() local
1201 sum += item.data1; in test_percpu_memcpy_buffer()
[all …]
/tools/hv/
A Dvmbus_testing128 elif (path and any(item in arg_set for item in all_actions)):
132 elif (path not in file_map and any(item in arg_set
133 for item in single_actions)):

Completed in 46 milliseconds

12