Home
last modified time | relevance | path

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

123

/kernel/debug/kdb/
Dkdb_io.c41 int slen = strlen(buffer); in kgdb_transition_check()
213 int len = strlen(buffer); in kdb_read()
301 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read()
302 *(tmpbuffer+strlen(kdb_prompt_str) + in kdb_read()
316 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read()
317 *(tmpbuffer+strlen(kdb_prompt_str) + in kdb_read()
338 len = strlen(p_tmp); in kdb_read()
367 len_tmp = strlen(p_tmp); in kdb_read()
369 len_tmp = strlen(p_tmp); in kdb_read()
531 len1 = strlen(searched)-1; in kdb_search_string()
[all …]
Dkdb_main.c285 int matchlen = strlen(match); in kdbgetenv()
351 if (strlen(ep) == 0) in kdbgetulenv()
486 varlen = strlen(argv[1]); in kdb_set()
487 vallen = strlen(argv[2]); in kdb_set()
812 s->usage[strlen(s->usage)-1] = '\0'; in kdb_defcmd()
816 s->help[strlen(s->help)-1] = '\0'; in kdb_defcmd()
903 len = strlen(cp); in parse_grep()
925 len = strlen(cp); in parse_grep()
931 len = strlen(cp); in parse_grep()
1077 && (strlen(argv[0]) <= tp->cmd_minlen)) { in kdb_parse()
[all …]
Dkdb_support.c189 int prefix_len = strlen(prefix_name), prev_len = 0; in kallsyms_symbol_complete()
199 strlen(ks_namebuf)); in kallsyms_symbol_complete()
232 int prefix_len = strlen(prefix_name); in kallsyms_symbol_next()
309 int n = strlen(str)+1; in kdb_strdup()
/kernel/
Dcrash_core.c173 if (strncmp(cur, suffix, strlen(suffix))) { in parse_crashkernel_suffix()
177 cur += strlen(suffix); in parse_crashkernel_suffix()
199 end_p = p + strlen(p); in get_last_crashkernel()
206 q = end_p - strlen(suffix_tbl[i]); in get_last_crashkernel()
208 strlen(suffix_tbl[i]))) in get_last_crashkernel()
213 q = end_p - strlen(suffix); in get_last_crashkernel()
214 if (!strncmp(q, suffix, strlen(suffix))) in get_last_crashkernel()
246 ck_cmdline += strlen(name); in __parse_crashkernel()
300 note->n_namesz = strlen(name) + 1; in append_elf_note()
Dprofile.c64 if (!strncmp(str, sleepstr, strlen(sleepstr))) { in profile_setup()
68 if (str[strlen(sleepstr)] == ',') in profile_setup()
69 str += strlen(sleepstr) + 1; in profile_setup()
77 } else if (!strncmp(str, schedstr, strlen(schedstr))) { in profile_setup()
79 if (str[strlen(schedstr)] == ',') in profile_setup()
80 str += strlen(schedstr) + 1; in profile_setup()
85 } else if (!strncmp(str, kvmstr, strlen(kvmstr))) { in profile_setup()
87 if (str[strlen(kvmstr)] == ',') in profile_setup()
88 str += strlen(kvmstr) + 1; in profile_setup()
Dparams.c97 return parameqn(a, b, strlen(a)+1); in parameq()
247 if (strlen(val) > 1024) { in param_set_charp()
257 *(char **)kp->arg = kmalloc_parameter(strlen(val)+1); in param_set_charp()
495 if (strlen(val)+1 > kps->maxlen) { in param_set_copystring()
Dauditfilter.c617 size_t len = strlen(str); in audit_pack_string()
1272 plen = strlen(path); in parent_len()
1307 pathlen = strlen(path); in audit_compare_dname_path()
/kernel/debug/
Dgdbstub.c205 len = strlen(s); in gdbstub_msg_write()
770 kgdb_mem2hex(tmpstr, remcom_out_buffer, strlen(tmpstr)); in gdb_cmd_query()
776 int len = strlen(remcom_in_buffer + 6); in gdb_cmd_query()
963 ptr += strlen(strcpy(ptr, "thread:")); in gdb_serial_stub()
1102 gdbstub_use_prev_in_buf = strlen(remcom_in_buffer); in gdbstub_state()
/kernel/trace/
Dtrace_selftest.c204 len1 = strlen(func1_name); in trace_selftest_ops()
205 len2 = strlen(func2_name); in trace_selftest_ops()
352 ftrace_set_global_filter(func_name, strlen(func_name), 1); in trace_selftest_startup_dynamic_tracing()
476 len = strlen(func_name); in trace_selftest_function_recursion()
590 len = strlen(func_name); in trace_selftest_function_regs()
Dtrace_probe.c175 len += strlen(trace_probe_log.argv[i]) + 1; in __trace_probe_log_err()
194 len = strlen(trace_probe_log.argv[i]); in __trace_probe_log_err()
255 len = strlen(event); in traceprobe_parse_event_name()
342 size_t len = strlen(str); in __parse_imm_string()
456 trace_probe_log_err(offs + strlen(arg), in parse_probe_arg()
550 len = strlen(arg); in traceprobe_parse_probe_arg_body()
571 offset += t2 + strlen(t2) - arg; in traceprobe_parse_probe_arg_body()
614 len = strlen(parg->type->fmttype) + 6; in traceprobe_parse_probe_arg_body()
Dtrace_events_filter.c675 int len = strlen(*addr) + 1; /* including tailing '\0' */ in filter_pred_pchar()
789 int strlen = len - 1; in regex_match_end() local
791 if (strlen >= r->len && in regex_match_end()
792 memcmp(str + strlen - r->len, r->pattern, r->len) == 0) in regex_match_end()
870 r->len = strlen(search); in filter_build_regex()
946 len = strlen(filter->filter_string); in append_filter_err()
1201 if (strncmp(str + i, ops[op], strlen(ops[op])) == 0) in parse_pred()
1210 i += strlen(ops[op]); in parse_pred()
1961 re[i], strlen(re[i])); in __ftrace_function_set_filter()
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.c359 len = strlen(comm) + strlen(pid_str) + 1; in print_graph_proc()
575 len = strlen(usecs_str); in trace_print_graph_duration()
583 len += strlen(nsecs_str) + 1; in trace_print_graph_duration()
Dtrace_seq.c210 unsigned int len = strlen(str); in trace_seq_puts()
Dftrace.c3748 slen = strlen(str); in ftrace_match()
3864 func_g.len = strlen(func_g.search); in match_records()
3868 mod_g.type = filter_parse_regex(mod, strlen(mod), in match_records()
3870 mod_g.len = strlen(mod_g.search); in match_records()
4077 match_records(new_hash, func, strlen(func), mod); in process_mod_list()
4142 ret = match_records(hash, func, strlen(func), module); in ftrace_mod_callback()
4421 ret = ftrace_match_records(hash, glob, strlen(glob)); in register_ftrace_function_probe()
4521 if (!glob || !strlen(glob) || !strcmp(glob, "*")) in unregister_ftrace_function_probe_func()
4526 func_g.type = filter_parse_regex(glob, strlen(glob), in unregister_ftrace_function_probe_func()
4528 func_g.len = strlen(func_g.search); in unregister_ftrace_function_probe_func()
[all …]
Dtrace_printk.c74 fmt = kmalloc(strlen(*iter) + 1, GFP_KERNEL); in hold_module_trace_bprintk_format()
Dtrace_events.c811 if (!strlen(sub) || strcmp(sub, "*") == 0) in ftrace_set_clr_event()
813 if (!strlen(event) || strcmp(event, "*") == 0) in ftrace_set_clr_event()
1049 return simple_read_from_buffer(ubuf, cnt, ppos, buf, strlen(buf)); in event_enable_read()
2118 rlen = strlen(ptr + len); in eval_replace()
2131 int len = strlen(map->eval_string); in update_event_printk()
2770 if (!strlen(number)) in event_enable_func()
Dtrace_events_trigger.c673 if (!strlen(number)) in event_trigger_callback()
752 if (!strlen(s) || strcmp(s, "if") != 0) in set_trigger_filter()
1497 if (!strlen(number)) in event_enable_trigger_func()
/kernel/printk/
Dprintk_safe.c163 printk_safe_flush_line(newline, strlen(newline)); in printk_safe_flush_buffer()
211 printk_safe_flush_line(msg, strlen(msg)); in __printk_safe_flush()
/kernel/gcov/
Dfs.c335 if (strncmp(filename, objtree, strlen(objtree)) == 0) { in get_link_target()
336 rel = filename + strlen(objtree) + 1; in get_link_target()
434 node = kzalloc(sizeof(struct gcov_node) + strlen(name) + 1, GFP_KERNEL); in new_node()
/kernel/power/
Dmain.c159 if (label && len == strlen(label) && !strncmp(buf, label, len)) in decode_suspend_state()
244 if (*s && len == strlen(*s) && !strncmp(buf, *s, len)) { in pm_test_store()
594 if (label && len == strlen(label) && !strncmp(buf, label, len)) in decode_state()
Dwakelock.c260 len = strlen(buf); in pm_wake_unlock()
Dhibernate.c827 if (!strlen(resume_file)) { in software_resume()
1005 if (len == strlen(hibernation_modes[i]) in disk_store()
/kernel/cgroup/
Dcgroup-v1.c806 if (!pathbuf || !agentbuf || !strlen(agentbuf)) in cgroup1_release_agent()
890 if (strlen(root->release_agent_path)) in cgroup1_show_options()
897 if (strlen(root->name)) in cgroup1_show_options()
/kernel/livepatch/
Dcore.c692 if (strlen(func->old_name) >= KSYM_NAME_LEN) in klp_init_func()
773 if (klp_is_module(obj) && strlen(obj->name) >= MODULE_NAME_LEN) in klp_init_object()

123