Home
last modified time | relevance | path

Searched refs:num (Results 1 – 14 of 14) sorted by relevance

/kernel/trace/
Dtrace_syscalls.c373 int num; in reg_event_syscall_enter() local
375 num = ((struct syscall_metadata *)call->data)->syscall_nr; in reg_event_syscall_enter()
376 if (WARN_ON_ONCE(num < 0 || num >= NR_syscalls)) in reg_event_syscall_enter()
382 rcu_assign_pointer(tr->enter_syscall_files[num], file); in reg_event_syscall_enter()
393 int num; in unreg_event_syscall_enter() local
395 num = ((struct syscall_metadata *)call->data)->syscall_nr; in unreg_event_syscall_enter()
396 if (WARN_ON_ONCE(num < 0 || num >= NR_syscalls)) in unreg_event_syscall_enter()
400 RCU_INIT_POINTER(tr->enter_syscall_files[num], NULL); in unreg_event_syscall_enter()
411 int num; in reg_event_syscall_exit() local
413 num = ((struct syscall_metadata *)call->data)->syscall_nr; in reg_event_syscall_exit()
[all …]
Dfprobe.c104 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()
[all …]
Dtrace_events_inject.c75 char *num, c; in parse_field() local
88 num = str + s; in parse_field()
95 ret = kstrtoll(num, 0, &val); in parse_field()
97 ret = kstrtoull(num, 0, &val); in parse_field()
/kernel/
Dparams.c164 unsigned num, in parse_args() argument
188 ret = parse_one(param, val, doing, params, num, in parse_args()
249 unsigned int num; in param_set_uint_minmax() local
254 ret = kstrtouint(val, 0, &num); in param_set_uint_minmax()
257 if (num < min || num > max) in param_set_uint_minmax()
259 *((unsigned int *)kp->arg) = num; in param_set_uint_minmax()
420 unsigned int *num) in param_array() argument
431 *num = 0; in param_array()
436 if (*num == max) { in param_array()
452 (*num)++; in param_array()
[all …]
Dkprobes.c1822 int register_kprobes(struct kprobe **kps, int num) in register_kprobes() argument
1826 if (num <= 0) in register_kprobes()
1828 for (i = 0; i < num; i++) { in register_kprobes()
1846 void unregister_kprobes(struct kprobe **kps, int num) in unregister_kprobes() argument
1850 if (num <= 0) in unregister_kprobes()
1853 for (i = 0; i < num; i++) in unregister_kprobes()
1859 for (i = 0; i < num; i++) in unregister_kprobes()
2280 int register_kretprobes(struct kretprobe **rps, int num) in register_kretprobes() argument
2284 if (num <= 0) in register_kretprobes()
2286 for (i = 0; i < num; i++) { in register_kretprobes()
[all …]
/kernel/cgroup/
Dpids.c107 static void pids_cancel(struct pids_cgroup *pids, int num) in pids_cancel() argument
113 WARN_ON_ONCE(atomic64_add_negative(-num, &pids->counter)); in pids_cancel()
121 static void pids_uncharge(struct pids_cgroup *pids, int num) in pids_uncharge() argument
126 pids_cancel(p, num); in pids_uncharge()
138 static void pids_charge(struct pids_cgroup *pids, int num) in pids_charge() argument
143 int64_t new = atomic64_add_return(num, &p->counter); in pids_charge()
158 static int pids_try_charge(struct pids_cgroup *pids, int num) in pids_try_charge() argument
163 int64_t new = atomic64_add_return(num, &p->counter); in pids_try_charge()
185 pids_cancel(q, num); in pids_try_charge()
186 pids_cancel(p, num); in pids_try_charge()
/kernel/gcov/
Dgcc_4_7.c51 unsigned int num; member
221 sizeof(gcov_type) * ci_ptr->num); in gcov_info_reset()
262 for (val_idx = 0; val_idx < sci_ptr->num; val_idx++) in gcov_info_add()
322 cv_size = sizeof(gcov_type) * sci_ptr->num; in gcov_info_dup()
329 dci_ptr->num = sci_ptr->num; in gcov_info_dup()
424 ci_ptr->num * 2 * GCOV_UNIT_SIZE); in convert_to_gcda()
426 for (cv_idx = 0; cv_idx < ci_ptr->num; cv_idx++) { in convert_to_gcda()
Dfs.c480 int num; in add_links() local
483 for (num = 0; gcov_link[num].ext; num++) in add_links()
485 node->links = kcalloc(num, sizeof(struct dentry *), GFP_KERNEL); in add_links()
488 for (i = 0; i < num; i++) { in add_links()
727 int num = node->num_loaded; in add_info() local
734 loaded_info = kcalloc(num + 1, sizeof(struct gcov_info *), GFP_KERNEL); in add_info()
741 num * sizeof(struct gcov_info *)); in add_info()
742 loaded_info[num] = info; in add_info()
744 if (num == 0) { in add_info()
771 node->num_loaded = num + 1; in add_info()
/kernel/irq/
Dmatrix.c111 unsigned int num, bool managed) in matrix_alloc_area() argument
118 area = bitmap_find_next_zero_area(m->scratch_map, end, start, num, 0); in matrix_alloc_area()
122 bitmap_set(cm->managed_map, area, num); in matrix_alloc_area()
124 bitmap_set(cm->alloc_map, area, num); in matrix_alloc_area()
/kernel/events/
Dhw_breakpoint_test.c106 static int get_test_cpu(int num) in get_test_cpu() argument
110 WARN_ON(num < 0); in get_test_cpu()
113 if (num-- <= 0) in get_test_cpu()
/kernel/locking/
Dlockdep_proc.c443 char num[15]; in seq_time() local
445 snprint_time(num, sizeof(num), time); in seq_time()
446 seq_printf(m, " %14s", num); in seq_time()
/kernel/debug/kdb/
Dkdb_main.c1531 int num, int repeat, int phys) in kdb_md_line() argument
1547 for (i = 0; i < num && repeat--; i++) { in kdb_md_line()
1590 kdb_printf("%*s %s\n", (int)((num-i)*(2*bytesperword + 1)+1), in kdb_md_line()
1754 int n, z, num = (symbolic ? 1 : (16 / bytesperword)); in kdb_md() local
1766 n = min(num, repeat); in kdb_md()
1768 num, repeat, phys); in kdb_md()
1771 z = (z + num - 1) / num; in kdb_md()
1773 int s = num * (z-2); in kdb_md()
/kernel/debug/
Dgdbstub.c293 int num = 0; in kgdb_hex2long() local
308 num++; in kgdb_hex2long()
315 return num; in kgdb_hex2long()
/kernel/module/
Dmain.c206 unsigned int *num) in section_objs() argument
211 *num = info->sechdrs[sec].sh_size / object_size; in section_objs()
235 unsigned int *num) in any_section_objs() argument
240 *num = info->sechdrs[sec].sh_size / object_size; in any_section_objs()
1268 unsigned int num; in verify_exported_symbols() member
1275 for (s = arr[i].sym; s < arr[i].sym + arr[i].num; s++) { in verify_exported_symbols()