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.pl3483 foreach my $item (@list) {
3484 my $sha1 = $item;
3487 doprint "\nProcessing commit \"$item\"\n\n";
3493 if ($item eq $list[0] ||
3494 $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.c549 struct perf_config_item *item; in find_config_item() local
551 list_for_each_entry(item, &section->items, node) in find_config_item()
552 if (!strcmp(item->name, name)) in find_config_item()
553 return item; in find_config_item()
581 struct perf_config_item *item = zalloc(sizeof(*item)); in add_config_item() local
583 if (!item) in add_config_item()
586 item->name = strdup(name); in add_config_item()
587 if (!item->name) { in add_config_item()
589 free(item); in add_config_item()
593 list_add_tail(&item->node, &section->items); in add_config_item()
[all …]
Dconfig.h60 #define perf_config_items__for_each_entry(list, item) \ argument
61 list_for_each_entry(item, list, node)
69 #define perf_config_set__for_each_entry(set, section, item) \ argument
71 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.h748 #define __LIST_APPEND(head, item) \ argument
752 head = item; \
753 item->next = NULL; \
754 item->prev = item; \
758 item->next = NULL; \
759 item->prev = head->prev; \
760 item->prev->next = item; \
761 head->prev = item; \
763 item->next = head; \
764 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.c532 ssize_t proc_read_text(int pid, bool thread, const char *item, char *buf, size_t size) in proc_read_text() argument
538 thread ? "thread-self" : "self", item); in proc_read_text()
540 snprintf(path, sizeof(path), "/proc/%d/%s", pid, item); in proc_read_text()
545 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in proc_read_strstr() argument
549 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.py255 def DisplayData(self, item, index): argument
256 return item.getData(index.column())
277 item = index.internalPointer()
278 return self.DisplayData(item, index)
311 def DisplayData(self, item, index): argument
312 return item.getData(index.column())
333 item = index.internalPointer()
334 return self.DisplayData(item, index)
2221 self.item = VertcalGraphSetGraphicsItem(collection, self.attrs, self, SwitchGraphGraphicsItem)
2224 self.scene.addItem(self.item)
[all …]
/tools/include/uapi/sound/
Dasound.h1036 unsigned int item; /* W: item number */ member
1059 unsigned int item[128]; member
/tools/power/pm-graph/
Dsleepgraph.py2594 for item in rawlist:
2595 item.row = -1
2596 sortdict[item] = item.length
2639 for item in devlist:
2640 dev = item.dev
2641 tp = (item.test, item.phase)
2647 sortdict[item] = (-1*float(dev['start']), float(dev['end']) - float(dev['start']))
2650 sortdict[item] = (float(dev['end']) - float(dev['start']), item.dev['name'])
2656 for item in sortlist:
2657 if item.dev['pid'] == -2:
[all …]

12