Home
last modified time | relevance | path

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

/kernel/trace/
Dtrace_syscalls.c409 int num; in reg_event_syscall_enter() local
411 num = ((struct syscall_metadata *)call->data)->syscall_nr; in reg_event_syscall_enter()
412 if (WARN_ON_ONCE(num < 0 || num >= NR_syscalls)) in reg_event_syscall_enter()
418 rcu_assign_pointer(tr->enter_syscall_files[num], file); in reg_event_syscall_enter()
429 int num; in unreg_event_syscall_enter() local
431 num = ((struct syscall_metadata *)call->data)->syscall_nr; in unreg_event_syscall_enter()
432 if (WARN_ON_ONCE(num < 0 || num >= NR_syscalls)) in unreg_event_syscall_enter()
436 RCU_INIT_POINTER(tr->enter_syscall_files[num], NULL); in unreg_event_syscall_enter()
447 int num; in reg_event_syscall_exit() local
449 num = ((struct syscall_metadata *)call->data)->syscall_nr; in reg_event_syscall_exit()
[all …]
/kernel/
Dparams.c164 unsigned num, in parse_args() argument
188 ret = parse_one(param, val, doing, params, num, in parse_args()
401 unsigned int *num) in param_array() argument
412 *num = 0; in param_array()
417 if (*num == max) { in param_array()
433 (*num)++; in param_array()
436 if (*num < min) { in param_array()
450 arr->num ?: &temp_num); in param_array_set()
459 for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) { in param_array_get()
480 for (i = 0; i < (arr->num ? *arr->num : arr->max); i++) in param_array_free()
[all …]
Dkprobes.c1772 int register_kprobes(struct kprobe **kps, int num) in register_kprobes() argument
1776 if (num <= 0) in register_kprobes()
1778 for (i = 0; i < num; i++) { in register_kprobes()
1796 void unregister_kprobes(struct kprobe **kps, int num) in unregister_kprobes() argument
1800 if (num <= 0) in unregister_kprobes()
1803 for (i = 0; i < num; i++) in unregister_kprobes()
1809 for (i = 0; i < num; i++) in unregister_kprobes()
1962 int register_kretprobes(struct kretprobe **rps, int num) in register_kretprobes() argument
1966 if (num <= 0) in register_kretprobes()
1968 for (i = 0; i < num; i++) { in register_kretprobes()
[all …]
Dmodule.c368 unsigned int *num) in section_objs() argument
373 *num = info->sechdrs[sec].sh_size / object_size; in section_objs()
2269 unsigned int num; in verify_exported_symbols() member
2281 for (s = arr[i].sym; s < arr[i].sym + arr[i].num; s++) { in verify_exported_symbols()
2796 static void dynamic_debug_setup(struct module *mod, struct _ddebug *debug, unsigned int num) in dynamic_debug_setup() argument
2800 ddebug_add_module(debug, num, mod->name); in dynamic_debug_setup()
/kernel/cgroup/
Dpids.c95 static void pids_cancel(struct pids_cgroup *pids, int num) in pids_cancel() argument
101 WARN_ON_ONCE(atomic64_add_negative(-num, &pids->counter)); in pids_cancel()
109 static void pids_uncharge(struct pids_cgroup *pids, int num) in pids_uncharge() argument
114 pids_cancel(p, num); in pids_uncharge()
126 static void pids_charge(struct pids_cgroup *pids, int num) in pids_charge() argument
131 atomic64_add(num, &p->counter); in pids_charge()
143 static int pids_try_charge(struct pids_cgroup *pids, int num) in pids_try_charge() argument
148 int64_t new = atomic64_add_return(num, &p->counter); in pids_try_charge()
164 pids_cancel(q, num); in pids_try_charge()
165 pids_cancel(p, num); in pids_try_charge()
/kernel/gcov/
Dfs.c370 int num; in add_links() local
373 for (num = 0; gcov_link[num].ext; num++) in add_links()
375 node->links = kcalloc(num, sizeof(struct dentry *), GFP_KERNEL); in add_links()
378 for (i = 0; i < num; i++) { in add_links()
617 int num = node->num_loaded; in add_info() local
624 loaded_info = kcalloc(num + 1, sizeof(struct gcov_info *), GFP_KERNEL); in add_info()
631 num * sizeof(struct gcov_info *)); in add_info()
632 loaded_info[num] = info; in add_info()
634 if (num == 0) { in add_info()
661 node->num_loaded = num + 1; in add_info()
Dgcc_4_7.c45 unsigned int num; member
210 sizeof(gcov_type) * ci_ptr->num); in gcov_info_reset()
251 for (val_idx = 0; val_idx < sci_ptr->num; val_idx++) in gcov_info_add()
311 cv_size = sizeof(gcov_type) * sci_ptr->num; in gcov_info_dup()
318 dci_ptr->num = sci_ptr->num; in gcov_info_dup()
471 pos += store_gcov_u32(buffer, pos, ci_ptr->num * 2); in convert_to_gcda()
473 for (cv_idx = 0; cv_idx < ci_ptr->num; cv_idx++) { in convert_to_gcda()
Dgcc_3_4.c54 unsigned int num; member
191 info->counts[i].num * sizeof(gcov_type)); in gcov_info_reset()
220 for (j = 0; j < dest->counts[i].num; j++) { in gcov_info_add()
279 size_t size = ctr->num * sizeof(gcov_type); in gcov_info_dup()
281 dup->counts[i].num = ctr->num; in gcov_info_dup()
/kernel/debug/kdb/
Dkdb_main.c93 #define for_each_kdbcmd(cmd, num) \ argument
94 for ((cmd) = kdb_base_commands, (num) = 0; \
95 num < kdb_max_commands; \
96 num++, num == KDB_BASE_CMD_MAX ? cmd = kdb_commands : cmd++)
1489 int num, int repeat, int phys) in kdb_md_line() argument
1505 for (i = 0; i < num && repeat--; i++) { in kdb_md_line()
1548 kdb_printf("%*s %s\n", (int)((num-i)*(2*bytesperword + 1)+1), in kdb_md_line()
1712 int n, z, num = (symbolic ? 1 : (16 / bytesperword)); in kdb_md() local
1724 n = min(num, repeat); in kdb_md()
1726 num, repeat, phys); in kdb_md()
[all …]
/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/locking/
Dlockdep_proc.c391 char num[15]; in seq_time() local
393 snprint_time(num, sizeof(num), time); in seq_time()
394 seq_printf(m, " %14s", num); in seq_time()
/kernel/debug/
Dgdbstub.c296 int num = 0; in kgdb_hex2long() local
311 num++; in kgdb_hex2long()
318 return num; in kgdb_hex2long()