/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() 149 parse_events_update_lists($1, &parse_state->list); 155 struct list_head *list = $1; variable 159 parse_events_update_lists(group, list); [all …]
|
D | parse-events-hybrid.c | 40 struct list_head *list, in create_event_hybrid() argument 50 evsel = parse_events__add_event_hybrid(list, idx, attr, name, in create_event_hybrid() 72 struct list_head *list, struct perf_event_attr *attr, in add_hw_hybrid() argument 86 &parse_state->idx, list, attr, name, in add_hw_hybrid() 96 static int create_raw_event_hybrid(int *idx, struct list_head *list, in create_raw_event_hybrid() argument 104 evsel = parse_events__add_event_hybrid(list, idx, attr, name, in create_raw_event_hybrid() 115 struct list_head *list, struct perf_event_attr *attr, in add_raw_hybrid() argument 128 ret = create_raw_event_hybrid(&parse_state->idx, list, attr, in add_raw_hybrid() 139 struct list_head *list, in parse_events__add_numeric_hybrid() argument 153 return add_hw_hybrid(parse_state, list, attr, name, in parse_events__add_numeric_hybrid() [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 163 int parse_events__modifier_event(struct list_head *list, char *str, bool add); 164 int parse_events__modifier_group(struct list_head *list, char *event_mod); 165 int parse_events_name(struct list_head *list, char *name); 166 int parse_events_add_tracepoint(struct list_head *list, int *idx, 171 struct list_head *list, 178 struct list_head *list, 182 struct list_head *list, 187 struct list_head *list, [all …]
|
D | parse-events.c | 54 struct list_head *list); 357 list_for_each_entry(term, head_terms, list) in get_config_name() 365 __add_event(struct list_head *list, int *idx, in __add_event() argument 403 if (list) in __add_event() 404 list_add_tail(&evsel->core.node, list); in __add_event() 416 static int add_event(struct list_head *list, int *idx, in add_event() argument 420 return __add_event(list, idx, attr, true, name, NULL, config_terms, in add_event() 424 static int add_event_tool(struct list_head *list, int *idx, in add_event_tool() argument 433 evsel = __add_event(list, idx, &attr, true, NULL, NULL, NULL, false, in add_event_tool() 472 int parse_events_add_cache(struct list_head *list, int *idx, in parse_events_add_cache() argument [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 | 57 #define perf_config_sections__for_each_entry(list, section) \ argument 58 list_for_each_entry(section, list, node) 65 #define perf_config_items__for_each_entry(list, item) \ argument 66 list_for_each_entry(item, list, node)
|
/tools/testing/selftests/kvm/x86_64/ |
D | get_msr_index_features.c | 20 struct kvm_msr_list *list; in kvm_num_index_msrs() local 23 list = malloc(sizeof(*list) + nmsrs * sizeof(list->indices[0])); in kvm_num_index_msrs() 24 list->nmsrs = nmsrs; in kvm_num_index_msrs() 25 r = ioctl(kvm_fd, KVM_GET_MSR_INDEX_LIST, list); in kvm_num_index_msrs() 30 r = list->nmsrs; in kvm_num_index_msrs() 31 free(list); in kvm_num_index_msrs() 38 struct kvm_msr_list *list; in test_get_msr_index() local 51 list = malloc(sizeof(*list) + old_res * sizeof(list->indices[0])); in test_get_msr_index() 52 list->nmsrs = old_res; in test_get_msr_index() 53 r = ioctl(kvm_fd, KVM_GET_MSR_INDEX_LIST, list); in test_get_msr_index() [all …]
|
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/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/perf/arch/x86/util/ |
D | iostat.c | 97 static void iio_root_ports_list_free(struct iio_root_ports_list *list) in iio_root_ports_list_free() argument 101 if (list) { in iio_root_ports_list_free() 102 for (idx = 0; idx < list->nr_entries; idx++) in iio_root_ports_list_free() 103 free(list->rps[idx]); in iio_root_ports_list_free() 104 free(list->rps); in iio_root_ports_list_free() 105 free(list); in iio_root_ports_list_free() 110 const struct iio_root_ports_list * const list, u32 domain, u8 bus) in iio_root_port_find_by_notation() argument 115 if (list) { in iio_root_port_find_by_notation() 116 for (idx = 0; idx < list->nr_entries; idx++) { in iio_root_port_find_by_notation() 117 rp = list->rps[idx]; in iio_root_port_find_by_notation() [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 | 224 struct strlist *list; in build_id_cache__purge_path() local 228 err = build_id_cache__list_build_ids(pathname, nsi, &list); in build_id_cache__purge_path() 232 strlist__for_each_entry(pos, list) { in build_id_cache__purge_path() 239 strlist__delete(list); in build_id_cache__purge_path() 249 struct strlist *list; in build_id_cache__purge_all() local 254 list = build_id_cache__list_all(false); in build_id_cache__purge_all() 255 if (!list) { in build_id_cache__purge_all() 260 strlist__for_each_entry(pos, list) { in build_id_cache__purge_all() 269 strlist__delete(list); in build_id_cache__purge_all() 364 struct strlist *list; in cmd_buildid_cache() local [all …]
|
/tools/lib/perf/include/internal/ |
D | evlist.h | 63 #define __perf_evlist__for_each_entry(list, evsel) \ argument 64 list_for_each_entry(evsel, list, node) 79 #define __perf_evlist__for_each_entry_reverse(list, evsel) \ argument 80 list_for_each_entry_reverse(evsel, list, node) 96 #define __perf_evlist__for_each_entry_safe(list, tmp, evsel) \ argument 97 list_for_each_entry_safe(evsel, tmp, list, node) 130 void __perf_evlist__set_leader(struct list_head *list);
|
/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/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).
|