Home
last modified time | relevance | path

Searched refs:fops (Results 1 – 9 of 9) sorted by relevance

/kernel/livepatch/
Dpatch.c42 struct ftrace_ops *fops, in klp_ftrace_handler() argument
50 ops = container_of(fops, struct klp_ops, fops); in klp_ftrace_handler()
147 WARN_ON(unregister_ftrace_function(&ops->fops)); in klp_unpatch_func()
148 WARN_ON(ftrace_set_filter_ip(&ops->fops, ftrace_loc, 1, 0)); in klp_unpatch_func()
186 ops->fops.func = klp_ftrace_handler; in klp_patch_func()
187 ops->fops.flags = FTRACE_OPS_FL_DYNAMIC | in klp_patch_func()
199 ret = ftrace_set_filter_ip(&ops->fops, ftrace_loc, 0, 0); in klp_patch_func()
206 ret = register_ftrace_function(&ops->fops); in klp_patch_func()
210 ftrace_set_filter_ip(&ops->fops, ftrace_loc, 1, 0); in klp_patch_func()
Dpatch.h25 struct ftrace_ops fops; member
/kernel/bpf/
Dtrampoline.c153 tr->fops = kzalloc(sizeof(struct ftrace_ops), GFP_KERNEL); in bpf_trampoline_lookup()
154 if (!tr->fops) { in bpf_trampoline_lookup()
159 tr->fops->private = tr; in bpf_trampoline_lookup()
160 tr->fops->ops_func = bpf_tramp_ftrace_ops_func; in bpf_trampoline_lookup()
201 ret = unregister_ftrace_direct_multi(tr->fops, (long)old_addr); in unregister_fentry()
218 ret = modify_ftrace_direct_multi(tr->fops, (long)new_addr); in modify_fentry()
220 ret = modify_ftrace_direct_multi_nolock(tr->fops, (long)new_addr); in modify_fentry()
236 if (!tr->fops) in register_fentry()
245 ftrace_set_filter_ip(tr->fops, (unsigned long)ip, 0, 1); in register_fentry()
246 ret = register_ftrace_direct_multi(tr->fops, (long)new_addr); in register_fentry()
[all …]
Dinode.c333 const struct file_operations *fops) in bpf_mkobj_ops() argument
341 inode->i_fop = fops; in bpf_mkobj_ops()
/kernel/
Dkexec_file.c54 const struct kexec_file_ops * const *fops; in kexec_image_probe_default() local
57 for (fops = &kexec_file_loaders[0]; *fops && (*fops)->probe; ++fops) { in kexec_image_probe_default()
58 ret = (*fops)->probe(buf, buf_len); in kexec_image_probe_default()
60 image->fops = *fops; in kexec_image_probe_default()
70 if (!image->fops || !image->fops->load) in kexec_image_load_default()
73 return image->fops->load(image, image->kernel_buf, in kexec_image_load_default()
81 if (!image->fops || !image->fops->cleanup) in kexec_image_post_load_cleanup_default()
84 return image->fops->cleanup(image->image_loader_data); in kexec_image_post_load_cleanup_default()
149 if (!image->fops || !image->fops->verify_sig) { in kexec_image_verify_sig()
154 return image->fops->verify_sig(buf, buf_len); in kexec_image_verify_sig()
/kernel/power/
Duser.c458 .fops = &snapshot_fops,
Dqos.c411 .fops = &cpu_latency_qos_fops,
/kernel/trace/
Dtrace.h602 const struct file_operations *fops);
Dtrace.c8765 void *data, long cpu, const struct file_operations *fops) in trace_create_cpu_file() argument
8767 struct dentry *ret = trace_create_file(name, mode, parent, data, fops); in trace_create_cpu_file()
8991 const struct file_operations *fops) in trace_create_file() argument
8995 ret = tracefs_create_file(name, mode, parent, data, fops); in trace_create_file()