Lines Matching refs:fgd

6172 	struct ftrace_graph_data *fgd = m->private;  in __g_next()  local
6173 struct ftrace_func_entry *entry = fgd->entry; in __g_next()
6175 int i, idx = fgd->idx; in __g_next()
6177 if (*pos >= fgd->hash->count) in __g_next()
6182 fgd->entry = entry; in __g_next()
6189 for (i = idx; i < 1 << fgd->hash->size_bits; i++) { in __g_next()
6190 head = &fgd->hash->buckets[i]; in __g_next()
6192 fgd->entry = entry; in __g_next()
6193 fgd->idx = i; in __g_next()
6209 struct ftrace_graph_data *fgd = m->private; in g_start() local
6213 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_start()
6214 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in g_start()
6217 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in g_start()
6221 if (ftrace_hash_empty(fgd->hash) && !*pos) in g_start()
6224 fgd->idx = 0; in g_start()
6225 fgd->entry = NULL; in g_start()
6242 struct ftrace_graph_data *fgd = m->private; in g_show() local
6244 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_show()
6265 struct ftrace_graph_data *fgd) in __ftrace_graph_open() argument
6277 if (trace_parser_get_init(&fgd->parser, FTRACE_BUFF_MAX)) in __ftrace_graph_open()
6284 fgd->hash); in __ftrace_graph_open()
6295 m->private = fgd; in __ftrace_graph_open()
6302 file->private_data = fgd; in __ftrace_graph_open()
6306 trace_parser_put(&fgd->parser); in __ftrace_graph_open()
6308 fgd->new_hash = new_hash; in __ftrace_graph_open()
6315 fgd->hash = NULL; in __ftrace_graph_open()
6323 struct ftrace_graph_data *fgd; in ftrace_graph_open() local
6329 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_open()
6330 if (fgd == NULL) in ftrace_graph_open()
6335 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in ftrace_graph_open()
6337 fgd->type = GRAPH_FILTER_FUNCTION; in ftrace_graph_open()
6338 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_open()
6340 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_open()
6342 kfree(fgd); in ftrace_graph_open()
6351 struct ftrace_graph_data *fgd; in ftrace_graph_notrace_open() local
6357 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_notrace_open()
6358 if (fgd == NULL) in ftrace_graph_notrace_open()
6363 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in ftrace_graph_notrace_open()
6365 fgd->type = GRAPH_FILTER_NOTRACE; in ftrace_graph_notrace_open()
6366 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_notrace_open()
6368 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_notrace_open()
6370 kfree(fgd); in ftrace_graph_notrace_open()
6379 struct ftrace_graph_data *fgd; in ftrace_graph_release() local
6387 fgd = m->private; in ftrace_graph_release()
6390 fgd = file->private_data; in ftrace_graph_release()
6396 parser = &fgd->parser; in ftrace_graph_release()
6399 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_release()
6405 new_hash = __ftrace_hash_move(fgd->new_hash); in ftrace_graph_release()
6413 if (fgd->type == GRAPH_FILTER_FUNCTION) { in ftrace_graph_release()
6440 free_ftrace_hash(fgd->new_hash); in ftrace_graph_release()
6441 kfree(fgd); in ftrace_graph_release()
6506 struct ftrace_graph_data *fgd = file->private_data; in ftrace_graph_write() local
6515 fgd = m->private; in ftrace_graph_write()
6518 parser = &fgd->parser; in ftrace_graph_write()
6525 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_write()