Home
last modified time | relevance | path

Searched refs:comm_strs (Results 1 – 1 of 1) sorted by relevance

/linux/tools/perf/util/
H A Dcomm.c17 static struct comm_strs { struct
35 static struct comm_strs *comm_strs__get(void) in comm_strs__get() argument
102 struct comm_strs *comm_strs = comm_strs__get(); in comm_strs__remove_if_last() local
104 down_write(&comm_strs->lock); in comm_strs__remove_if_last()
112 entry = bsearch(comm_str__str(cs), comm_strs->strs, comm_strs->num_strs, in comm_strs__remove_if_last()
115 for (int i = entry - comm_strs->strs; i < comm_strs->num_strs - 1; i++) in comm_strs__remove_if_last()
116 comm_strs->strs[i] = comm_strs->strs[i + 1]; in comm_strs__remove_if_last()
117 comm_strs->num_strs--; in comm_strs__remove_if_last()
119 up_write(&comm_strs->lock); in comm_strs__remove_if_last()
122 static struct comm_str *__comm_strs__find(struct comm_strs *comm_strs, const char *str) in __comm_strs__find() argument
[all …]