Lines Matching refs:fgd

5128 	struct ftrace_graph_data *fgd = m->private;  in __g_next()  local
5129 struct ftrace_func_entry *entry = fgd->entry; in __g_next()
5131 int i, idx = fgd->idx; in __g_next()
5133 if (*pos >= fgd->hash->count) in __g_next()
5138 fgd->entry = entry; in __g_next()
5145 for (i = idx; i < 1 << fgd->hash->size_bits; i++) { in __g_next()
5146 head = &fgd->hash->buckets[i]; in __g_next()
5148 fgd->entry = entry; in __g_next()
5149 fgd->idx = i; in __g_next()
5165 struct ftrace_graph_data *fgd = m->private; in g_start() local
5169 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_start()
5170 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in g_start()
5173 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in g_start()
5177 if (ftrace_hash_empty(fgd->hash) && !*pos) in g_start()
5180 fgd->idx = 0; in g_start()
5181 fgd->entry = NULL; in g_start()
5198 struct ftrace_graph_data *fgd = m->private; in g_show() local
5200 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_show()
5221 struct ftrace_graph_data *fgd) in __ftrace_graph_open() argument
5233 if (trace_parser_get_init(&fgd->parser, FTRACE_BUFF_MAX)) in __ftrace_graph_open()
5240 fgd->hash); in __ftrace_graph_open()
5251 m->private = fgd; in __ftrace_graph_open()
5258 file->private_data = fgd; in __ftrace_graph_open()
5262 trace_parser_put(&fgd->parser); in __ftrace_graph_open()
5264 fgd->new_hash = new_hash; in __ftrace_graph_open()
5271 fgd->hash = NULL; in __ftrace_graph_open()
5279 struct ftrace_graph_data *fgd; in ftrace_graph_open() local
5285 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_open()
5286 if (fgd == NULL) in ftrace_graph_open()
5291 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in ftrace_graph_open()
5293 fgd->type = GRAPH_FILTER_FUNCTION; in ftrace_graph_open()
5294 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_open()
5296 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_open()
5298 kfree(fgd); in ftrace_graph_open()
5307 struct ftrace_graph_data *fgd; in ftrace_graph_notrace_open() local
5313 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_notrace_open()
5314 if (fgd == NULL) in ftrace_graph_notrace_open()
5319 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in ftrace_graph_notrace_open()
5321 fgd->type = GRAPH_FILTER_NOTRACE; in ftrace_graph_notrace_open()
5322 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_notrace_open()
5324 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_notrace_open()
5326 kfree(fgd); in ftrace_graph_notrace_open()
5335 struct ftrace_graph_data *fgd; in ftrace_graph_release() local
5343 fgd = m->private; in ftrace_graph_release()
5346 fgd = file->private_data; in ftrace_graph_release()
5352 parser = &fgd->parser; in ftrace_graph_release()
5355 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_release()
5361 new_hash = __ftrace_hash_move(fgd->new_hash); in ftrace_graph_release()
5369 if (fgd->type == GRAPH_FILTER_FUNCTION) { in ftrace_graph_release()
5388 free_ftrace_hash(fgd->new_hash); in ftrace_graph_release()
5389 kfree(fgd); in ftrace_graph_release()
5454 struct ftrace_graph_data *fgd = file->private_data; in ftrace_graph_write() local
5463 fgd = m->private; in ftrace_graph_write()
5466 parser = &fgd->parser; in ftrace_graph_write()
5473 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_write()