Home
last modified time | relevance | path

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

/tools/testing/radix-tree/
Dtest.c10 struct item *
16 struct item *
27 int __item_insert(struct radix_tree_root *root, struct item *item, in __item_insert() argument
30 return __radix_tree_insert(root, item->index, order, item); in __item_insert()
46 struct item *item = radix_tree_delete(root, index); in item_delete() local
48 if (item) { in item_delete()
49 assert(item->index == index); in item_delete()
50 free(item); in item_delete()
56 struct item *item_create(unsigned long index) in item_create()
58 struct item *ret = malloc(sizeof(*ret)); in item_create()
[all …]
Dtest.h6 struct item { struct
10 struct item *item_create(unsigned long index); argument
11 int __item_insert(struct radix_tree_root *root, struct item *item,
17 struct item *item_lookup(struct radix_tree_root *root, unsigned long index);
32 struct item *
34 struct item *
Dmultiorder.c128 struct item *item2 = item_create(min); in multiorder_check()
136 struct item *item = item_lookup(&tree, i); in multiorder_check() local
137 assert(item != 0); in multiorder_check()
138 assert(item->index == index); in multiorder_check()
151 struct item *item = item_lookup(&tree, i); in multiorder_check() local
152 assert(item != 0); in multiorder_check()
153 assert(item->index == min); in multiorder_check()
182 struct item *item = item_lookup(&tree, i); in multiorder_shrink() local
183 assert(item != 0); in multiorder_shrink()
184 assert(item->index == 0); in multiorder_shrink()
Dtag_check.c89 struct item *item; in contract_checks() local
102 assert(radix_tree_gang_lookup_tag(&tree, (void **)&item, 0, 1, 0) == 1); in contract_checks()
103 assert(radix_tree_gang_lookup_tag(&tree, (void **)&item, 0, 1, 1) == 0); in contract_checks()
132 struct item *items[BATCH]; in gang_check()
142 struct item *item = items[i]; in gang_check() local
144 while (last_index < item->index) { in gang_check()
309 struct item *items[BATCH]; in single_check()
Dmain.c238 struct item *item; in __locate_check() local
242 item = item_lookup(tree, index); in __locate_check()
243 index2 = radix_tree_locate_item(tree, item); in __locate_check()
/tools/perf/util/
Dconfig.c497 struct perf_config_item *item; in find_config_item() local
499 list_for_each_entry(item, &section->items, node) in find_config_item()
500 if (!strcmp(item->name, name)) in find_config_item()
501 return item; in find_config_item()
529 struct perf_config_item *item = zalloc(sizeof(*item)); in add_config_item() local
531 if (!item) in add_config_item()
534 item->name = strdup(name); in add_config_item()
535 if (!item->name) { in add_config_item()
537 free(item); in add_config_item()
541 list_add_tail(&item->node, &section->items); in add_config_item()
[all …]
Dconfig.h53 #define perf_config_items__for_each_entry(list, item) \ argument
54 list_for_each_entry(item, list, node)
62 #define perf_config_set__for_each_entry(set, section, item) \ argument
64 perf_config_items__for_each_entry(&section->items, item)
/tools/perf/
Dbuiltin-config.c39 struct perf_config_item *item; in show_config() local
44 perf_config_set__for_each_entry(set, section, item) { in show_config()
45 char *value = item->value; in show_config()
49 item->name, value); in show_config()
/tools/testing/ktest/
Dktest.pl3059 foreach my $item (keys %a) {
3060 if (defined($b{$item}) && $b{$item} ne $a{$item}) {
3061 $ret{$item} = $b{$item};
3078 foreach my $item (keys %b) {
3079 if (!defined($a{$item})) {
3080 $ret{$item} = $b{$item};
3100 foreach my $item (keys %b) {
3101 if (!defined($a{$item})) {
3104 if ($a{$item} ne $b{$item}) {
3109 foreach my $item (keys %a) {
[all …]
/tools/lib/traceevent/
Devent-parse.c165 struct cmdline_list *item; in cmdline_init() local
178 item = cmdlist; in cmdline_init()
180 free(item); in cmdline_init()
300 struct cmdline_list *item; in pevent_register_comm() local
305 item = malloc(sizeof(*item)); in pevent_register_comm()
306 if (!item) in pevent_register_comm()
310 item->comm = strdup(comm); in pevent_register_comm()
312 item->comm = strdup("<...>"); in pevent_register_comm()
313 if (!item->comm) { in pevent_register_comm()
314 free(item); in pevent_register_comm()
[all …]
Devent-parse.h236 struct print_arg *item; member
/tools/perf/util/scripting-engines/
Dtrace-event-perl.c235 define_event_symbols(event, ev_name, args->typecast.item); in define_event_symbols()
Dtrace-event-python.c250 define_event_symbols(event, ev_name, args->typecast.item); in define_event_symbols()