Lines Matching refs:fgd

5727 	struct ftrace_graph_data *fgd = m->private;  in __g_next()  local
5728 struct ftrace_func_entry *entry = fgd->entry; in __g_next()
5730 int i, idx = fgd->idx; in __g_next()
5732 if (*pos >= fgd->hash->count) in __g_next()
5737 fgd->entry = entry; in __g_next()
5744 for (i = idx; i < 1 << fgd->hash->size_bits; i++) { in __g_next()
5745 head = &fgd->hash->buckets[i]; in __g_next()
5747 fgd->entry = entry; in __g_next()
5748 fgd->idx = i; in __g_next()
5764 struct ftrace_graph_data *fgd = m->private; in g_start() local
5768 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_start()
5769 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in g_start()
5772 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in g_start()
5776 if (ftrace_hash_empty(fgd->hash) && !*pos) in g_start()
5779 fgd->idx = 0; in g_start()
5780 fgd->entry = NULL; in g_start()
5797 struct ftrace_graph_data *fgd = m->private; in g_show() local
5799 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_show()
5820 struct ftrace_graph_data *fgd) in __ftrace_graph_open() argument
5832 if (trace_parser_get_init(&fgd->parser, FTRACE_BUFF_MAX)) in __ftrace_graph_open()
5839 fgd->hash); in __ftrace_graph_open()
5850 m->private = fgd; in __ftrace_graph_open()
5857 file->private_data = fgd; in __ftrace_graph_open()
5861 trace_parser_put(&fgd->parser); in __ftrace_graph_open()
5863 fgd->new_hash = new_hash; in __ftrace_graph_open()
5870 fgd->hash = NULL; in __ftrace_graph_open()
5878 struct ftrace_graph_data *fgd; in ftrace_graph_open() local
5884 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_open()
5885 if (fgd == NULL) in ftrace_graph_open()
5890 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in ftrace_graph_open()
5892 fgd->type = GRAPH_FILTER_FUNCTION; in ftrace_graph_open()
5893 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_open()
5895 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_open()
5897 kfree(fgd); in ftrace_graph_open()
5906 struct ftrace_graph_data *fgd; in ftrace_graph_notrace_open() local
5912 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_notrace_open()
5913 if (fgd == NULL) in ftrace_graph_notrace_open()
5918 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in ftrace_graph_notrace_open()
5920 fgd->type = GRAPH_FILTER_NOTRACE; in ftrace_graph_notrace_open()
5921 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_notrace_open()
5923 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_notrace_open()
5925 kfree(fgd); in ftrace_graph_notrace_open()
5934 struct ftrace_graph_data *fgd; in ftrace_graph_release() local
5942 fgd = m->private; in ftrace_graph_release()
5945 fgd = file->private_data; in ftrace_graph_release()
5951 parser = &fgd->parser; in ftrace_graph_release()
5954 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_release()
5960 new_hash = __ftrace_hash_move(fgd->new_hash); in ftrace_graph_release()
5968 if (fgd->type == GRAPH_FILTER_FUNCTION) { in ftrace_graph_release()
5995 free_ftrace_hash(fgd->new_hash); in ftrace_graph_release()
5996 kfree(fgd); in ftrace_graph_release()
6061 struct ftrace_graph_data *fgd = file->private_data; in ftrace_graph_write() local
6070 fgd = m->private; in ftrace_graph_write()
6073 parser = &fgd->parser; in ftrace_graph_write()
6080 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_write()