Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 98) sorted by relevance

1234

/tools/power/cpupower/lib/
Dcpufreq.c264 struct cpufreq_available_governors *first = NULL; in cpufreq_get_available_governors() local
286 first = malloc(sizeof(*first)); in cpufreq_get_available_governors()
287 if (!first) in cpufreq_get_available_governors()
289 current = first; in cpufreq_get_available_governors()
291 current->first = first; in cpufreq_get_available_governors()
304 return first; in cpufreq_get_available_governors()
307 while (first) { in cpufreq_get_available_governors()
308 current = first->next; in cpufreq_get_available_governors()
309 if (first->governor) in cpufreq_get_available_governors()
310 free(first->governor); in cpufreq_get_available_governors()
[all …]
Dcpufreq.h20 struct cpufreq_available_governors *first; member
26 struct cpufreq_available_frequencies *first; member
33 struct cpufreq_affected_cpus *first; member
40 struct cpufreq_stats *first; member
117 struct cpufreq_available_governors *first);
131 struct cpufreq_available_frequencies *first);
137 struct cpufreq_available_frequencies *first);
149 void cpufreq_put_affected_cpus(struct cpufreq_affected_cpus *first);
161 void cpufreq_put_related_cpus(struct cpufreq_affected_cpus *first);
/tools/testing/radix-tree/
Dregression3.c36 bool first; in regression3_test() local
43 first = true; in regression3_test()
46 if (first) { in regression3_test()
49 first = false; in regression3_test()
59 first = true; in regression3_test()
62 if (first) { in regression3_test()
64 first = false; in regression3_test()
Dtag_check.c16 unsigned long first = 0; in __simple_checks() local
27 ret = tag_tagged_items(tree, first, ~0UL, 10, tag, !tag); in __simple_checks()
314 unsigned long first = 0; in single_check() local
324 ret = tag_tagged_items(&tree, first, 10, 10, XA_MARK_0, XA_MARK_1); in single_check()
/tools/include/linux/
Dlist.h217 struct list_head *first; in list_rotate_left() local
220 first = head->next; in list_rotate_left()
221 list_move_tail(first, head); in list_rotate_left()
278 struct list_head *first = list->next; in __list_splice() local
281 first->prev = prev; in __list_splice()
282 prev->next = first; in __list_splice()
595 #define HLIST_HEAD_INIT { .first = NULL }
596 #define HLIST_HEAD(name) struct hlist_head name = { .first = NULL }
597 #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)
611 return !h->first; in hlist_empty()
[all …]
Dtypes.h74 struct hlist_node *first; member
/tools/perf/util/
Devsel_fprintf.c15 static int comma_fprintf(FILE *fp, bool *first, const char *fmt, ...) in comma_fprintf() argument
20 if (!*first) { in comma_fprintf()
24 *first = false; in comma_fprintf()
41 bool first = true; in perf_evsel__fprintf() local
66 __print_attr__fprintf, &first); in perf_evsel__fprintf()
73 printed += comma_fprintf(fp, &first, " %s=%" PRIu64, in perf_evsel__fprintf()
81 printed += comma_fprintf(fp, &first, " (not a tracepoint)"); in perf_evsel__fprintf()
87 printed += comma_fprintf(fp, &first, " (no trace field)"); in perf_evsel__fprintf()
91 printed += comma_fprintf(fp, &first, " trace_fields: %s", field->name); in perf_evsel__fprintf()
95 printed += comma_fprintf(fp, &first, "%s", field->name); in perf_evsel__fprintf()
[all …]
Devlist.c108 struct evsel *first = evlist__first(evlist); in perf_evlist__set_id_pos() local
110 evlist->id_pos = first->id_pos; in perf_evlist__set_id_pos()
111 evlist->is_pos = first->is_pos; in perf_evlist__set_id_pos()
514 struct evsel *first = evlist__first(evlist); in perf_evlist__event2evsel() local
521 return first; in perf_evlist__event2evsel()
523 if (!first->core.attr.sample_id_all && in perf_evlist__event2evsel()
525 return first; in perf_evlist__event2evsel()
532 return first; in perf_evlist__event2evsel()
1130 struct evsel *first = evlist__first(evlist), *pos = first; in perf_evlist__valid_read_format() local
1131 u64 read_format = first->core.attr.read_format; in perf_evlist__valid_read_format()
[all …]
Dstat-display.c543 bool first), in collect_all_aliases() argument
565 bool first), in collect_data() argument
586 struct evsel *counter, void *data, bool first) in aggr_cb() argument
597 if (first) in aggr_cb()
619 bool *first) in print_counter_aggrdata() argument
637 if (*first && metric_only) { in print_counter_aggrdata()
638 *first = false; in print_counter_aggrdata()
659 bool first; in print_aggr() local
674 first = true; in print_aggr()
678 &first); in print_aggr()
[all …]
Dcallchain.h157 struct callchain_cursor_node *first; member
206 cursor->curr = cursor->first; in callchain_cursor_commit()
261 dest->first = src->curr; in callchain_cursor_snapshot()
Dtop.c74 struct evsel *first = evlist__first(top->evlist); in perf_top__header_snprintf() local
76 (uint64_t)first->core.attr.sample_period, in perf_top__header_snprintf()
Dordered-events.c293 struct ordered_event *first, *last; in __ordered_events__flush() local
296 first = list_entry(head->next, struct ordered_event, list); in __ordered_events__flush()
303 oe->next_flush = first->timestamp; in __ordered_events__flush()
304 oe->next_flush += (last->timestamp - first->timestamp) / 2; in __ordered_events__flush()
/tools/testing/selftests/kvm/lib/
Dsparsebit.c1896 sparsebit_idx_t first, last; member
1909 if (ranges[i].first <= idx && idx <= ranges[i].last) in get_value()
1915 static void operate(int code, sparsebit_idx_t first, sparsebit_idx_t last) in operate() argument
1920 if (first < last) { in operate()
1921 num = last - first + 1; in operate()
1923 num = first - last + 1; in operate()
1924 first = last; in operate()
1925 last = first + num - 1; in operate()
1930 sparsebit_set(s, first); in operate()
1931 assert(sparsebit_is_set(s, first)); in operate()
[all …]
/tools/perf/tests/
Dtime-utils-test.c62 u64 first; member
73 .first_sample_time = d->first, in test__perf_time__parse_for_ranges()
86 d->first, d->last); in test__perf_time__parse_for_ranges()
192 .first = b, in test__time_utils()
207 .first = b, in test__time_utils()
222 .first = b, in test__time_utils()
237 .first = b, in test__time_utils()
/tools/lib/
Dbitmap.c36 bool first = true; in bitmap_scnprintf() local
46 if (!first) in bitmap_scnprintf()
49 first = false; in bitmap_scnprintf()
/tools/perf/ui/stdio/
Dhist.c335 bool first; in __callchain__fprintf_folded() local
342 first = (ret == 0); in __callchain__fprintf_folded()
346 ret += fprintf(fp, "%s%s", first ? "" : sep, in __callchain__fprintf_folded()
349 first = false; in __callchain__fprintf_folded()
420 bool first = true; in __hist_entry__snprintf() local
433 if (!sep || !first) { in __hist_entry__snprintf()
437 first = false; in __hist_entry__snprintf()
467 bool first = true; in hist_entry__hierarchy_fprintf() local
483 if (!sep || !first) { in hist_entry__hierarchy_fprintf()
487 first = false; in hist_entry__hierarchy_fprintf()
[all …]
/tools/perf/
Dperf-completion.sh7 local exclude i j first
20 first=t
29 if [ $j -ge 2 ] && [ -n "$first" ]; then
32 first=
/tools/perf/ui/browsers/
Dhists.c332 bool first = true; in callchain_node__init_have_children_rb_tree() local
335 if (first) { in callchain_node__init_have_children_rb_tree()
336 first = false; in callchain_node__init_have_children_rb_tree()
877 int first = true; in hist_browser__show_callchain_flat() local
881 bool was_first = first; in hist_browser__show_callchain_flat()
883 if (first) in hist_browser__show_callchain_flat()
884 first = false; in hist_browser__show_callchain_flat()
904 bool was_first = first; in hist_browser__show_callchain_flat()
906 if (first) in hist_browser__show_callchain_flat()
907 first = false; in hist_browser__show_callchain_flat()
[all …]
/tools/testing/selftests/powerpc/pmu/
Dlib.h33 uint64_t first, last; member
Dlib.c176 libc.first = start; in parse_proc_maps()
179 vdso.first = start; in parse_proc_maps()
/tools/testing/selftests/bpf/progs/
Dbtf_dump_test_case_ordering.c42 struct hlist_node *first; member
/tools/memory-model/litmus-tests/
DS+poonceonces.litmus7 * first store against P1()'s final load, if the smp_store_release()
DWRC+poonceonces+Once.litmus7 * where the first write is moved to a separate process. Note that this
/tools/testing/selftests/drivers/net/netdevsim/
Ddevlink.sh127 check_region_snapshot_count dummy post-first-snapshot 1
140 check_region_snapshot_count dummy post-first-delete 2
/tools/perf/ui/gtk/
Dhists.c171 bool first = true; in perf_gtk__add_callchain_folded() local
183 first ? "" : str_alloc, in perf_gtk__add_callchain_folded()
184 first ? "" : symbol_conf.field_sep ?: "; ", in perf_gtk__add_callchain_folded()
188 first = false; in perf_gtk__add_callchain_folded()
199 first ? "" : str_alloc, in perf_gtk__add_callchain_folded()
200 first ? "" : symbol_conf.field_sep ?: "; ", in perf_gtk__add_callchain_folded()
204 first = false; in perf_gtk__add_callchain_folded()

1234