Lines Matching refs:fgd

6002 	struct ftrace_graph_data *fgd = m->private;  in __g_next()  local
6003 struct ftrace_func_entry *entry = fgd->entry; in __g_next()
6005 int i, idx = fgd->idx; in __g_next()
6007 if (*pos >= fgd->hash->count) in __g_next()
6012 fgd->entry = entry; in __g_next()
6019 for (i = idx; i < 1 << fgd->hash->size_bits; i++) { in __g_next()
6020 head = &fgd->hash->buckets[i]; in __g_next()
6022 fgd->entry = entry; in __g_next()
6023 fgd->idx = i; in __g_next()
6039 struct ftrace_graph_data *fgd = m->private; in g_start() local
6043 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_start()
6044 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in g_start()
6047 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in g_start()
6051 if (ftrace_hash_empty(fgd->hash) && !*pos) in g_start()
6054 fgd->idx = 0; in g_start()
6055 fgd->entry = NULL; in g_start()
6072 struct ftrace_graph_data *fgd = m->private; in g_show() local
6074 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_show()
6095 struct ftrace_graph_data *fgd) in __ftrace_graph_open() argument
6107 if (trace_parser_get_init(&fgd->parser, FTRACE_BUFF_MAX)) in __ftrace_graph_open()
6114 fgd->hash); in __ftrace_graph_open()
6125 m->private = fgd; in __ftrace_graph_open()
6132 file->private_data = fgd; in __ftrace_graph_open()
6136 trace_parser_put(&fgd->parser); in __ftrace_graph_open()
6138 fgd->new_hash = new_hash; in __ftrace_graph_open()
6145 fgd->hash = NULL; in __ftrace_graph_open()
6153 struct ftrace_graph_data *fgd; in ftrace_graph_open() local
6159 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_open()
6160 if (fgd == NULL) in ftrace_graph_open()
6165 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in ftrace_graph_open()
6167 fgd->type = GRAPH_FILTER_FUNCTION; in ftrace_graph_open()
6168 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_open()
6170 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_open()
6172 kfree(fgd); in ftrace_graph_open()
6181 struct ftrace_graph_data *fgd; in ftrace_graph_notrace_open() local
6187 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_notrace_open()
6188 if (fgd == NULL) in ftrace_graph_notrace_open()
6193 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in ftrace_graph_notrace_open()
6195 fgd->type = GRAPH_FILTER_NOTRACE; in ftrace_graph_notrace_open()
6196 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_notrace_open()
6198 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_notrace_open()
6200 kfree(fgd); in ftrace_graph_notrace_open()
6209 struct ftrace_graph_data *fgd; in ftrace_graph_release() local
6217 fgd = m->private; in ftrace_graph_release()
6220 fgd = file->private_data; in ftrace_graph_release()
6226 parser = &fgd->parser; in ftrace_graph_release()
6229 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_release()
6235 new_hash = __ftrace_hash_move(fgd->new_hash); in ftrace_graph_release()
6243 if (fgd->type == GRAPH_FILTER_FUNCTION) { in ftrace_graph_release()
6270 free_ftrace_hash(fgd->new_hash); in ftrace_graph_release()
6271 kfree(fgd); in ftrace_graph_release()
6336 struct ftrace_graph_data *fgd = file->private_data; in ftrace_graph_write() local
6345 fgd = m->private; in ftrace_graph_write()
6348 parser = &fgd->parser; in ftrace_graph_write()
6355 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_write()