Lines Matching +full:ftrace +full:- +full:size
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Simple ftrace probe wrapper */
7 #include <linux/ftrace.h>
22 * struct fprobe_hlist_node - address based hash list node for fprobe.
35 * struct fprobe_hlist - hash list nodes for fprobe.
40 * @size: The size of @array.
47 int size; member
48 struct fprobe_hlist_node array[] __counted_by(size);
52 * struct fprobe - ftrace based probe.
56 * @entry_data_size: The private data storage size.
72 /* This fprobe is soft-disabled. */
83 return (fp) ? fp->flags & FPROBE_FL_DISABLED : false; in fprobe_disabled()
88 return (fp) ? fp->flags & FPROBE_FL_KPROBE_SHARED : false; in fprobe_shared_with_kprobes()
100 return -EOPNOTSUPP; in register_fprobe()
104 return -EOPNOTSUPP; in register_fprobe_ips()
108 return -EOPNOTSUPP; in register_fprobe_syms()
112 return -EOPNOTSUPP; in unregister_fprobe()
121 * disable_fprobe() - Disable fprobe
124 * This will soft-disable @fp. Note that this doesn't remove the ftrace
130 fp->flags |= FPROBE_FL_DISABLED; in disable_fprobe()
134 * enable_fprobe() - Enable fprobe
137 * This will soft-enable @fp.
142 fp->flags &= ~FPROBE_FL_DISABLED; in enable_fprobe()
145 /* The entry data size is 4 bits (=16) * sizeof(long) in maximum */
147 #define MAX_FPROBE_DATA_SIZE_WORD ((1L << FPROBE_DATA_SIZE_BITS) - 1)