Lines Matching refs:fgd
5693 struct ftrace_graph_data *fgd = m->private; in __g_next() local
5694 struct ftrace_func_entry *entry = fgd->entry; in __g_next()
5696 int i, idx = fgd->idx; in __g_next()
5698 if (*pos >= fgd->hash->count) in __g_next()
5703 fgd->entry = entry; in __g_next()
5710 for (i = idx; i < 1 << fgd->hash->size_bits; i++) { in __g_next()
5711 head = &fgd->hash->buckets[i]; in __g_next()
5713 fgd->entry = entry; in __g_next()
5714 fgd->idx = i; in __g_next()
5730 struct ftrace_graph_data *fgd = m->private; in g_start() local
5734 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_start()
5735 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in g_start()
5738 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in g_start()
5742 if (ftrace_hash_empty(fgd->hash) && !*pos) in g_start()
5745 fgd->idx = 0; in g_start()
5746 fgd->entry = NULL; in g_start()
5763 struct ftrace_graph_data *fgd = m->private; in g_show() local
5765 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_show()
5786 struct ftrace_graph_data *fgd) in __ftrace_graph_open() argument
5798 if (trace_parser_get_init(&fgd->parser, FTRACE_BUFF_MAX)) in __ftrace_graph_open()
5805 fgd->hash); in __ftrace_graph_open()
5816 m->private = fgd; in __ftrace_graph_open()
5823 file->private_data = fgd; in __ftrace_graph_open()
5827 trace_parser_put(&fgd->parser); in __ftrace_graph_open()
5829 fgd->new_hash = new_hash; in __ftrace_graph_open()
5836 fgd->hash = NULL; in __ftrace_graph_open()
5844 struct ftrace_graph_data *fgd; in ftrace_graph_open() local
5850 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_open()
5851 if (fgd == NULL) in ftrace_graph_open()
5856 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in ftrace_graph_open()
5858 fgd->type = GRAPH_FILTER_FUNCTION; in ftrace_graph_open()
5859 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_open()
5861 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_open()
5863 kfree(fgd); in ftrace_graph_open()
5872 struct ftrace_graph_data *fgd; in ftrace_graph_notrace_open() local
5878 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_notrace_open()
5879 if (fgd == NULL) in ftrace_graph_notrace_open()
5884 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in ftrace_graph_notrace_open()
5886 fgd->type = GRAPH_FILTER_NOTRACE; in ftrace_graph_notrace_open()
5887 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_notrace_open()
5889 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_notrace_open()
5891 kfree(fgd); in ftrace_graph_notrace_open()
5900 struct ftrace_graph_data *fgd; in ftrace_graph_release() local
5908 fgd = m->private; in ftrace_graph_release()
5911 fgd = file->private_data; in ftrace_graph_release()
5917 parser = &fgd->parser; in ftrace_graph_release()
5920 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_release()
5926 new_hash = __ftrace_hash_move(fgd->new_hash); in ftrace_graph_release()
5934 if (fgd->type == GRAPH_FILTER_FUNCTION) { in ftrace_graph_release()
5960 free_ftrace_hash(fgd->new_hash); in ftrace_graph_release()
5961 kfree(fgd); in ftrace_graph_release()
6026 struct ftrace_graph_data *fgd = file->private_data; in ftrace_graph_write() local
6035 fgd = m->private; in ftrace_graph_write()
6038 parser = &fgd->parser; in ftrace_graph_write()
6045 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_write()