Home
last modified time | relevance | path

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

12

/tools/testing/radix-tree/
Dtest.c11 struct item *
17 struct item *
28 struct item *item_create(unsigned long index, unsigned int order) in item_create()
30 struct item *ret = malloc(sizeof(*ret)); in item_create()
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()
42 free(item); in item_insert()
46 void item_sanity(struct item *item, unsigned long index) in item_sanity() argument
49 assert(!radix_tree_is_internal_node(item)); in item_sanity()
50 assert(item->order < BITS_PER_LONG); in item_sanity()
[all …]
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
57 xas_for_each(&xas, item, ULONG_MAX) { in multiorder_iteration()
64 assert(!radix_tree_is_internal_node(item)); in multiorder_iteration()
65 assert((item->index | mask) == (index[i] | mask)); in multiorder_iteration()
66 assert(item->order == order[i]); in multiorder_iteration()
77 struct item *item; in multiorder_tagged_iteration() local
108 xas_for_each_marked(&xas, item, ULONG_MAX, XA_MARK_1) { in multiorder_tagged_iteration()
[all …]
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 *
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()
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
28 assert(item->index == id); in item_idr_remove()
30 free(item); in item_idr_remove()
45 struct item *item; in idr_alloc_test() local
48 item = item_create(i, 0); in idr_alloc_test()
50 item = item_create(i - 0x3fff, 0); in idr_alloc_test()
52 id = idr_alloc_cyclic(&idr, item, 1, 0x4000, GFP_KERNEL); in idr_alloc_test()
53 assert(id == item->index); in idr_alloc_test()
[all …]
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/
Dconfig-bisect.pl328 foreach my $item (keys %a) {
329 if (defined($b{$item}) && $b{$item} ne $a{$item}) {
330 $ret{$item} = $b{$item};
347 foreach my $item (keys %b) {
348 if (!defined($a{$item})) {
349 $ret{$item} = $b{$item};
369 foreach my $item (keys %b) {
370 if (!defined($a{$item})) {
373 if ($a{$item} ne $b{$item}) {
378 foreach my $item (keys %a) {
[all …]
Dktest.pl3504 foreach my $item (@list) {
3505 my $sha1 = $item;
3508 doprint "\nProcessing commit \"$item\"\n\n";
3514 if ($item eq $list[0] ||
3515 $item eq $list[$#list]) {
/tools/perf/
Dbuiltin-config.c40 struct perf_config_item *item = NULL; in set_config() local
59 perf_config_items__for_each_entry(&section->items, item) { in set_config()
60 if (!use_system_config && item->from_system_config) in set_config()
62 if (item->value) in set_config()
64 item->name, item->value); in set_config()
75 struct perf_config_item *item; in show_spec_config() local
84 perf_config_items__for_each_entry(&section->items, item) { in show_spec_config()
87 if (strcmp(name, item->name) == 0) { in show_spec_config()
88 char *value = item->value; in show_spec_config()
105 struct perf_config_item *item; in show_config() local
[all …]
/tools/perf/util/
Dconfig.c609 struct perf_config_item *item; in find_config_item() local
611 list_for_each_entry(item, &section->items, node) in find_config_item()
612 if (!strcmp(item->name, name)) in find_config_item()
613 return item; in find_config_item()
641 struct perf_config_item *item = zalloc(sizeof(*item)); in add_config_item() local
643 if (!item) in add_config_item()
646 item->name = strdup(name); in add_config_item()
647 if (!item->name) { in add_config_item()
649 free(item); in add_config_item()
653 list_add_tail(&item->node, &section->items); in add_config_item()
[all …]
Dconfig.h65 #define perf_config_items__for_each_entry(list, item) \ argument
66 list_for_each_entry(item, list, node)
74 #define perf_config_set__for_each_entry(set, section, item) \ argument
76 perf_config_items__for_each_entry(&section->items, item)
/tools/testing/selftests/arm64/mte/
Dcheck_buffer_fill.c31 int i, j, item; in check_buffer_by_byte() local
35 item = sizeof(sizes)/sizeof(int); 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 = sizeof(sizes)/sizeof(int); 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 = sizeof(sizes)/sizeof(int); in check_buffer_overflow_by_byte()
169 for (i = 0; i < item; i++) { in check_buffer_overflow_by_byte()
338 int i, item, result = KSFT_PASS; in check_buffer_by_block() local
[all …]
Dcheck_child_memory.c88 int item = sizeof(sizes)/sizeof(int); in check_child_memory_mapping() local
90 item = sizeof(sizes)/sizeof(int); in check_child_memory_mapping()
92 for (run = 0; run < item; run++) { in check_child_memory_mapping()
147 int item = sizeof(sizes)/sizeof(int); 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()
Dcheck_mmap_options.c64 int item = sizeof(sizes)/sizeof(int); in check_anonymous_memory_mapping() local
66 item = sizeof(sizes)/sizeof(int); in check_anonymous_memory_mapping()
68 for (run = 0; run < item; run++) { in check_anonymous_memory_mapping()
190 int item = sizeof(sizes)/sizeof(int); in main() local
200 sizes[item - 3] = page_size - 1; in main()
201 sizes[item - 2] = page_size; in main()
202 sizes[item - 1] = page_size + 1; in main()
/tools/testing/selftests/
Dkselftest_harness.h754 #define __LIST_APPEND(head, item) \ argument
758 head = item; \
759 item->next = NULL; \
760 item->prev = item; \
764 item->next = NULL; \
765 item->prev = head->prev; \
766 item->prev->next = item; \
767 head->prev = item; \
769 item->next = head; \
770 item->next->prev = item; \
[all …]
/tools/testing/selftests/drivers/net/mlxsw/
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/cgroup/
Dcgroup_util.h51 extern ssize_t proc_read_text(int pid, bool thread, const char *item, char *buf, size_t size);
52 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
Dcgroup_util.c538 ssize_t proc_read_text(int pid, bool thread, const char *item, char *buf, size_t size) in proc_read_text() argument
544 thread ? "thread-self" : "self", item); in proc_read_text()
546 snprintf(path, sizeof(path), "/proc/%d/%s", pid, item); in proc_read_text()
551 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in proc_read_strstr() argument
555 if (proc_read_text(pid, thread, item, buf, sizeof(buf)) < 0) in proc_read_strstr()
/tools/testing/selftests/rseq/
Dparam_test.c892 struct percpu_memcpy_buffer_node item, in this_cpu_memcpy_buffer_push() argument
910 srcptr = (char *)&item; in this_cpu_memcpy_buffer_push()
912 copylen = sizeof(item); in this_cpu_memcpy_buffer_push()
936 struct percpu_memcpy_buffer_node *item, in this_cpu_memcpy_buffer_pop() argument
953 destptr = (char *)item; in this_cpu_memcpy_buffer_pop()
956 copylen = sizeof(*item); in this_cpu_memcpy_buffer_pop()
978 struct percpu_memcpy_buffer_node *item, in __percpu_memcpy_buffer_pop() argument
986 memcpy(item, &buffer->c[cpu].array[offset - 1], sizeof(*item)); in __percpu_memcpy_buffer_pop()
1001 struct percpu_memcpy_buffer_node item; in test_percpu_memcpy_buffer_thread() local
1004 result = this_cpu_memcpy_buffer_pop(buffer, &item, NULL); in test_percpu_memcpy_buffer_thread()
[all …]
/tools/hv/
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)):
/tools/lib/traceevent/
Devent-parse.c167 struct cmdline_list *item; in cmdline_init() local
180 item = cmdlist; in cmdline_init()
182 free(item); in cmdline_init()
330 struct cmdline_list *item; in _tep_register_comm() local
335 item = malloc(sizeof(*item)); in _tep_register_comm()
336 if (!item) in _tep_register_comm()
340 item->comm = strdup(comm); in _tep_register_comm()
342 item->comm = strdup("<...>"); in _tep_register_comm()
343 if (!item->comm) { in _tep_register_comm()
344 free(item); in _tep_register_comm()
[all …]
Devent-parse.h177 struct tep_print_arg *item; member
/tools/perf/scripts/python/
Dexported-sql-viewer.py256 def DisplayData(self, item, index): argument
257 return item.getData(index.column())
278 item = index.internalPointer()
279 return self.DisplayData(item, index)
312 def DisplayData(self, item, index): argument
313 return item.getData(index.column())
334 item = index.internalPointer()
335 return self.DisplayData(item, index)
2222 self.item = VertcalGraphSetGraphicsItem(collection, self.attrs, self, SwitchGraphGraphicsItem)
2225 self.scene.addItem(self.item)
[all …]
/tools/include/uapi/sound/
Dasound.h1066 unsigned int item; /* W: item number */ member
1089 unsigned int item[128]; member
/tools/power/pm-graph/
Dsleepgraph.py2676 for item in rawlist:
2677 item.row = -1
2678 sortdict[item] = item.length
2721 for item in devlist:
2722 dev = item.dev
2723 tp = (item.test, item.phase)
2729 sortdict[item] = (-1*float(dev['start']), float(dev['end']) - float(dev['start']))
2732 sortdict[item] = (float(dev['end']) - float(dev['start']), item.dev['name'])
2738 for item in sortlist:
2739 if item.dev['pid'] == -2:
[all …]

12