Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 47) sorted by relevance

12

/kernel/power/
Dwakelock.c38 char *str = buf; in pm_show_wakelocks() local
46 str += scnprintf(str, end - str, "%s ", wl->name); in pm_show_wakelocks()
48 if (str > buf) in pm_show_wakelocks()
49 str--; in pm_show_wakelocks()
51 str += scnprintf(str, end - str, "\n"); in pm_show_wakelocks()
54 return (str - buf); in pm_show_wakelocks()
186 const char *str = buf; in pm_wake_lock() local
195 while (*str && !isspace(*str)) in pm_wake_lock()
196 str++; in pm_wake_lock()
198 len = str - buf; in pm_wake_lock()
[all …]
Dhibernate.c1063 static int __init resume_setup(char *str) in resume_setup() argument
1068 strncpy( resume_file, str, 255 ); in resume_setup()
1072 static int __init resume_offset_setup(char *str) in resume_offset_setup() argument
1079 if (sscanf(str, "%llu", &offset) == 1) in resume_offset_setup()
1085 static int __init hibernate_setup(char *str) in hibernate_setup() argument
1087 if (!strncmp(str, "noresume", 8)) in hibernate_setup()
1089 else if (!strncmp(str, "nocompress", 10)) in hibernate_setup()
1094 static int __init noresume_setup(char *str) in noresume_setup() argument
1100 static int __init resumewait_setup(char *str) in resumewait_setup() argument
1106 static int __init resumedelay_setup(char *str) in resumedelay_setup() argument
[all …]
/kernel/
Dsysctl_binary.c986 char *str, *end; in bin_intvec() local
993 str = buffer; in bin_intvec()
994 end = str + result; in bin_intvec()
999 value = simple_strtoul(str, &str, 10); in bin_intvec()
1000 while (isspace(*str)) in bin_intvec()
1001 str++; in bin_intvec()
1008 if (!isdigit(*str)) in bin_intvec()
1016 char *str, *end; in bin_intvec() local
1019 str = buffer; in bin_intvec()
1020 end = str + BUFSZ; in bin_intvec()
[all …]
Dprofile.c53 int profile_setup(char *str) in profile_setup() argument
60 if (!strncmp(str, sleepstr, strlen(sleepstr))) { in profile_setup()
63 if (str[strlen(sleepstr)] == ',') in profile_setup()
64 str += strlen(sleepstr) + 1; in profile_setup()
65 if (get_option(&str, &par)) in profile_setup()
74 } else if (!strncmp(str, schedstr, strlen(schedstr))) { in profile_setup()
76 if (str[strlen(schedstr)] == ',') in profile_setup()
77 str += strlen(schedstr) + 1; in profile_setup()
78 if (get_option(&str, &par)) in profile_setup()
83 } else if (!strncmp(str, kvmstr, strlen(kvmstr))) { in profile_setup()
[all …]
Dauditfilter.c119 char *str; in audit_unpack_string() local
130 str = kmalloc(len + 1, GFP_KERNEL); in audit_unpack_string()
131 if (unlikely(!str)) in audit_unpack_string()
134 memcpy(str, *bufp, len); in audit_unpack_string()
135 str[len] = 0; in audit_unpack_string()
139 return str; in audit_unpack_string()
401 char *str; in audit_data_to_entry() local
469 str = audit_unpack_string(&bufp, &remain, f->val); in audit_data_to_entry()
470 if (IS_ERR(str)) in audit_data_to_entry()
474 err = security_audit_rule_init(f->type, f->op, str, in audit_data_to_entry()
[all …]
Dwatchdog.c64 static int __init hardlockup_panic_setup(char *str) in hardlockup_panic_setup() argument
66 if (!strncmp(str, "panic", 5)) in hardlockup_panic_setup()
68 else if (!strncmp(str, "nopanic", 7)) in hardlockup_panic_setup()
70 else if (!strncmp(str, "0", 1)) in hardlockup_panic_setup()
80 static int __init softlockup_panic_setup(char *str) in softlockup_panic_setup() argument
82 softlockup_panic = simple_strtoul(str, NULL, 0); in softlockup_panic_setup()
88 static int __init nowatchdog_setup(char *str) in nowatchdog_setup() argument
96 static int __init nosoftlockup_setup(char *str) in nosoftlockup_setup() argument
Dprintk.c746 static int __init log_buf_len_setup(char *str) in log_buf_len_setup() argument
748 unsigned size = memparse(str, &str); in log_buf_len_setup()
800 static int __init ignore_loglevel_setup(char *str) in ignore_loglevel_setup() argument
818 static int __init boot_delay_setup(char *str) in boot_delay_setup() argument
825 get_option(&str, &boot_delay); in boot_delay_setup()
1795 static int __init console_setup(char *str) in console_setup() argument
1802 if (!memcmp(str, "brl,", 4)) { in console_setup()
1804 str += 4; in console_setup()
1805 } else if (!memcmp(str, "brl=", 4)) { in console_setup()
1806 brl_options = str + 4; in console_setup()
[all …]
Dsmp.c493 static int __init nosmp(char *str) in nosmp() argument
504 static int __init nrcpus(char *str) in nrcpus() argument
508 get_option(&str, &nr_cpus); in nrcpus()
517 static int __init maxcpus(char *str) in maxcpus() argument
519 get_option(&str, &setup_max_cpus); in maxcpus()
Dhung_task.c51 static int __init hung_task_panic_setup(char *str) in hung_task_panic_setup() argument
53 sysctl_hung_task_panic = simple_strtoul(str, NULL, 0); in hung_task_panic_setup()
Dnotifier.c530 int notrace __kprobes notify_die(enum die_val val, const char *str, in notify_die() argument
535 .str = str, in notify_die()
Dlockdep_proc.c42 char str[KSYM_NAME_LEN]; in print_name() local
46 name = __get_key_name(class->key, str); in print_name()
443 char str[KSYM_NAME_LEN]; in seq_stats() local
446 key_name = __get_key_name(class->key, str); in seq_stats()
Dresource.c1234 static int __init reserve_setup(char *str) in reserve_setup() argument
1243 if (get_option (&str, &io_start) != 2) in reserve_setup()
1245 if (get_option (&str, &io_num) == 0) in reserve_setup()
1353 static int __init strict_iomem(char *str) in strict_iomem() argument
1355 if (strstr(str, "relaxed")) in strict_iomem()
1357 if (strstr(str, "strict")) in strict_iomem()
/kernel/trace/
Dtrace_printk.c272 const char *str = *fmt; in t_show() local
280 for (i = 0; str[i]; i++) { in t_show()
281 switch (str[i]) { in t_show()
295 seq_putc(m, str[i]); in t_show()
Dtrace_output.c49 ret = trace_seq_puts(s, field->str); in trace_print_bputs_msg_only()
193 int trace_seq_puts(struct trace_seq *s, const char *str) in trace_seq_puts() argument
195 int len = strlen(str); in trace_seq_puts()
205 memcpy(s->buffer + s->len, str, len); in trace_seq_puts()
317 const char *str; local
327 str = flag_array[i].name;
333 trace_seq_puts(p, str);
463 char str[KSYM_SYMBOL_LEN]; local
466 kallsyms_lookup(address, NULL, NULL, NULL, str);
468 name = kretprobed(str);
[all …]
Dtrace_events_filter.c261 static int regex_match_full(char *str, struct regex *r, int len) in regex_match_full() argument
263 if (strncmp(str, r->pattern, len) == 0) in regex_match_full()
268 static int regex_match_front(char *str, struct regex *r, int len) in regex_match_front() argument
270 if (strncmp(str, r->pattern, r->len) == 0) in regex_match_front()
275 static int regex_match_middle(char *str, struct regex *r, int len) in regex_match_middle() argument
277 if (strnstr(str, r->pattern, len)) in regex_match_middle()
282 static int regex_match_end(char *str, struct regex *r, int len) in regex_match_end() argument
287 memcmp(str + strlen - r->len, r->pattern, r->len) == 0) in regex_match_end()
1949 char *str, *sep, **re; in ftrace_function_filter_re() local
1951 str = kstrndup(buf, len, GFP_KERNEL); in ftrace_function_filter_re()
[all …]
Dtrace_stack.c418 static __init int enable_stacktrace(char *str) in enable_stacktrace() argument
420 if (strncmp(str, "_filter=", 8) == 0) in enable_stacktrace()
421 strncpy(stack_trace_filter_buf, str+8, COMMAND_LINE_SIZE); in enable_stacktrace()
Dftrace.c598 char str[KSYM_SYMBOL_LEN]; in function_stat_show() local
613 kallsyms_lookup(rec->ip, NULL, NULL, NULL, str); in function_stat_show()
614 seq_printf(m, " %-30.30s %10lu", str, rec->counter); in function_stat_show()
2720 static int ftrace_match(char *str, char *regex, int len, int type) in ftrace_match() argument
2727 if (strcmp(str, regex) == 0) in ftrace_match()
2731 if (strncmp(str, regex, len) == 0) in ftrace_match()
2735 if (strstr(str, regex)) in ftrace_match()
2739 slen = strlen(str); in ftrace_match()
2740 if (slen >= len && memcmp(str + slen - len, regex, len) == 0) in ftrace_match()
2775 char str[KSYM_SYMBOL_LEN]; in ftrace_match_record() local
[all …]
Dtrace_entries.h253 __field( const char *, str )
257 (void *)__entry->ip, __entry->str),
Dtrace_syscalls.c84 char str[KSYM_SYMBOL_LEN]; in find_syscall_meta() local
89 kallsyms_lookup(syscall, NULL, NULL, NULL, str); in find_syscall_meta()
91 if (arch_syscall_match_sym_name(str, "sys_ni_syscall")) in find_syscall_meta()
95 if ((*start)->name && arch_syscall_match_sym_name(str, (*start)->name)) in find_syscall_meta()
Dtrace.h962 typedef int (*regex_match_func)(char *str, struct regex *r, int len);
1046 #define internal_trace_puts(str) __trace_puts(_THIS_IP_, str, strlen(str)) argument
Dtrace.c126 static int __init set_cmdline_ftrace(char *str) in set_cmdline_ftrace() argument
128 strlcpy(bootup_tracer_buf, str, MAX_TRACER_SIZE); in set_cmdline_ftrace()
136 static int __init set_ftrace_dump_on_oops(char *str) in set_ftrace_dump_on_oops() argument
138 if (*str++ != '=' || !*str) { in set_ftrace_dump_on_oops()
143 if (!strcmp("orig_cpu", str)) { in set_ftrace_dump_on_oops()
152 static int __init boot_alloc_snapshot(char *str) in boot_alloc_snapshot() argument
165 static int __init set_trace_boot_options(char *str) in set_trace_boot_options() argument
167 strlcpy(trace_boot_options_buf, str, MAX_TRACER_SIZE); in set_trace_boot_options()
359 int __trace_puts(unsigned long ip, const char *str, int size) in __trace_puts() argument
379 memcpy(&entry->buf, str, size); in __trace_puts()
[all …]
/kernel/time/
Dtick-sched.c275 static int __init tick_nohz_full_setup(char *str) in tick_nohz_full_setup() argument
280 if (cpulist_parse(str, nohz_full_mask) < 0) { in tick_nohz_full_setup()
378 static int __init setup_tick_nohz(char *str) in setup_tick_nohz() argument
380 if (!strcmp(str, "off")) in setup_tick_nohz()
382 else if (!strcmp(str, "on")) in setup_tick_nohz()
1112 static int __init skew_tick(char *str) in skew_tick() argument
1114 get_option(&str, &sched_skew_tick); in skew_tick()
Dclocksource.c929 static int __init boot_override_clocksource(char* str) in boot_override_clocksource() argument
932 if (str) in boot_override_clocksource()
933 strlcpy(override_name, str, sizeof(override_name)); in boot_override_clocksource()
947 static int __init boot_override_clock(char* str) in boot_override_clock() argument
949 if (!strcmp(str, "pmtmr")) { in boot_override_clock()
956 return boot_override_clocksource(str); in boot_override_clock()
/kernel/irq/
Dspurious.c329 int noirqdebug_setup(char *str) in noirqdebug_setup() argument
341 static int __init irqfixup_setup(char *str) in irqfixup_setup() argument
353 static int __init irqpoll_setup(char *str) in irqpoll_setup() argument
/kernel/gcov/
Dfs.c73 static int __init gcov_persist_setup(char *str) in gcov_persist_setup() argument
77 if (strict_strtoul(str, 0, &val)) { in gcov_persist_setup()
78 pr_warning("invalid gcov_persist parameter '%s'\n", str); in gcov_persist_setup()

12