Lines Matching refs:fgd
6592 struct ftrace_graph_data *fgd = m->private; in __g_next() local
6593 struct ftrace_func_entry *entry = fgd->entry; in __g_next()
6595 int i, idx = fgd->idx; in __g_next()
6597 if (*pos >= fgd->hash->count) in __g_next()
6602 fgd->entry = entry; in __g_next()
6609 for (i = idx; i < 1 << fgd->hash->size_bits; i++) { in __g_next()
6610 head = &fgd->hash->buckets[i]; in __g_next()
6612 fgd->entry = entry; in __g_next()
6613 fgd->idx = i; in __g_next()
6629 struct ftrace_graph_data *fgd = m->private; in g_start() local
6633 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_start()
6634 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in g_start()
6637 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in g_start()
6641 if (ftrace_hash_empty(fgd->hash) && !*pos) in g_start()
6644 fgd->idx = 0; in g_start()
6645 fgd->entry = NULL; in g_start()
6662 struct ftrace_graph_data *fgd = m->private; in g_show() local
6664 if (fgd->type == GRAPH_FILTER_FUNCTION) in g_show()
6685 struct ftrace_graph_data *fgd) in __ftrace_graph_open() argument
6697 if (trace_parser_get_init(&fgd->parser, FTRACE_BUFF_MAX)) in __ftrace_graph_open()
6704 fgd->hash); in __ftrace_graph_open()
6715 m->private = fgd; in __ftrace_graph_open()
6722 file->private_data = fgd; in __ftrace_graph_open()
6726 trace_parser_put(&fgd->parser); in __ftrace_graph_open()
6728 fgd->new_hash = new_hash; in __ftrace_graph_open()
6735 fgd->hash = NULL; in __ftrace_graph_open()
6743 struct ftrace_graph_data *fgd; in ftrace_graph_open() local
6749 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_open()
6750 if (fgd == NULL) in ftrace_graph_open()
6755 fgd->hash = rcu_dereference_protected(ftrace_graph_hash, in ftrace_graph_open()
6757 fgd->type = GRAPH_FILTER_FUNCTION; in ftrace_graph_open()
6758 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_open()
6760 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_open()
6762 kfree(fgd); in ftrace_graph_open()
6771 struct ftrace_graph_data *fgd; in ftrace_graph_notrace_open() local
6777 fgd = kmalloc(sizeof(*fgd), GFP_KERNEL); in ftrace_graph_notrace_open()
6778 if (fgd == NULL) in ftrace_graph_notrace_open()
6783 fgd->hash = rcu_dereference_protected(ftrace_graph_notrace_hash, in ftrace_graph_notrace_open()
6785 fgd->type = GRAPH_FILTER_NOTRACE; in ftrace_graph_notrace_open()
6786 fgd->seq_ops = &ftrace_graph_seq_ops; in ftrace_graph_notrace_open()
6788 ret = __ftrace_graph_open(inode, file, fgd); in ftrace_graph_notrace_open()
6790 kfree(fgd); in ftrace_graph_notrace_open()
6799 struct ftrace_graph_data *fgd; in ftrace_graph_release() local
6807 fgd = m->private; in ftrace_graph_release()
6810 fgd = file->private_data; in ftrace_graph_release()
6816 parser = &fgd->parser; in ftrace_graph_release()
6819 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_release()
6825 new_hash = __ftrace_hash_move(fgd->new_hash); in ftrace_graph_release()
6833 if (fgd->type == GRAPH_FILTER_FUNCTION) { in ftrace_graph_release()
6860 free_ftrace_hash(fgd->new_hash); in ftrace_graph_release()
6861 kfree(fgd); in ftrace_graph_release()
6920 struct ftrace_graph_data *fgd = file->private_data; in ftrace_graph_write() local
6929 fgd = m->private; in ftrace_graph_write()
6932 parser = &fgd->parser; in ftrace_graph_write()
6939 ret = ftrace_graph_set_hash(fgd->new_hash, in ftrace_graph_write()