/kernel/power/ |
D | wakelock.c | 42 char *str = buf; in pm_show_wakelocks() local 50 str += scnprintf(str, end - str, "%s ", wl->name); in pm_show_wakelocks() 52 if (str > buf) in pm_show_wakelocks() 53 str--; in pm_show_wakelocks() 55 str += scnprintf(str, end - str, "\n"); in pm_show_wakelocks() 58 return (str - buf); in pm_show_wakelocks() 208 const char *str = buf; in pm_wake_lock() local 217 while (*str && !isspace(*str)) in pm_wake_lock() 218 str++; in pm_wake_lock() 220 len = str - buf; in pm_wake_lock() [all …]
|
D | hibernate.c | 1168 static int __init resume_setup(char *str) in resume_setup() argument 1173 strncpy( resume_file, str, 255 ); in resume_setup() 1177 static int __init resume_offset_setup(char *str) in resume_offset_setup() argument 1184 if (sscanf(str, "%llu", &offset) == 1) in resume_offset_setup() 1190 static int __init hibernate_setup(char *str) in hibernate_setup() argument 1192 if (!strncmp(str, "noresume", 8)) { in hibernate_setup() 1194 } else if (!strncmp(str, "nocompress", 10)) { in hibernate_setup() 1196 } else if (!strncmp(str, "no", 2)) { in hibernate_setup() 1200 && !strncmp(str, "protect_image", 13)) { in hibernate_setup() 1206 static int __init noresume_setup(char *str) in noresume_setup() argument [all …]
|
/kernel/trace/ |
D | trace_events_filter.c | 83 static bool is_not(const char *str) in is_not() argument 85 switch (str[1]) { in is_not() 139 typedef int (*parse_pred_fn)(const char *str, void *data, int pos, 410 predicate_parse(const char *str, int nr_parens, int nr_preds, in predicate_parse() argument 416 const char *ptr = str; in predicate_parse() 469 parse_error(pe, FILT_ERR_TOO_MANY_PREDS, next - str); in predicate_parse() 476 len = parse_pred(next, data, ptr - str, pe, &prog[N].pred); in predicate_parse() 505 next - str); in predicate_parse() 533 parse_error(pe, FILT_ERR_TOO_MANY_CLOSE, ptr - str); in predicate_parse() 542 parse_error(pe, FILT_ERR_TOO_MANY_OPEN, ptr - str); in predicate_parse() [all …]
|
D | trace_benchmark.h | 17 TP_PROTO(const char *str), 19 TP_ARGS(str), 22 __array( char, str, BENCHMARK_EVENT_STRLEN ) 26 memcpy(__entry->str, str, BENCHMARK_EVENT_STRLEN); 29 TP_printk("%s", __entry->str),
|
D | trace_events_hist.c | 598 static int errpos(char *str) in errpos() argument 600 return err_pos(last_cmd, str); in errpos() 603 static void last_cmd_set(struct trace_event_file *file, char *str) in last_cmd_set() argument 608 if (!str) in last_cmd_set() 611 strncpy(last_cmd, str, MAX_FILTER_STR_VAL - 1); in last_cmd_set() 2033 static int parse_map_size(char *str) in parse_map_size() argument 2038 strsep(&str, "="); in parse_map_size() 2039 if (!str) { in parse_map_size() 2044 ret = kstrtoul(str, 0, &size); in parse_map_size() 2079 static int parse_action(char *str, struct hist_trigger_attrs *attrs) in parse_action() argument [all …]
|
D | trace_output.c | 33 trace_seq_puts(s, field->str); in trace_print_bputs_msg_only() 70 const char *str; in trace_print_flags_seq() local 80 str = flag_array[i].name; in trace_print_flags_seq() 86 trace_seq_puts(p, str); in trace_print_flags_seq() 134 const char *str; in trace_print_flags_seq_u64() local 144 str = flag_array[i].name; in trace_print_flags_seq_u64() 150 trace_seq_puts(p, str); in trace_print_flags_seq_u64() 345 char str[KSYM_SYMBOL_LEN]; in seq_print_sym() local 349 sprint_symbol(str, address); in seq_print_sym() 351 kallsyms_lookup(address, NULL, NULL, NULL, str); in seq_print_sym() [all …]
|
D | trace_printk.c | 303 const char *str = *fmt; in t_show() local 314 for (i = 0; str[i]; i++) { in t_show() 315 switch (str[i]) { in t_show() 329 seq_putc(m, str[i]); in t_show()
|
D | trace_probe.c | 329 static int str_to_immediate(char *str, unsigned long *imm) in str_to_immediate() argument 331 if (isdigit(str[0])) in str_to_immediate() 332 return kstrtoul(str, 0, imm); in str_to_immediate() 333 else if (str[0] == '-') in str_to_immediate() 334 return kstrtol(str, 0, (long *)imm); in str_to_immediate() 335 else if (str[0] == '+') in str_to_immediate() 336 return kstrtol(str + 1, 0, (long *)imm); in str_to_immediate() 340 static int __parse_imm_string(char *str, char **pbuf, int offs) in __parse_imm_string() argument 342 size_t len = strlen(str); in __parse_imm_string() 344 if (str[len - 1] != '"') { in __parse_imm_string() [all …]
|
D | trace_seq.c | 208 void trace_seq_puts(struct trace_seq *s, const char *str) in trace_seq_puts() argument 210 unsigned int len = strlen(str); in trace_seq_puts() 222 seq_buf_putmem(&s->seq, str, len); in trace_seq_puts()
|
D | ftrace.c | 511 char str[KSYM_SYMBOL_LEN]; in function_stat_show() local 532 kallsyms_lookup(rec->ip, NULL, NULL, NULL, str); in function_stat_show() 533 seq_printf(m, " %-30.30s %10lu", str, rec->counter); in function_stat_show() 3671 char * __weak arch_ftrace_match_adjust(char *str, const char *search) in arch_ftrace_match_adjust() argument 3673 return str; in arch_ftrace_match_adjust() 3676 static int ftrace_match(char *str, struct ftrace_glob *g) in ftrace_match() argument 3681 str = arch_ftrace_match_adjust(str, g->search); in ftrace_match() 3685 if (strcmp(str, g->search) == 0) in ftrace_match() 3689 if (strncmp(str, g->search, g->len) == 0) in ftrace_match() 3693 if (strstr(str, g->search)) in ftrace_match() [all …]
|
/kernel/sched/ |
D | isolation.c | 80 static int __init housekeeping_setup(char *str, enum hk_flags flags) in housekeeping_setup() argument 87 err = cpulist_parse(str, non_housekeeping_mask); in housekeeping_setup() 139 static int __init housekeeping_nohz_full_setup(char *str) in housekeeping_nohz_full_setup() argument 145 return housekeeping_setup(str, flags); in housekeeping_nohz_full_setup() 149 static int __init housekeeping_isolcpus_setup(char *str) in housekeeping_isolcpus_setup() argument 153 while (isalpha(*str)) { in housekeeping_isolcpus_setup() 154 if (!strncmp(str, "nohz,", 5)) { in housekeeping_isolcpus_setup() 155 str += 5; in housekeeping_isolcpus_setup() 160 if (!strncmp(str, "domain,", 7)) { in housekeeping_isolcpus_setup() 161 str += 7; in housekeeping_isolcpus_setup() [all …]
|
/kernel/printk/ |
D | braille.c | 12 int _braille_console_setup(char **str, char **brl_options) in _braille_console_setup() argument 16 len = str_has_prefix(*str, "brl,"); in _braille_console_setup() 19 *str += len; in _braille_console_setup() 23 len = str_has_prefix(*str, "brl="); in _braille_console_setup() 25 *brl_options = *str + len; in _braille_console_setup() 26 *str = strchr(*brl_options, ','); in _braille_console_setup() 27 if (!*str) { in _braille_console_setup() 31 *((*str)++) = 0; in _braille_console_setup()
|
D | printk.c | 119 static int __control_devkmsg(char *str) in __control_devkmsg() argument 123 if (!str) in __control_devkmsg() 126 len = str_has_prefix(str, "on"); in __control_devkmsg() 132 len = str_has_prefix(str, "off"); in __control_devkmsg() 138 len = str_has_prefix(str, "ratelimit"); in __control_devkmsg() 147 static int __init control_devkmsg(char *str) in control_devkmsg() argument 149 if (__control_devkmsg(str) < 0) in control_devkmsg() 1101 static int __init log_buf_len_setup(char *str) in log_buf_len_setup() argument 1105 if (!str) in log_buf_len_setup() 1108 size = memparse(str, &str); in log_buf_len_setup() [all …]
|
D | braille.h | 21 _braille_console_setup(char **str, char **brl_options); 37 _braille_console_setup(char **str, char **brl_options) in _braille_console_setup() argument
|
/kernel/ |
D | reboot.c | 523 static int __init reboot_setup(char *str) in reboot_setup() argument 535 if (!strncmp(str, "panic_", 6)) { in reboot_setup() 537 str += 6; in reboot_setup() 542 switch (*str) { in reboot_setup() 559 if (isdigit(*(str+1))) { in reboot_setup() 560 rc = kstrtoint(str+1, 0, &reboot_cpu); in reboot_setup() 563 } else if (str[1] == 'm' && str[2] == 'p' && in reboot_setup() 564 isdigit(*(str+3))) { in reboot_setup() 565 rc = kstrtoint(str+3, 0, &reboot_cpu); in reboot_setup() 582 reboot_type = *str; in reboot_setup() [all …]
|
D | watchdog.c | 71 static int __init hardlockup_panic_setup(char *str) in hardlockup_panic_setup() argument 73 if (!strncmp(str, "panic", 5)) in hardlockup_panic_setup() 75 else if (!strncmp(str, "nopanic", 7)) in hardlockup_panic_setup() 77 else if (!strncmp(str, "0", 1)) in hardlockup_panic_setup() 79 else if (!strncmp(str, "1", 1)) in hardlockup_panic_setup() 88 static int __init hardlockup_all_cpu_backtrace_setup(char *str) in hardlockup_all_cpu_backtrace_setup() argument 90 sysctl_hardlockup_all_cpu_backtrace = !!simple_strtol(str, NULL, 0); in hardlockup_all_cpu_backtrace_setup() 181 static int __init softlockup_panic_setup(char *str) in softlockup_panic_setup() argument 183 softlockup_panic = simple_strtoul(str, NULL, 0); in softlockup_panic_setup() 188 static int __init nowatchdog_setup(char *str) in nowatchdog_setup() argument [all …]
|
D | auditfilter.c | 127 char *str; in audit_unpack_string() local 138 str = kmalloc(len + 1, GFP_KERNEL); in audit_unpack_string() 139 if (unlikely(!str)) in audit_unpack_string() 142 memcpy(str, *bufp, len); in audit_unpack_string() 143 str[len] = 0; in audit_unpack_string() 147 return str; in audit_unpack_string() 449 char *str; in audit_data_to_entry() local 514 str = audit_unpack_string(&bufp, &remain, f->val); in audit_data_to_entry() 515 if (IS_ERR(str)) in audit_data_to_entry() 519 err = security_audit_rule_init(f->type, f->op, str, in audit_data_to_entry() [all …]
|
D | profile.c | 56 int profile_setup(char *str) in profile_setup() argument 63 if (!strncmp(str, sleepstr, strlen(sleepstr))) { in profile_setup() 67 if (str[strlen(sleepstr)] == ',') in profile_setup() 68 str += strlen(sleepstr) + 1; in profile_setup() 69 if (get_option(&str, &par)) in profile_setup() 76 } else if (!strncmp(str, schedstr, strlen(schedstr))) { in profile_setup() 78 if (str[strlen(schedstr)] == ',') in profile_setup() 79 str += strlen(schedstr) + 1; in profile_setup() 80 if (get_option(&str, &par)) in profile_setup() 84 } else if (!strncmp(str, kvmstr, strlen(kvmstr))) { in profile_setup() [all …]
|
D | sysctl_binary.c | 971 char *str, *end; in bin_intvec() local 979 str = buffer; in bin_intvec() 980 end = str + result; in bin_intvec() 985 value = simple_strtoul(str, &str, 10); in bin_intvec() 986 while (isspace(*str)) in bin_intvec() 987 str++; in bin_intvec() 994 if (!isdigit(*str)) in bin_intvec() 1002 char *str, *end; in bin_intvec() local 1006 str = buffer; in bin_intvec() 1007 end = str + BUFSZ; in bin_intvec() [all …]
|
D | smp.c | 532 static int __init nosmp(char *str) in nosmp() argument 543 static int __init nrcpus(char *str) in nrcpus() argument 547 get_option(&str, &nr_cpus); in nrcpus() 556 static int __init maxcpus(char *str) in maxcpus() argument 558 get_option(&str, &setup_max_cpus); in maxcpus()
|
/kernel/bpf/ |
D | tnum.c | 172 int tnum_strn(char *str, size_t size, struct tnum a) in tnum_strn() argument 174 return snprintf(str, size, "(%#llx; %#llx)", a.value, a.mask); in tnum_strn() 178 int tnum_sbin(char *str, size_t size, struct tnum a) in tnum_sbin() argument 185 str[n - 1] = 'x'; in tnum_sbin() 187 str[n - 1] = '1'; in tnum_sbin() 189 str[n - 1] = '0'; in tnum_sbin() 194 str[min(size - 1, (size_t)64)] = 0; in tnum_sbin()
|
D | helpers.c | 372 char str[64]; in __bpf_strtoull() local 395 cur_len = min(cur_len, sizeof(str) - 1); in __bpf_strtoull() 396 memcpy(str, cur_buf, cur_len); in __bpf_strtoull() 397 str[cur_len] = '\0'; in __bpf_strtoull() 398 cur_buf = str; in __bpf_strtoull() 410 consumed += cur_buf - str; in __bpf_strtoull()
|
/kernel/dma/ |
D | swiotlb.c | 112 setup_io_tlb_npages(char *str) in setup_io_tlb_npages() argument 114 if (isdigit(*str)) { in setup_io_tlb_npages() 115 io_tlb_nslabs = simple_strtoul(str, &str, 0); in setup_io_tlb_npages() 119 if (*str == ',') in setup_io_tlb_npages() 120 ++str; in setup_io_tlb_npages() 121 if (!strcmp(str, "force")) { in setup_io_tlb_npages() 123 } else if (!strcmp(str, "noforce")) { in setup_io_tlb_npages()
|
D | debug.c | 969 static __init int dma_debug_cmdline(char *str) in dma_debug_cmdline() argument 971 if (!str) in dma_debug_cmdline() 974 if (strncmp(str, "off", 3) == 0) { in dma_debug_cmdline() 982 static __init int dma_debug_entries_cmdline(char *str) in dma_debug_entries_cmdline() argument 984 if (!str) in dma_debug_entries_cmdline() 986 if (!get_option(&str, &nr_prealloc_entries)) in dma_debug_entries_cmdline() 1641 static int __init dma_debug_driver_setup(char *str) in dma_debug_driver_setup() argument 1645 for (i = 0; i < NAME_MAX_LEN - 1; ++i, ++str) { in dma_debug_driver_setup() 1646 current_driver_name[i] = *str; in dma_debug_driver_setup() 1647 if (*str == 0) in dma_debug_driver_setup()
|
/kernel/irq/ |
D | spurious.c | 431 int noirqdebug_setup(char *str) in noirqdebug_setup() argument 443 static int __init irqfixup_setup(char *str) in irqfixup_setup() argument 455 static int __init irqpoll_setup(char *str) in irqpoll_setup() argument
|