/kernel/trace/ |
D | trace_events_inject.c | 36 parse_field(char *str, struct trace_event_call *call, in parse_field() argument 45 if (!str[i]) in parse_field() 48 while (isspace(str[i])) in parse_field() 51 while (isalnum(str[i]) || str[i] == '_') in parse_field() 57 field_name = kmemdup_nul(str + s, len, GFP_KERNEL); in parse_field() 66 while (isspace(str[i])) in parse_field() 68 if (str[i] != '=') in parse_field() 71 while (isspace(str[i])) in parse_field() 74 if (isdigit(str[i]) || str[i] == '-') { in parse_field() 82 if (str[i] == '-') in parse_field() [all …]
|
D | trace_events_filter.c | 84 static bool is_not(const char *str) in is_not() argument 86 switch (str[1]) { in is_not() 140 typedef int (*parse_pred_fn)(const char *str, void *data, int pos, 411 predicate_parse(const char *str, int nr_parens, int nr_preds, in predicate_parse() argument 417 const char *ptr = str; in predicate_parse() 470 parse_error(pe, FILT_ERR_TOO_MANY_PREDS, next - str); in predicate_parse() 477 len = parse_pred(next, data, ptr - str, pe, &prog[N].pred); in predicate_parse() 506 next - str); in predicate_parse() 534 parse_error(pe, FILT_ERR_TOO_MANY_CLOSE, ptr - str); in predicate_parse() 543 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 | 715 static int errpos(char *str) in errpos() argument 717 return err_pos(last_cmd, str); in errpos() 720 static void last_cmd_set(struct trace_event_file *file, char *str) in last_cmd_set() argument 725 if (!str) in last_cmd_set() 729 strncat(last_cmd, str, MAX_FILTER_STR_VAL - 1 - sizeof("hist:")); in last_cmd_set() 1337 static int parse_map_size(char *str) in parse_map_size() argument 1342 ret = kstrtoul(str, 0, &size); in parse_map_size() 1377 static int parse_action(char *str, struct hist_trigger_attrs *attrs) in parse_action() argument 1384 if ((str_has_prefix(str, "onmatch(")) || in parse_action() 1385 (str_has_prefix(str, "onmax(")) || in parse_action() [all …]
|
D | trace_printk.c | 254 bool trace_is_tracepoint_string(const char *str) in trace_is_tracepoint_string() argument 259 if (str == *ptr) in trace_is_tracepoint_string() 314 const char *str = *fmt; in t_show() local 325 for (i = 0; str[i]; i++) { in t_show() 326 switch (str[i]) { in t_show() 340 seq_putc(m, str[i]); in t_show()
|
D | trace_dynevent.c | 308 ret = seq_buf_printf(&cmd->seq, " %s%c", arg->str, arg->separator); in dynevent_arg_add() 310 pr_err("String is too long: %s%c\n", arg->str, arg->separator); in dynevent_arg_add() 376 int dynevent_str_add(struct dynevent_cmd *cmd, const char *str) in dynevent_str_add() argument 380 ret = seq_buf_puts(&cmd->seq, str); in dynevent_str_add() 382 pr_err("String is too long: %s\n", str); in dynevent_str_add()
|
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() 370 char str[KSYM_SYMBOL_LEN]; in trace_seq_print_sym() local 374 sprint_symbol(str, address); in trace_seq_print_sym() 376 kallsyms_lookup(address, NULL, NULL, NULL, str); in trace_seq_print_sym() [all …]
|
D | trace_probe.c | 341 static int str_to_immediate(char *str, unsigned long *imm) in str_to_immediate() argument 343 if (isdigit(str[0])) in str_to_immediate() 344 return kstrtoul(str, 0, imm); in str_to_immediate() 345 else if (str[0] == '-') in str_to_immediate() 346 return kstrtol(str, 0, (long *)imm); in str_to_immediate() 347 else if (str[0] == '+') in str_to_immediate() 348 return kstrtol(str + 1, 0, (long *)imm); in str_to_immediate() 352 static int __parse_imm_string(char *str, char **pbuf, int offs) in __parse_imm_string() argument 354 size_t len = strlen(str); in __parse_imm_string() 356 if (str[len - 1] != '"') { in __parse_imm_string() [all …]
|
D | trace_seq.c | 205 void trace_seq_puts(struct trace_seq *s, const char *str) in trace_seq_puts() argument 207 unsigned int len = strlen(str); in trace_seq_puts() 219 seq_buf_putmem(&s->seq, str, len); in trace_seq_puts()
|
/kernel/sched/ |
D | isolation.c | 80 static int __init housekeeping_setup(char *str, enum hk_flags flags) in housekeeping_setup() argument 86 if (cpulist_parse(str, non_housekeeping_mask) < 0) { in housekeeping_setup() 137 static int __init housekeeping_nohz_full_setup(char *str) in housekeeping_nohz_full_setup() argument 144 return housekeeping_setup(str, flags); in housekeeping_nohz_full_setup() 148 static int __init housekeeping_isolcpus_setup(char *str) in housekeeping_isolcpus_setup() argument 155 while (isalpha(*str)) { in housekeeping_isolcpus_setup() 156 if (!strncmp(str, "nohz,", 5)) { in housekeeping_isolcpus_setup() 157 str += 5; in housekeeping_isolcpus_setup() 162 if (!strncmp(str, "domain,", 7)) { in housekeeping_isolcpus_setup() 163 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 | 122 static int __control_devkmsg(char *str) in __control_devkmsg() argument 126 if (!str) in __control_devkmsg() 129 len = str_has_prefix(str, "on"); in __control_devkmsg() 135 len = str_has_prefix(str, "off"); in __control_devkmsg() 141 len = str_has_prefix(str, "ratelimit"); in __control_devkmsg() 150 static int __init control_devkmsg(char *str) in control_devkmsg() argument 152 if (__control_devkmsg(str) < 0) { in control_devkmsg() 153 pr_warn("printk.devkmsg: bad option string '%s'\n", str); in control_devkmsg() 998 static int __init log_buf_len_setup(char *str) in log_buf_len_setup() argument 1002 if (!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 | 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 516 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry() 517 if (IS_ERR(str)) { in audit_data_to_entry() 518 err = PTR_ERR(str); in audit_data_to_entry() [all …]
|
D | profile.c | 57 int profile_setup(char *str) in profile_setup() argument 64 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() 70 if (get_option(&str, &par)) 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() 81 if (get_option(&str, &par)) in profile_setup() 85 } else if (!strncmp(str, kvmstr, strlen(kvmstr))) { in profile_setup() [all …]
|
D | reboot.c | 603 static int __init reboot_setup(char *str) in reboot_setup() argument 615 if (!strncmp(str, "panic_", 6)) { in reboot_setup() 617 str += 6; in reboot_setup() 622 switch (*str) { in reboot_setup() 640 str += str[1] == 'm' && str[2] == 'p' ? 3 : 1; in reboot_setup() 642 if (isdigit(str[0])) { in reboot_setup() 643 int cpu = simple_strtoul(str, NULL, 0); in reboot_setup() 666 reboot_type = *str; in reboot_setup() 674 str = strchr(str, ','); in reboot_setup() 675 if (str) in reboot_setup() [all …]
|
D | watchdog.c | 76 static int __init hardlockup_panic_setup(char *str) in hardlockup_panic_setup() argument 78 if (!strncmp(str, "panic", 5)) in hardlockup_panic_setup() 80 else if (!strncmp(str, "nopanic", 7)) in hardlockup_panic_setup() 82 else if (!strncmp(str, "0", 1)) in hardlockup_panic_setup() 84 else if (!strncmp(str, "1", 1)) in hardlockup_panic_setup() 188 static int __init softlockup_panic_setup(char *str) in softlockup_panic_setup() argument 190 softlockup_panic = simple_strtoul(str, NULL, 0); in softlockup_panic_setup() 195 static int __init nowatchdog_setup(char *str) in nowatchdog_setup() argument 202 static int __init nosoftlockup_setup(char *str) in nosoftlockup_setup() argument 209 static int __init watchdog_thresh_setup(char *str) in watchdog_thresh_setup() argument [all …]
|
D | smp.c | 164 static int __init csdlock_debug(char *str) in csdlock_debug() argument 168 if (str && !strcmp(str, "ext")) { in csdlock_debug() 172 get_option(&str, &val); in csdlock_debug() 1038 static int __init nosmp(char *str) in nosmp() argument 1049 static int __init nrcpus(char *str) in nrcpus() argument 1053 if (get_option(&str, &nr_cpus) && nr_cpus > 0 && nr_cpus < nr_cpu_ids) in nrcpus() 1061 static int __init maxcpus(char *str) in maxcpus() argument 1063 get_option(&str, &setup_max_cpus); in maxcpus()
|
D | audit.c | 1389 char *str = data; in audit_receive_msg() local 1400 str[data_len - 1] = '\0'; in audit_receive_msg() 1403 str); in audit_receive_msg() 1406 if (data_len > 0 && str[data_len - 1] == '\0') in audit_receive_msg() 1408 audit_log_n_untrustedstring(ab, str, data_len); in audit_receive_msg() 1737 static int __init audit_enable(char *str) in audit_enable() argument 1739 if (!strcasecmp(str, "off") || !strcmp(str, "0")) in audit_enable() 1741 else if (!strcasecmp(str, "on") || !strcmp(str, "1")) in audit_enable() 1744 pr_err("audit: invalid 'audit' parameter value (%s)\n", str); in audit_enable() 1763 static int __init audit_backlog_limit_set(char *str) in audit_backlog_limit_set() argument [all …]
|
/kernel/power/ |
D | wakelock.c | 205 const char *str = buf; in pm_wake_lock() local 214 while (*str && !isspace(*str)) in pm_wake_lock() 215 str++; in pm_wake_lock() 217 len = str - buf; in pm_wake_lock() 221 if (*str && *str != '\n') { in pm_wake_lock() 223 ret = kstrtou64(skip_spaces(str), 10, &timeout_ns); in pm_wake_lock()
|
D | hibernate.c | 1274 static int __init resume_setup(char *str) in resume_setup() argument 1279 strncpy(resume_file, str, 255); in resume_setup() 1283 static int __init resume_offset_setup(char *str) in resume_offset_setup() argument 1290 if (sscanf(str, "%llu", &offset) == 1) in resume_offset_setup() 1296 static int __init hibernate_setup(char *str) in hibernate_setup() argument 1298 if (!strncmp(str, "noresume", 8)) { in hibernate_setup() 1300 } else if (!strncmp(str, "nocompress", 10)) { in hibernate_setup() 1302 } else if (!strncmp(str, "no", 2)) { in hibernate_setup() 1306 && !strncmp(str, "protect_image", 13)) { in hibernate_setup() 1312 static int __init noresume_setup(char *str) in noresume_setup() argument [all …]
|
/kernel/bpf/ |
D | tnum.c | 175 int tnum_strn(char *str, size_t size, struct tnum a) in tnum_strn() argument 177 return snprintf(str, size, "(%#llx; %#llx)", a.value, a.mask); in tnum_strn() 181 int tnum_sbin(char *str, size_t size, struct tnum a) in tnum_sbin() argument 188 str[n - 1] = 'x'; in tnum_sbin() 190 str[n - 1] = '1'; in tnum_sbin() 192 str[n - 1] = '0'; in tnum_sbin() 197 str[min(size - 1, (size_t)64)] = 0; in tnum_sbin()
|
/kernel/bpf/preload/iterators/ |
D | iterators.bpf.c | 63 const char *str; in get_name() local 67 str = btf->strings; in get_name() 73 return str + name_off; in get_name()
|
/kernel/dma/ |
D | swiotlb.c | 84 setup_io_tlb_npages(char *str) in setup_io_tlb_npages() argument 86 if (isdigit(*str)) { in setup_io_tlb_npages() 89 ALIGN(simple_strtoul(str, &str, 0), IO_TLB_SEGSIZE); in setup_io_tlb_npages() 91 if (*str == ',') in setup_io_tlb_npages() 92 ++str; in setup_io_tlb_npages() 93 if (!strcmp(str, "force")) in setup_io_tlb_npages() 95 else if (!strcmp(str, "noforce")) in setup_io_tlb_npages()
|
/kernel/irq/ |
D | spurious.c | 436 int noirqdebug_setup(char *str) in noirqdebug_setup() argument 448 static int __init irqfixup_setup(char *str) in irqfixup_setup() argument 460 static int __init irqpoll_setup(char *str) in irqpoll_setup() argument
|