Home
last modified time | relevance | path

Searched refs:strlen (Results 1 – 25 of 66) sorted by relevance

123

/kernel/debug/kdb/
Dkdb_io.c40 int slen = strlen(buffer); in kgdb_transition_check()
204 int len = strlen(buffer); in kdb_read()
290 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read()
291 *(tmpbuffer+strlen(kdb_prompt_str) + in kdb_read()
305 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read()
306 *(tmpbuffer+strlen(kdb_prompt_str) + in kdb_read()
327 len = strlen(p_tmp); in kdb_read()
356 len_tmp = strlen(p_tmp); in kdb_read()
358 len_tmp = strlen(p_tmp); in kdb_read()
520 len1 = strlen(searched)-1; in kdb_search_string()
[all …]
Dkdb_main.c252 int matchlen = strlen(match); in kdbgetenv()
318 if (strlen(ep) == 0) in kdbgetulenv()
360 varlen = strlen(var); in kdb_setenv()
361 vallen = strlen(val); in kdb_setenv()
803 mp->usage[strlen(mp->usage)-1] = '\0'; in kdb_defcmd()
807 mp->help[strlen(mp->help)-1] = '\0'; in kdb_defcmd()
899 len = strlen(cp); in parse_grep()
921 len = strlen(cp); in parse_grep()
927 len = strlen(cp); in parse_grep()
1070 if (tp->minlen && (strlen(argv[0]) <= tp->minlen) && in kdb_parse()
[all …]
Dkdb_support.c129 int prefix_len = strlen(prefix_name), prev_len = 0; in kallsyms_symbol_complete()
139 strlen(ks_namebuf)); in kallsyms_symbol_complete()
172 int prefix_len = strlen(prefix_name); in kallsyms_symbol_next()
249 int n = strlen(str)+1; in kdb_strdup()
/kernel/
Dcrash_core.c189 if (strncmp(cur, suffix, strlen(suffix))) { in parse_crashkernel_suffix()
193 cur += strlen(suffix); in parse_crashkernel_suffix()
215 end_p = p + strlen(p); in get_last_crashkernel()
222 q = end_p - strlen(suffix_tbl[i]); in get_last_crashkernel()
224 strlen(suffix_tbl[i]))) in get_last_crashkernel()
229 q = end_p - strlen(suffix); in get_last_crashkernel()
230 if (!strncmp(q, suffix, strlen(suffix))) in get_last_crashkernel()
258 ck_cmdline += strlen(name); in __parse_crashkernel()
322 note->n_namesz = strlen(name) + 1; in append_elf_note()
Dreboot.c1120 if (!strncmp(buf, REBOOT_COLD_STR, strlen(REBOOT_COLD_STR))) in mode_store()
1122 else if (!strncmp(buf, REBOOT_WARM_STR, strlen(REBOOT_WARM_STR))) in mode_store()
1124 else if (!strncmp(buf, REBOOT_HARD_STR, strlen(REBOOT_HARD_STR))) in mode_store()
1126 else if (!strncmp(buf, REBOOT_SOFT_STR, strlen(REBOOT_SOFT_STR))) in mode_store()
1128 else if (!strncmp(buf, REBOOT_GPIO_STR, strlen(REBOOT_GPIO_STR))) in mode_store()
1197 if (!strncmp(buf, BOOT_TRIPLE_STR, strlen(BOOT_TRIPLE_STR))) in type_store()
1199 else if (!strncmp(buf, BOOT_KBD_STR, strlen(BOOT_KBD_STR))) in type_store()
1201 else if (!strncmp(buf, BOOT_BIOS_STR, strlen(BOOT_BIOS_STR))) in type_store()
1203 else if (!strncmp(buf, BOOT_ACPI_STR, strlen(BOOT_ACPI_STR))) in type_store()
1205 else if (!strncmp(buf, BOOT_EFI_STR, strlen(BOOT_EFI_STR))) in type_store()
[all …]
Dprofile.c65 if (!strncmp(str, sleepstr, strlen(sleepstr))) { in profile_setup()
73 } else if (!strncmp(str, schedstr, strlen(schedstr))) { in profile_setup()
76 } else if (!strncmp(str, kvmstr, strlen(kvmstr))) { in profile_setup()
87 if (str[strlen(select)] == ',') in profile_setup()
88 str += strlen(select) + 1; in profile_setup()
Dparams.c97 return parameqn(a, b, strlen(a)+1); in parameq()
266 if (strlen(val) > 1024) { in param_set_charp()
276 *(char **)kp->arg = kmalloc_parameter(strlen(val)+1); in param_set_charp()
514 if (strlen(val)+1 > kps->maxlen) { in param_set_copystring()
/kernel/trace/rv/
Drv.c220 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff)+1); in monitor_enable_read_data()
327 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitor_desc_read_data()
538 len = strlen(ptr); in enabled_monitors_write()
603 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff) + 1); in monitoring_on_read_data()
699 if (strlen(monitor->name) >= MAX_RV_MONITOR_NAME_SIZE) { in rv_register_monitor()
Drv_reactors.c210 len = strlen(ptr); in monitor_reactors_write()
311 if (strlen(reactor->name) >= MAX_RV_REACTOR_NAME_SIZE) { in rv_register_reactor()
382 return simple_read_from_buffer(user_buf, count, ppos, buff, strlen(buff)+1); in reacting_on_read_data()
/kernel/trace/
Dtrace_selftest.c201 len1 = strlen(func1_name); in trace_selftest_ops()
202 len2 = strlen(func2_name); in trace_selftest_ops()
292 len1 = strlen(func1_name); in trace_selftest_ops()
383 ftrace_set_global_filter(func_name, strlen(func_name), 1); in trace_selftest_startup_dynamic_tracing()
507 len = strlen(func_name); in trace_selftest_function_recursion()
623 len = strlen(func_name); in trace_selftest_function_regs()
860 ftrace_set_global_filter(func_name, strlen(func_name), 1); in trace_selftest_startup_function_graph()
Dtrace_probe.c177 len += strlen(trace_probe_log.argv[i]) + 1; in __trace_probe_log_err()
196 len = strlen(trace_probe_log.argv[i]); in __trace_probe_log_err()
260 len = strlen(event); in traceprobe_parse_event_name()
358 size_t len = strlen(str); in __parse_imm_string()
479 trace_probe_log_err(offs + strlen(arg), in parse_probe_arg()
579 len = strlen(arg); in traceprobe_parse_probe_arg_body()
602 offset += t2 + strlen(t2) - arg; in traceprobe_parse_probe_arg_body()
647 len = strlen(parg->type->fmttype) + 6; in traceprobe_parse_probe_arg_body()
Dtrace_events_synth.c207 if (!end || end < start || type + strlen(type) > end + 1) in synth_field_string_size()
739 len = strlen(field_name); in parse_synth_field()
742 len -= strlen(array); in parse_synth_field()
754 len = strlen(field_type) + 1; in parse_synth_field()
757 len += strlen(array); in parse_synth_field()
760 len += strlen(prefix); in parse_synth_field()
790 len = sizeof("__data_loc ") + strlen(field->type) + 1; in parse_synth_field()
1591 name = kmemdup_nul(raw_command, p ? p - raw_command : strlen(raw_command), GFP_KERNEL); in create_or_delete_synth_event()
1753 data_size += strlen(str_val) + 1; in synth_event_trace()
1852 len = strlen(str_val) + 1; in synth_event_trace_array()
Dtrace_events_filter.c762 len = strlen(str) + 1; /* including tailing '\0' */ in filter_pchar()
918 int strlen = len - 1; in regex_match_end() local
920 if (strlen >= r->len && in regex_match_end()
921 memcmp(str + strlen - r->len, r->pattern, r->len) == 0) in regex_match_end()
999 r->len = strlen(search); in filter_build_regex()
1088 len = strlen(filter->filter_string); in append_filter_err()
1402 if (strncmp(str + i, ops[op], strlen(ops[op])) == 0) in parse_pred()
1411 i += strlen(ops[op]); in parse_pred()
2158 re[i], strlen(re[i])); in __ftrace_function_set_filter()
Dfprobe.c202 len = strlen(filter); in register_fprobe()
210 len = strlen(notfilter); in register_fprobe()
Dtrace_branch.c72 p = f->data.file + strlen(f->data.file); in probe_likely_condition()
265 f = p->file + strlen(p->file); in branch_stat_process_file()
Dtrace_functions_graph.c357 len = strlen(comm) + strlen(pid_str) + 1; in print_graph_proc()
573 len = strlen(usecs_str); in trace_print_graph_duration()
581 len += strlen(nsecs_str) + 1; in trace_print_graph_duration()
Dtrace_boot.c570 if (ftrace_set_filter(tr->ops, q, strlen(q), 0) < 0) in trace_boot_set_ftrace_filter()
580 if (ftrace_set_notrace(tr->ops, q, strlen(q), 0) < 0) in trace_boot_set_ftrace_filter()
Dtrace_seq.c207 unsigned int len = strlen(str); in trace_seq_puts()
/kernel/debug/
Dgdbstub.c202 len = strlen(s); in gdbstub_msg_write()
767 kgdb_mem2hex(tmpstr, remcom_out_buffer, strlen(tmpstr)); in gdb_cmd_query()
773 int len = strlen(remcom_in_buffer + 6); in gdb_cmd_query()
973 ptr += strlen(strcpy(ptr, "thread:")); in gdb_serial_stub()
1111 gdbstub_use_prev_in_buf = strlen(remcom_in_buffer); in gdbstub_state()
/kernel/gcov/
Dfs.c445 if (strncmp(filename, objtree, strlen(objtree)) == 0) { in get_link_target()
446 rel = filename + strlen(objtree) + 1; in get_link_target()
544 node = kzalloc(sizeof(struct gcov_node) + strlen(name) + 1, GFP_KERNEL); in new_node()
/kernel/power/
Dmain.c165 if (label && len == strlen(label) && !strncmp(buf, label, len)) in decode_suspend_state()
283 if (*s && len == strlen(*s) && !strncmp(buf, *s, len)) { in pm_test_store()
611 if (label && len == strlen(label) && !strncmp(buf, label, len)) in decode_state()
Dwakelock.c260 len = strlen(buf); in pm_wake_unlock()
/kernel/module/
Dmain.c356 if (strlen(mod->name) == len && !memcmp(mod->name, name, len)) in find_module_all()
364 return find_module_all(name, strlen(name), false); in find_module()
1592 unsigned int taglen = strlen(tag); in get_next_modinfo()
2314 if (strlen(module_name) == len && !memcmp(module_name, p, len)) in blacklisted()
2434 mod = find_module_all(name, strlen(name), true); in finished_loading()
2615 old = find_module_all(mod->name, strlen(mod->name), true); in add_unformed_module()
2628 old = find_module_all(mod->name, strlen(mod->name), in add_unformed_module()
/kernel/kcsan/
Ddebugfs.c242 if (kstrtoul(&arg[strlen("microbench=")], 0, &iters)) in debugfs_write()
/kernel/rcu/
Drefscale.c642 if (strlen(buf) >= 800) { in process_durations()
730 if (strlen(buf) >= 800) { in main_func()

123