Lines Matching refs:stat
21 * List of stat red-black nodes from a tracer
22 * We use a such tree to sort quickly the stat
27 void *stat;
30 /* A stat session is the stats output in one file */
39 /* All of the sessions currently in use. Each stat file embed one session */
43 /* The root directory for all stat files */
73 ts->stat_release(snode->stat);
107 static int insert_stat(struct rb_root *root, void *stat, cmp_stat_t cmp)
115 data->stat = stat;
126 result = cmp(data->stat, this->stat);
151 * Initialize the stat rbtree at each trace_stat file opening.
159 void *stat;
169 stat = ts->stat_start(ts);
170 if (!stat)
173 ret = insert_stat(root, stat, ts->stat_cmp);
178 * Iterate over the tracer stat entries and store them in an rbtree.
181 stat = ts->stat_next(stat, i);
184 if (!stat)
187 ret = insert_stat(root, stat, ts->stat_cmp);
254 return session->ts->stat_show(s, l->stat);
264 /* The session stat is refilled and resorted at each stat file opening */