/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 | 542 static int errpos(char *str) in errpos() argument 544 return err_pos(last_cmd, str); in errpos() 547 static void last_cmd_set(struct trace_event_file *file, char *str) in last_cmd_set() argument 552 if (!str) in last_cmd_set() 556 strncat(last_cmd, str, MAX_FILTER_STR_VAL - 1 - sizeof("hist:")); in last_cmd_set() 1159 static int parse_map_size(char *str) in parse_map_size() argument 1164 ret = kstrtoul(str, 0, &size); in parse_map_size() 1199 static int parse_action(char *str, struct hist_trigger_attrs *attrs) in parse_action() argument 1206 if ((str_has_prefix(str, "onmatch(")) || in parse_action() 1207 (str_has_prefix(str, "onmax(")) || in parse_action() [all …]
|
D | trace_dynevent.c | 259 ret = seq_buf_printf(&cmd->seq, " %s%c", arg->str, arg->separator); in dynevent_arg_add() 261 pr_err("String is too long: %s%c\n", arg->str, arg->separator); in dynevent_arg_add() 327 int dynevent_str_add(struct dynevent_cmd *cmd, const char *str) in dynevent_str_add() argument 331 ret = seq_buf_puts(&cmd->seq, str); in dynevent_str_add() 333 pr_err("String is too long: %s\n", str); in dynevent_str_add()
|
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_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() 360 char str[KSYM_SYMBOL_LEN]; in seq_print_sym() local 364 sprint_symbol(str, address); in seq_print_sym() 366 kallsyms_lookup(address, NULL, NULL, NULL, str); in seq_print_sym() [all …]
|
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 | 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 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 146 return housekeeping_setup(str, flags); in housekeeping_nohz_full_setup() 150 static int __init housekeeping_isolcpus_setup(char *str) in housekeeping_isolcpus_setup() argument 157 while (isalpha(*str)) { in housekeeping_isolcpus_setup() 158 if (!strncmp(str, "nohz,", 5)) { in housekeeping_isolcpus_setup() 159 str += 5; in housekeeping_isolcpus_setup() 164 if (!strncmp(str, "domain,", 7)) { in housekeeping_isolcpus_setup() 165 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() 1035 static int __init log_buf_len_setup(char *str) in log_buf_len_setup() argument 1039 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 | reboot.c | 524 static int __init reboot_setup(char *str) in reboot_setup() argument 536 if (!strncmp(str, "panic_", 6)) { in reboot_setup() 538 str += 6; in reboot_setup() 543 switch (*str) { in reboot_setup() 557 if (isdigit(*(str+1))) in reboot_setup() 558 reboot_cpu = simple_strtoul(str+1, NULL, 0); in reboot_setup() 559 else if (str[1] == 'm' && str[2] == 'p' && in reboot_setup() 560 isdigit(*(str+3))) in reboot_setup() 561 reboot_cpu = simple_strtoul(str+3, NULL, 0); in reboot_setup() 583 reboot_type = *str; in reboot_setup() [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 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 | 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() 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 195 static int __init nosoftlockup_setup(char *str) in nosoftlockup_setup() argument 202 static int __init watchdog_thresh_setup(char *str) in watchdog_thresh_setup() argument [all …]
|
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 | 1271 static int __init resume_setup(char *str) in resume_setup() argument 1276 strncpy(resume_file, str, 255); in resume_setup() 1280 static int __init resume_offset_setup(char *str) in resume_offset_setup() argument 1287 if (sscanf(str, "%llu", &offset) == 1) in resume_offset_setup() 1293 static int __init hibernate_setup(char *str) in hibernate_setup() argument 1295 if (!strncmp(str, "noresume", 8)) { in hibernate_setup() 1297 } else if (!strncmp(str, "nocompress", 10)) { in hibernate_setup() 1299 } else if (!strncmp(str, "no", 2)) { in hibernate_setup() 1303 && !strncmp(str, "protect_image", 13)) { in hibernate_setup() 1309 static int __init noresume_setup(char *str) in noresume_setup() argument [all …]
|
/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 | 424 char str[64]; in __bpf_strtoull() local 447 cur_len = min(cur_len, sizeof(str) - 1); in __bpf_strtoull() 448 memcpy(str, cur_buf, cur_len); in __bpf_strtoull() 449 str[cur_len] = '\0'; in __bpf_strtoull() 450 cur_buf = str; in __bpf_strtoull() 462 consumed += cur_buf - str; in __bpf_strtoull()
|
/kernel/dma/ |
D | swiotlb.c | 110 setup_io_tlb_npages(char *str) in setup_io_tlb_npages() argument 112 if (isdigit(*str)) { in setup_io_tlb_npages() 113 io_tlb_nslabs = simple_strtoul(str, &str, 0); in setup_io_tlb_npages() 117 if (*str == ',') in setup_io_tlb_npages() 118 ++str; in setup_io_tlb_npages() 119 if (!strcmp(str, "force")) { in setup_io_tlb_npages() 121 } else if (!strcmp(str, "noforce")) { in setup_io_tlb_npages()
|
/kernel/bpf/preload/iterators/ |
D | iterators.bpf.c | 64 const char *str; in get_name() local 68 str = btf->strings; in get_name() 74 return str + name_off; in get_name()
|
/kernel/irq/ |
D | spurious.c | 432 int noirqdebug_setup(char *str) in noirqdebug_setup() argument 444 static int __init irqfixup_setup(char *str) in irqfixup_setup() argument 456 static int __init irqpoll_setup(char *str) in irqpoll_setup() argument
|