Lines Matching refs:num
104 static unsigned long *get_ftrace_locations(const char **syms, int num) in get_ftrace_locations() argument
109 addrs = kcalloc(num, sizeof(*addrs), GFP_KERNEL); in get_ftrace_locations()
114 sort(syms, num, sizeof(*syms), symbols_cmp, NULL); in get_ftrace_locations()
116 if (!ftrace_lookup_symbols(syms, num, addrs)) in get_ftrace_locations()
133 static int fprobe_init_rethook(struct fprobe *fp, int num) in fprobe_init_rethook() argument
137 if (num <= 0) in fprobe_init_rethook()
149 size = num * num_possible_cpus() * 2; in fprobe_init_rethook()
250 int register_fprobe_ips(struct fprobe *fp, unsigned long *addrs, int num) in register_fprobe_ips() argument
254 if (!fp || !addrs || num <= 0) in register_fprobe_ips()
259 ret = ftrace_set_filter_ips(&fp->ops, addrs, num, 0, 0); in register_fprobe_ips()
263 ret = fprobe_init_rethook(fp, num); in register_fprobe_ips()
284 int register_fprobe_syms(struct fprobe *fp, const char **syms, int num) in register_fprobe_syms() argument
289 if (!fp || !syms || num <= 0) in register_fprobe_syms()
292 addrs = get_ftrace_locations(syms, num); in register_fprobe_syms()
296 ret = register_fprobe_ips(fp, addrs, num); in register_fprobe_syms()