Home
last modified time | relevance | path

Searched refs:list_empty (Results 1 – 25 of 57) sorted by relevance

123

/tools/include/linux/
Dlist.h187 static inline int list_empty(const struct list_head *head) in list_empty() function
219 if (!list_empty(head)) { in list_rotate_left()
231 return !list_empty(head) && (head->next == head->prev); in list_is_singular()
263 if (list_empty(head)) in list_cut_position()
296 if (!list_empty(list)) in list_splice()
308 if (!list_empty(list)) in list_splice_tail()
322 if (!list_empty(list)) { in list_splice_init()
339 if (!list_empty(list)) { in list_splice_tail_init()
385 (!list_empty(ptr) ? list_first_entry(ptr, type, member) : NULL)
396 (!list_empty(ptr) ? list_last_entry(ptr, type, member) : NULL)
/tools/perf/ui/browsers/
Dannotate-data.c120 if (!list_empty(&member->children)) { in add_child_entries()
182 if (list_empty(&entry->children)) in get_first_child()
190 if (list_empty(&entry->children)) in get_last_child()
412 if (!list_empty(&be->children)) in browser__write()
433 list_empty(&member->children) || be->folded? ";" : " {"); in browser__write()
439 list_empty(&member->children) || be->folded ? ";" : " {"); in browser__write()
451 if (list_empty(&entry->children)) in annotated_data_browser__fold()
472 if (list_empty(&entry->children)) in annotated_data_browser__unfold()
/tools/perf/util/
Dordered-events.c140 if (!list_empty(cache)) { in alloc_event()
256 if (list_empty(head)) in do_flush()
301 if (WARN_ONCE(!last || list_empty(head), "empty queue")) in __ordered_events__flush()
354 if (list_empty(&oe->events)) in ordered_events__first_time()
391 if (list_empty(&oe->to_free)) in ordered_events__free()
Dcgroup.c252 while (!list_empty(&cgroup_list)) { in release_cgroup_list()
369 if (list_empty(&evlist->core.entries)) { in parse_cgroups()
504 if (list_empty(&evlist->core.entries)) { in evlist__expand_cgroup()
Dbpf_ftrace.c27 list_empty(&ftrace->filters) ? "No" : "Too many"); in perf_ftrace__latency_prepare_bpf()
Dbpf-filter.c538 if (!list_empty(&pinned_filters)) { in perf_bpf_filter__prepare()
574 if (list_empty(&evsel->bpf_filters)) in perf_bpf_filter__lost_count()
577 if (!list_empty(&pinned_filters)) { in perf_bpf_filter__lost_count()
Dpmus.c227 if (list_empty(&core_pmus)) { in pmu_read_sysfs()
233 if (!list_empty(&core_pmus)) { in pmu_read_sysfs()
675 if (!list_empty(&core_pmus)) in perf_pmus__default_pmu_name()
Dsrccode.c108 assert(!list_empty(&srcfile_list)); in find_srcfile()
Dthread.c147 if (list_empty(thread__namespaces_list(thread))) in __thread__namespaces()
201 if (list_empty(thread__comm_list(thread))) in thread__comm()
Dbpf_counter.c58 assert(list_empty(&evsel->bpf_counter_list)); in bpf_program_profiler__destroy()
241 if (list_empty(&evsel->bpf_counter_list)) in bpf_program_profiler__read()
Dthread.h227 return list_empty(&RC_CHK_ACCESS(thread)->namespaces_list); in thread__namespaces_list_empty()
Dprobe-file.c392 BUG_ON(!list_empty(&entry->node)); in probe_cache_entry__delete()
1091 if (!list_empty(&pcache->entries)) { in probe_cache__show_all_caches()
Devlist.h239 return list_empty(&evlist->core.entries); in evlist__empty()
/tools/cgroup/
Dmemcg_slabinfo.py10 from drgn.helpers.linux import list_for_each_entry, list_empty
37 if not list_empty(css.children.address_of_()):
Diocost_monitor.py20 from drgn.helpers.linux.list import list_for_each_entry,list_empty
148 self.is_active = not list_empty(iocg.active_list.address_of_())
/tools/firewire/
Dlist.h14 list_empty(struct list *list) in list_empty() function
Dnosy-dump.c190 while (!list_empty(&t->request_list)) { in link_transaction_destroy()
195 while (!list_empty(&t->response_list)) { in link_transaction_destroy()
254 while (!list_empty(&pending_transaction_list)) { in clear_pending_transaction_list()
493 if (!list_empty(&t->request_list)) { in handle_request_packet()
555 if (list_empty(&t->request_list)) { in handle_response_packet()
562 if (!list_empty(&t->response_list)) { in handle_response_packet()
/tools/objtool/
Dobjtool.c134 if (!list_empty(&func->pv_target)) in objtool_pv_add()
/tools/perf/
Dbuiltin-ftrace.c604 bool graph = !list_empty(&ftrace->graph_funcs) || in select_tracer()
605 !list_empty(&ftrace->nograph_funcs); in select_tracer()
606 bool func = !list_empty(&ftrace->filters) || in select_tracer()
607 !list_empty(&ftrace->notrace); in select_tracer()
1650 if (list_empty(&ftrace.filters)) { in cmd_ftrace()
Dbuiltin-kmem.c2039 if (list_empty(&slab_caller_sort)) in cmd_kmem()
2041 if (list_empty(&slab_alloc_sort)) in cmd_kmem()
2043 if (list_empty(&page_caller_sort)) in cmd_kmem()
2045 if (list_empty(&page_alloc_sort)) in cmd_kmem()
/tools/workqueue/
Dwq_dump.py50 from drgn.helpers.linux.list import list_for_each_entry,list_empty
/tools/testing/vsock/
Dvsock_diag_test.c134 if (!list_empty(head)) { in check_no_sockets()
/tools/perf/ui/
Dhist.c597 BUG_ON(!list_empty(&fmt->list)); in fmt_free()
598 BUG_ON(!list_empty(&fmt->sort_list)); in fmt_free()
/tools/perf/tests/
Dswitch-tracking.c248 while (!list_empty(events)) { in free_event_nodes()
/tools/bpf/bpftool/
Dcfg.c421 if (list_empty(&bb->e_succs)) in draw_bb_succ_edges()

123