Lines Matching refs:fgd
5067 struct ftrace_graph_data *fgd = m->private; in __g_next() local
5068 struct ftrace_func_entry *entry = fgd->entry; in __g_next()
5070 int i, idx = fgd->idx; in __g_next()
5072 if (*pos >= fgd->hash->count) in __g_next()
5077 fgd->entry = entry; in __g_next()
5084 for (i = idx; i < 1 << fgd->hash->size_bits; i++) { in __g_next()
5085 head = &fgd->hash->buckets[i]; in __g_next()
5087 fgd->entry = entry; in __g_next()
5088 fgd->idx = i; in __g_next()
5104 struct ftrace_graph_data *fgd = m->private; in g_start() local
5108 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_start()
5109 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in g_start()
5112 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in g_start()
5116 if (ftrace_hash_empty(fgd->hash) && !*pos) in g_start()
5119 fgd->idx = 0; in g_start()
5120 fgd->entry = NULL; in g_start()
5137 struct ftrace_graph_data *fgd = m->private; in g_show() local
5139 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_show()
5160 struct ftrace_graph_data *fgd) in __ftrace_graph_open() argument
5168 if (trace_parser_get_init(&fgd->parser, FTRACE_BUFF_MAX)) in __ftrace_graph_open()
5175 fgd->hash); in __ftrace_graph_open()
5186 m->private = fgd; in __ftrace_graph_open()
5193 file->private_data = fgd; in __ftrace_graph_open()
5197 trace_parser_put(&fgd->parser); in __ftrace_graph_open()
5199 fgd->new_hash = new_hash; in __ftrace_graph_open()
5206 fgd->hash = NULL; in __ftrace_graph_open()
5214 struct ftrace_graph_data *fgd; in ftrace_graph_open() local
5220 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_open()
5221 if (fgd == NULL) in ftrace_graph_open()
5226 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in ftrace_graph_open()
5228 fgd->type = GRAPH_FILTER_FUNCTION; in ftrace_graph_open()
5229 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_open()
5231 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_open()
5233 kfree(fgd); in ftrace_graph_open()
5242 struct ftrace_graph_data *fgd; in ftrace_graph_notrace_open() local
5248 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_notrace_open()
5249 if (fgd == NULL) in ftrace_graph_notrace_open()
5254 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in ftrace_graph_notrace_open()
5256 fgd->type = GRAPH_FILTER_NOTRACE; in ftrace_graph_notrace_open()
5257 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_notrace_open()
5259 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_notrace_open()
5261 kfree(fgd); in ftrace_graph_notrace_open()
5270 struct ftrace_graph_data *fgd; in ftrace_graph_release() local
5278 fgd = m->private; in ftrace_graph_release()
5281 fgd = file->private_data; in ftrace_graph_release()
5287 parser = &fgd->parser; in ftrace_graph_release()
5290 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_release()
5296 new_hash = __ftrace_hash_move(fgd->new_hash); in ftrace_graph_release()
5304 if (fgd->type == GRAPH_FILTER_FUNCTION) { in ftrace_graph_release()
5323 free_ftrace_hash(fgd->new_hash); in ftrace_graph_release()
5324 kfree(fgd); in ftrace_graph_release()
5389 struct ftrace_graph_data *fgd = file->private_data; in ftrace_graph_write() local
5398 fgd = m->private; in ftrace_graph_write()
5401 parser = &fgd->parser; in ftrace_graph_write()
5408 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_write()