Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 361) sorted by relevance

12345678910>>...15

/tools/firewire/
A Dlist.h2 struct list { struct
3 struct list *next, *prev; argument
7 list_init(struct list *list) in list_init() argument
9 list->next = list; in list_init()
10 list->prev = list; in list_init()
14 list_empty(struct list *list) in list_empty() argument
16 return list->next == list; in list_empty()
20 list_insert(struct list *link, struct list *new_link) in list_insert()
29 list_append(struct list *list, struct list *new_link) in list_append() argument
31 list_insert((struct list *)list, new_link); in list_append()
[all …]
/tools/perf/util/
A Dparse-events.y36 list = malloc(sizeof(*list)); in alloc_list()
37 if (!list) in alloc_list()
41 return list; in alloc_list()
183 $$ = list;
198 $$ = list;
207 $$ = list;
239 $$ = list;
283 $$ = list;
304 $$ = list;
314 if (!list)
[all …]
A Dordered-events.c30 list_add(&new->list, &oe->events); in queue_event()
42 p = last->list.next; in queue_event()
44 list_add_tail(&new->list, &oe->events); in queue_event()
50 list_add_tail(&new->list, &last->list); in queue_event()
53 p = last->list.prev; in queue_event()
55 list_add(&new->list, &oe->events); in queue_event()
60 list_add(&new->list, &last->list); in queue_event()
142 list_del_init(&new->list); in alloc_event()
188 list_move(&event->list, &oe->cache); in ordered_events__delete()
399 list_del_init(&oe->buffer->list); in ordered_events__free()
[all …]
A Dgenerate-cmdlist.sh13 sed -n -e 's/^perf-\([^ ]*\)[ ].* common.*/\1/p' command-list.txt |
27 sed -n -e 's/^perf-\([^ ]*\)[ ].* full.*/\1/p' command-list.txt |
42 sed -n -e 's/^perf-\([^ ]*\)[ ].* audit*/\1/p' command-list.txt |
57 sed -n -e 's/^perf-\([^ ]*\)[ ].* traceevent.*/\1/p' command-list.txt |
A Dparse-events.h91 struct list_head list; member
144 struct list_head list; member
154 struct list_head list; member
222 struct list_head *list, struct parse_events_modifier mod);
224 struct list_head *list, struct parse_events_modifier mod);
225 int parse_events__set_default_name(struct list_head *list, char *name);
227 struct list_head *list,
232 struct list_head *list,
236 int parse_events_add_cache(struct list_head *list, int *idx, const char *name,
241 struct list_head *list,
[all …]
A Dparse-events.c306 if (list) in __add_event()
658 .list = list, in add_tracepoint_multi_sys()
1654 if (!list) in parse_events_multi_pmu_add()
1657 INIT_LIST_HEAD(list); in parse_events_multi_pmu_add()
1697 *listp = list; in parse_events_multi_pmu_add()
1699 free(list); in parse_events_multi_pmu_add()
2267 .list = LIST_HEAD_INIT(parse_state.list), in __parse_events()
2354 list_for_each_entry_safe(pos, tmp, &err->list, list) { in parse_events_error__exit()
2379 list_add(&entry->list, &err->list); in parse_events_error__handle()
2456 list_for_each_entry(pos, &err->list, list) { in parse_events_error__print()
[all …]
/tools/memory-model/scripts/
A Dnewlitmushist.sh42 xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already
46 find litmus -name '*.litmus' -print | mselect7 -arch C > $T/list-C-all
47 xargs < $T/list-C-all -r grep -L "^P${LKMM_PROCS}" > $T/list-C-short
50 sort $T/list-C-already $T/list-C-short | uniq -u > $T/list-C-new
53 sed < $T/list-C-short -e 's,^.*$,if test & -nt '"$LKMM_DESTDIR"'/&.out; then echo &; fi,' > $T/list
54 sh $T/list-C-script > $T/list-C-newer
57 sort -u $T/list-C-new $T/list-C-newer > $T/list-C-needed
59 scripts/runlitmushist.sh < $T/list-C-needed
A Dcheckghlitmus.sh40 xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already
44 find litmus -name '*.litmus' -print | mselect7 -arch C > $T/list-C
45 xargs < $T/list-C -r grep -E -l '^ \* Result: (Never|Sometimes|Always|DEADLOCK)' > $T/list-C-result
46 xargs < $T/list-C-result -r grep -L "^P${LKMM_PROCS}" > $T/list-C-result-short
49 sort $T/list-C-already $T/list-C-result-short | uniq -u > $T/list-C-needed
52 if scripts/runlitmushist.sh < $T/list-C-needed > $T/run.stdout 2> $T/run.stderr
59 sed < $T/list-C-result-short -e 's,^,scripts/judgelitmus.sh ,' |
A Dchecklitmushist.sh41 xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already
42 xargs < $T/list-C-already -r grep -L "^P${LKMM_PROCS}" > $T/list-C-short
47 scripts/runlitmushist.sh < $T/list-C-short > $T/runlitmushist.sh.out 2>&1
58 sed < $T/list-C-short -e 's,^,'"$LKMM_DESTDIR/"',' |
A Dinitlitmushist.sh63 find litmus -name '*.litmus' -print | mselect7 -arch C > $T/list-C
64 xargs < $T/list-C -r grep -L "^P${LKMM_PROCS}" > $T/list-C-short
66 scripts/runlitmushist.sh < $T/list-C-short
/tools/testing/selftests/filesystems/statmount/
A Dlistmount_test.c25 uint64_t list[LISTMNT_BUFFER], last_mnt_id = 0; in TEST() local
31 list, LISTMNT_BUFFER, 0); in TEST()
38 ASSERT_LT(list[cur], list[cur + 1]); in TEST()
39 last_mnt_id = list[cur]; in TEST()
47 uint64_t list[LISTMNT_BUFFER], last_mnt_id = 0; in TEST() local
53 list, LISTMNT_BUFFER, LISTMOUNT_REVERSE); in TEST()
60 ASSERT_GT(list[cur], list[cur + 1]); in TEST()
61 last_mnt_id = list[cur]; in TEST()
/tools/perf/arch/x86/util/
A Diostat.c102 if (list) { in iio_root_ports_list_free()
105 zfree(&list->rps); in iio_root_ports_list_free()
106 free(list); in iio_root_ports_list_free()
116 if (list) { in iio_root_port_find_by_notation()
131 if (list && rp) { in iio_root_ports_list_insert()
134 list->nr_entries * sizeof(*list->rps)); in iio_root_ports_list_insert()
140 list->rps = tmp_buf; in iio_root_ports_list_insert()
219 *list = tmp_list; in iio_root_ports_scan()
292 *list = tmp_list; in iio_root_ports_list_filter()
318 list->rps[idx]->pmu_idx, list->rps[idx]->pmu_idx, in iostat_event_group()
[all …]
/tools/testing/selftests/timers/
A Dinconsistency-check.c85 struct timespec list[CALLS_PER_LOOP]; in consistency_test() local
91 clock_gettime(clock_type, &list[0]); in consistency_test()
92 now = then = list[0].tv_sec; in consistency_test()
103 clock_gettime(clock_type, &list[i]); in consistency_test()
107 if (!in_order(list[i], list[i+1])) in consistency_test()
118 ksft_print_msg("%lu:%lu\n", list[i].tv_sec, in consistency_test()
119 list[i].tv_nsec); in consistency_test()
123 delta = list[inconsistent].tv_sec * NSEC_PER_SEC; in consistency_test()
124 delta += list[inconsistent].tv_nsec; in consistency_test()
126 delta -= list[inconsistent+1].tv_nsec; in consistency_test()
[all …]
/tools/mm/
A Dpage_owner_sort.c611 free(list); in parse_nums_list()
617 return list; in parse_nums_list()
806 list = malloc(max_size * sizeof(*list)); in main()
827 qsort(list, list_size, sizeof(list[0]), compare_cull_condition); in main()
834 list[count++] = list[i]; in main()
836 list[count-1].num += list[i].num; in main()
837 list[count-1].page_num += list[i].page_num; in main()
841 qsort(list, count, sizeof(list[0]), compare_sort_condition); in main()
851 list[i].num, list[i].page_num); in main()
873 if (list) in main()
[all …]
/tools/include/linux/
A Dlist.h27 list->next = list; in INIT_LIST_HEAD()
28 list->prev = list; in INIT_LIST_HEAD()
156 __list_del_entry(list); in list_move()
157 list_add(list, head); in list_move()
168 __list_del_entry(list); in list_move_tail()
239 list->next->prev = list; in __list_cut_position()
240 list->prev = entry; in __list_cut_position()
241 entry->next = list; in __list_cut_position()
269 INIT_LIST_HEAD(list); in list_cut_position()
296 if (!list_empty(list)) in list_splice()
[all …]
/tools/lib/
A Dlist_sort.c174 struct list_head *list = head->next, *pending = NULL; in list_sort() local
177 if (list == head->prev) /* Zero or one elements */ in list_sort()
219 list->prev = pending; in list_sort()
220 pending = list; in list_sort()
221 list = list->next; in list_sort()
224 } while (list); in list_sort()
227 list = pending; in list_sort()
234 list = merge(priv, cmp, pending, list); in list_sort()
238 merge_final(priv, cmp, head, pending, list); in list_sort()
/tools/testing/selftests/pidfd/
A Dpidfd_xattr_test.c54 char list[PATH_MAX] = {}; in TEST_F() local
72 ret = flistxattr(self->child_pidfd, list, sizeof(list)); in TEST_F()
77 for (char *it = list; it < list + ret; it += strlen(it) + 1) { in TEST_F()
101 char list[PATH_MAX] = {}; in TEST_F() local
111 ret = flistxattr(self->child_pidfd, list, sizeof(list)); in TEST_F()
113 ASSERT_EQ(strcmp(list, "trusted.persistent"), 0) in TEST_F()
127 ret = flistxattr(self->child_pidfd, list, sizeof(list)); in TEST_F()
129 ASSERT_EQ(strcmp(list, "trusted.persistent"), 0); in TEST_F()
/tools/testing/selftests/filesystems/
A Dutils.c69 struct list { struct
71 struct list *next; argument
72 struct list *prev; argument
82 static inline void list_init(struct list *list) in list_init() argument
84 list->elem = NULL; in list_init()
85 list->next = list->prev = list; in list_init()
88 static inline int list_empty(const struct list *list) in list_empty() argument
90 return list == list->next; in list_empty()
93 static inline void __list_add(struct list *new, struct list *prev, struct list *next) in __list_add()
101 static inline void list_add_tail(struct list *head, struct list *list) in list_add_tail() argument
[all …]
/tools/testing/selftests/rseq/
A Dbasic_percpu_ops_test.c184 targetptr = (intptr_t *)&list->c[cpu].head; in this_cpu_list_push()
211 targetptr = (intptr_t *)&list->c[cpu].head; in this_cpu_list_pop()
237 node = list->c[cpu].head; in __percpu_list_pop()
240 list->c[cpu].head = node->next; in __percpu_list_pop()
258 node = this_cpu_list_pop(list, NULL); in test_percpu_list_thread()
261 this_cpu_list_push(list, node, NULL); in test_percpu_list_thread()
278 struct percpu_list list; in test_percpu_list() local
282 memset(&list, 0, sizeof(list)); in test_percpu_list()
297 node->next = list.c[i].head; in test_percpu_list()
298 list.c[i].head = node; in test_percpu_list()
[all …]
/tools/perf/
A Dbuiltin-buildid-cache.c224 struct strlist *list; in build_id_cache__purge_path() local
239 strlist__delete(list); in build_id_cache__purge_path()
249 struct strlist *list; in build_id_cache__purge_all() local
255 if (!list) { in build_id_cache__purge_all()
269 strlist__delete(list); in build_id_cache__purge_all()
370 struct strlist *list; in cmd_buildid_cache() local
468 if (list) { in cmd_buildid_cache()
480 strlist__delete(list); in cmd_buildid_cache()
486 if (list) { in cmd_buildid_cache()
504 if (list) { in cmd_buildid_cache()
[all …]
/tools/bpf/bpftool/Documentation/
A Dbpftool.rst29 { **show** | **list** | **create** | **dump** | **update** | **lookup** | **getnext** |
32 *PROG-COMMANDS* := { **show** | **list** | **dump jited** | **dump xlated** | **pin** |
35 *LINK-COMMANDS* := { **show** | **list** | **pin** | **detach** | **help** }
37 *CGROUP-COMMANDS* := { **show** | **list** | **attach** | **detach** | **help** }
39 *PERF-COMMANDS* := { **show** | **list** | **help** }
41 *NET-COMMANDS* := { **show** | **list** | **help** }
45 *BTF-COMMANDS* := { **show** | **list** | **dump** | **help** }
49 *STRUCT-OPS-COMMANDS* := { **show** | **list** | **dump** | **register** | **unregister** | **help*…
/tools/testing/selftests/bpf/map_tests/
A Dlpm_trie_map_basic_ops.c71 return list; in tlpm_add()
93 list = list->next; in tlpm_clear()
111 for ( ; list; list = list->next) { in tlpm_match()
135 return list; in tlpm_delete()
152 return list; in tlpm_delete()
163 t1 = list = tlpm_add(list, (uint8_t[]){ 0xff }, 8); in test_lpm_basic()
171 t2 = list = tlpm_add(list, (uint8_t[]){ 0xff, 0xff }, 16); in test_lpm_basic()
177 list = tlpm_delete(list, (uint8_t[]){ 0xff, 0xff }, 16); in test_lpm_basic()
181 list = tlpm_delete(list, (uint8_t[]){ 0xff }, 8); in test_lpm_basic()
267 list = tlpm_add(list, value, value[keysize]); in test_lpm_map()
[all …]
/tools/lib/perf/include/internal/
A Devlist.h70 #define __perf_evlist__for_each_entry(list, evsel) \ argument
71 list_for_each_entry(evsel, list, node)
86 #define __perf_evlist__for_each_entry_reverse(list, evsel) \ argument
87 list_for_each_entry_reverse(evsel, list, node)
103 #define __perf_evlist__for_each_entry_safe(list, tmp, evsel) \ argument
104 list_for_each_entry_safe(evsel, tmp, list, node)
137 void __perf_evlist__set_leader(struct list_head *list, struct perf_evsel *leader);
/tools/testing/selftests/drivers/usb/usbip/
A Dusbip_test.sh75 src/usbip list -l;
85 src/usbip list -r localhost;
101 src/usbip list -r localhost;
117 src/usbip list -r localhost;
133 src/usbip list -r localhost;
175 src/usbip list -l;
/tools/testing/selftests/drivers/dma-buf/
A Dudmabuf.c59 struct udmabuf_create_list *list; in create_udmabuf_list() local
62 list = malloc(sizeof(struct udmabuf_create_list) + in create_udmabuf_list()
64 if (!list) { in create_udmabuf_list()
70 list->list[i].memfd = memfd; in create_udmabuf_list()
71 list->list[i].offset = i * (memfd_size / NUM_ENTRIES); in create_udmabuf_list()
72 list->list[i].size = getpagesize() * NUM_PAGES; in create_udmabuf_list()
75 list->count = NUM_ENTRIES; in create_udmabuf_list()
76 list->flags = UDMABUF_FLAGS_CLOEXEC; in create_udmabuf_list()
77 ubuf_fd = ioctl(devfd, UDMABUF_CREATE_LIST, list); in create_udmabuf_list()
78 free(list); in create_udmabuf_list()

Completed in 46 milliseconds

12345678910>>...15