/tools/firewire/ |
D | list.h | 2 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/ |
D | parse-events.y | 31 struct list_head *list; in alloc_list() local 33 list = malloc(sizeof(*list)); in alloc_list() 34 if (!list) in alloc_list() 37 INIT_LIST_HEAD(list); in alloc_list() 38 return list; in alloc_list() 52 static void inc_group_count(struct list_head *list, in inc_group_count() argument 56 if (!list_is_last(list->next, list)) in inc_group_count() 148 parse_events_update_lists($1, &parse_state->list); 154 struct list_head *list = $1; variable 158 parse_events_update_lists(group, list); [all …]
|
D | ordered-events.c | 30 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() 48 last = list_entry(p, struct ordered_event, list); 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() 58 last = list_entry(p, struct ordered_event, list); in queue_event() 60 list_add(&new->list, &last->list); in queue_event() 141 new = list_entry(cache->next, struct ordered_event, list); in alloc_event() [all …]
|
D | parse-events.h | 110 struct list_head list; member 133 struct list_head list; member 162 int parse_events__modifier_event(struct list_head *list, char *str, bool add); 163 int parse_events__modifier_group(struct list_head *list, char *event_mod); 164 int parse_events_name(struct list_head *list, char *name); 165 int parse_events_add_tracepoint(struct list_head *list, int *idx, 170 struct list_head *list, 177 struct list_head *list, 181 struct list_head *list, 186 struct list_head *list, [all …]
|
D | parse-events.c | 340 list_for_each_entry(term, head_terms, list) in get_config_name() 348 __add_event(struct list_head *list, int *idx, in __add_event() argument 386 if (list) in __add_event() 387 list_add_tail(&evsel->core.node, list); in __add_event() 399 static int add_event(struct list_head *list, int *idx, in add_event() argument 403 return __add_event(list, idx, attr, true, name, NULL, config_terms, in add_event() 407 static int add_event_tool(struct list_head *list, int *idx, in add_event_tool() argument 416 evsel = __add_event(list, idx, &attr, true, NULL, NULL, NULL, false, in add_event_tool() 455 int parse_events_add_cache(struct list_head *list, int *idx, in parse_events_add_cache() argument 525 return add_event(list, idx, &attr, config_name ? : name, &config_terms); in parse_events_add_cache() [all …]
|
D | generate-cmdlist.sh | 13 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 |
|
D | config.h | 52 #define perf_config_sections__for_each_entry(list, section) \ argument 53 list_for_each_entry(section, list, node) 60 #define perf_config_items__for_each_entry(list, item) \ argument 61 list_for_each_entry(item, list, node)
|
/tools/memory-model/scripts/ |
D | newlitmushist.sh | 42 xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already 46 find litmus -name '*.litmus' -exec grep -l -m 1 "^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
|
D | checkghlitmus.sh | 39 xargs -r grep -L "^P${LKMM_PROCS}"> $T/list-C-already 43 find litmus -name '*.litmus' -exec grep -l -m 1 "^C " {} \; > $T/list-C 44 xargs < $T/list-C -r egrep -l '^ \* Result: (Never|Sometimes|Always|DEADLOCK)' > $T/list-C-result 45 xargs < $T/list-C-result -r grep -L "^P${LKMM_PROCS}" > $T/list-C-result-short 48 sort $T/list-C-already $T/list-C-result-short | uniq -u > $T/list-C-needed 51 if scripts/runlitmushist.sh < $T/list-C-needed > $T/run.stdout 2> $T/run.stderr 58 sed < $T/list-C-result-short -e 's,^,scripts/judgelitmus.sh ,' |
|
D | initlitmushist.sh | 63 find litmus -name '*.litmus' -exec grep -l -m 1 "^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
|
D | checklitmushist.sh | 41 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/"',' |
|
/tools/vm/ |
D | page_owner_sort.c | 27 static struct block_list *list; variable 65 len == list[list_size-1].len && in add_list() 66 memcmp(buf, list[list_size-1].txt, len) == 0) { in add_list() 67 list[list_size-1].num++; in add_list() 74 list[list_size].txt = malloc(len+1); in add_list() 75 list[list_size].len = len; in add_list() 76 list[list_size].num = 1; in add_list() 77 memcpy(list[list_size].txt, buf, len); in add_list() 78 list[list_size].txt[len] = 0; in add_list() 113 list = malloc(max_size * sizeof(*list)); in main() [all …]
|
/tools/testing/selftests/timers/ |
D | inconsistency-check.c | 96 struct timespec list[CALLS_PER_LOOP]; in consistency_test() local 102 clock_gettime(clock_type, &list[0]); in consistency_test() 103 now = then = list[0].tv_sec; in consistency_test() 114 clock_gettime(clock_type, &list[i]); in consistency_test() 118 if (!in_order(list[i], list[i+1])) in consistency_test() 129 printf("%lu:%lu\n", list[i].tv_sec, in consistency_test() 130 list[i].tv_nsec); in consistency_test() 134 delta = list[inconsistent].tv_sec * NSEC_PER_SEC; in consistency_test() 135 delta += list[inconsistent].tv_nsec; in consistency_test() 136 delta -= list[inconsistent+1].tv_sec * NSEC_PER_SEC; in consistency_test() [all …]
|
/tools/lib/traceevent/ |
D | event-plugin.c | 110 char **list = NULL; in tep_plugin_list_options() local 117 char **temp = list; in tep_plugin_list_options() 124 list = realloc(list, count + 2); in tep_plugin_list_options() 125 if (!list) { in tep_plugin_list_options() 126 list = temp; in tep_plugin_list_options() 130 list[count++] = name; in tep_plugin_list_options() 131 list[count] = NULL; in tep_plugin_list_options() 134 return list; in tep_plugin_list_options() 138 free(list[count]); in tep_plugin_list_options() 139 free(list); in tep_plugin_list_options() [all …]
|
/tools/include/linux/ |
D | list.h | 25 static inline void INIT_LIST_HEAD(struct list_head *list) in INIT_LIST_HEAD() argument 27 list->next = list; in INIT_LIST_HEAD() 28 list->prev = list; in INIT_LIST_HEAD() 154 static inline void list_move(struct list_head *list, struct list_head *head) in list_move() argument 156 __list_del_entry(list); in list_move() 157 list_add(list, head); in list_move() 165 static inline void list_move_tail(struct list_head *list, in list_move_tail() argument 168 __list_del_entry(list); in list_move_tail() 169 list_add_tail(list, head); in list_move_tail() 177 static inline int list_is_last(const struct list_head *list, in list_is_last() argument [all …]
|
/tools/testing/selftests/bpf/ |
D | test_lpm_map.c | 37 static struct tlpm_node *tlpm_match(struct tlpm_node *list, 41 static struct tlpm_node *tlpm_add(struct tlpm_node *list, in tlpm_add() argument 51 node = tlpm_match(list, key, n_bits); in tlpm_add() 54 return list; in tlpm_add() 62 node->next = list; in tlpm_add() 69 static void tlpm_clear(struct tlpm_node *list) in tlpm_clear() argument 75 while ((node = list)) { in tlpm_clear() 76 list = list->next; in tlpm_clear() 81 static struct tlpm_node *tlpm_match(struct tlpm_node *list, in tlpm_match() argument 94 for ( ; list; list = list->next) { in tlpm_match() [all …]
|
/tools/testing/selftests/rseq/ |
D | basic_percpu_ops_test.c | 134 void this_cpu_list_push(struct percpu_list *list, in this_cpu_list_push() argument 146 expect = (intptr_t)RSEQ_READ_ONCE(list->c[cpu].head); in this_cpu_list_push() 148 targetptr = (intptr_t *)&list->c[cpu].head; in this_cpu_list_push() 164 struct percpu_list_node *this_cpu_list_pop(struct percpu_list *list, in this_cpu_list_pop() argument 174 targetptr = (intptr_t *)&list->c[cpu].head; in this_cpu_list_pop() 195 struct percpu_list_node *__percpu_list_pop(struct percpu_list *list, int cpu) in __percpu_list_pop() argument 199 node = list->c[cpu].head; in __percpu_list_pop() 202 list->c[cpu].head = node->next; in __percpu_list_pop() 209 struct percpu_list *list = (struct percpu_list *)arg; in test_percpu_list_thread() local 220 node = this_cpu_list_pop(list, NULL); in test_percpu_list_thread() [all …]
|
/tools/perf/ |
D | builtin-buildid-cache.c | 223 struct strlist *list; in build_id_cache__purge_path() local 227 err = build_id_cache__list_build_ids(pathname, nsi, &list); in build_id_cache__purge_path() 231 strlist__for_each_entry(pos, list) { in build_id_cache__purge_path() 238 strlist__delete(list); in build_id_cache__purge_path() 248 struct strlist *list; in build_id_cache__purge_all() local 253 list = build_id_cache__list_all(false); in build_id_cache__purge_all() 254 if (!list) { in build_id_cache__purge_all() 259 strlist__for_each_entry(pos, list) { in build_id_cache__purge_all() 268 strlist__delete(list); in build_id_cache__purge_all() 353 struct strlist *list; in cmd_buildid_cache() local [all …]
|
/tools/testing/selftests/kvm/x86_64/ |
D | xss_msr_test.c | 22 struct kvm_msr_list *list; in is_supported_msr() local 26 list = kvm_get_msr_index_list(); in is_supported_msr() 27 for (i = 0; i < list->nmsrs; ++i) { in is_supported_msr() 28 if (list->indices[i] == msr_index) { in is_supported_msr() 34 free(list); in is_supported_msr()
|
/tools/testing/selftests/drivers/usb/usbip/ |
D | usbip_test.sh | 75 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/netfilter/ |
D | nft_nat.sh | 86 ip netns exec $ns nft list counter inet filter $counter 1>&2 94 cnt=$(ip netns exec $ns nft list counter inet filter ns0in | grep -q "packets 1 bytes 84") 99 cnt=$(ip netns exec $ns nft list counter inet filter ns0out | grep -q "packets 1 bytes 84") 106 cnt=$(ip netns exec $ns nft list counter inet filter ns0in6 | grep -q "$expect") 111 cnt=$(ip netns exec $ns nft list counter inet filter ns0out6 | grep -q "$expect") 125 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0in | grep -q "packets 0 bytes 0") 131 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0in6 | grep -q "packets 0 bytes 0") 137 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0out | grep -q "packets 0 bytes 0") 142 cnt=$(ip netns exec "$ns0" nft list counter inet filter ns0out6 | grep -q "packets 0 bytes 0") 150 cnt=$(ip netns exec "$ns0" nft list counter inet filter ${ns}${dir} | grep -q "$expect") [all …]
|
/tools/lib/perf/include/internal/ |
D | evlist.h | 62 #define __perf_evlist__for_each_entry(list, evsel) \ argument 63 list_for_each_entry(evsel, list, node) 78 #define __perf_evlist__for_each_entry_reverse(list, evsel) \ argument 79 list_for_each_entry_reverse(evsel, list, node) 95 #define __perf_evlist__for_each_entry_safe(list, tmp, evsel) \ argument 96 list_for_each_entry_safe(evsel, tmp, list, node)
|
/tools/perf/Documentation/ |
D | perf-test.txt | 11 'perf test [<options>] [{list <test-name-fragment>|[<test-name-fragments>|<test-numbers>]}]' 18 To get a list of available tests use 'perf test list', specifying a test name 22 from 'perf test list'. 28 Tests to skip (comma separated numeric list).
|
/tools/usb/usbip/libsrc/ |
D | list.h | 28 static inline void INIT_LIST_HEAD(struct list_head *list) in INIT_LIST_HEAD() argument 30 list->next = list; in INIT_LIST_HEAD() 31 list->prev = list; in INIT_LIST_HEAD()
|
/tools/testing/selftests/tc-testing/ |
D | tdc_helper.py | 13 testcases[category] = list(filter(lambda x: category in x['category'], alltests)) 21 return list(set(lst)) 51 if (type(l) == list): 65 if (isinstance(tcase[k], list)):
|