Home
last modified time | relevance | path

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

1234

/kernel/trace/
Dtrace_events_inject.c36 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 …]
Dtrace_events_filter.c120 static bool is_not(const char *str) in is_not() argument
122 switch (str[1]) { in is_not()
176 typedef int (*parse_pred_fn)(const char *str, void *data, int pos,
447 predicate_parse(const char *str, int nr_parens, int nr_preds, in predicate_parse() argument
453 const char *ptr = str; in predicate_parse()
506 parse_error(pe, FILT_ERR_TOO_MANY_PREDS, next - str); in predicate_parse()
513 len = parse_pred(next, data, ptr - str, pe, &prog[N].pred); in predicate_parse()
542 next - str); in predicate_parse()
570 parse_error(pe, FILT_ERR_TOO_MANY_CLOSE, ptr - str); in predicate_parse()
579 parse_error(pe, FILT_ERR_TOO_MANY_OPEN, ptr - str); in predicate_parse()
[all …]
Dtrace_benchmark.h17 TP_PROTO(const char *str, u64 delta),
19 TP_ARGS(str, delta),
22 __array( char, str, BENCHMARK_EVENT_STRLEN )
27 memcpy(__entry->str, str, BENCHMARK_EVENT_STRLEN);
31 TP_printk("%s delta=%llu", __entry->str, __entry->delta),
Dtrace_events_hist.c762 static int errpos(char *str) in errpos() argument
764 if (!str || !last_cmd) in errpos()
767 return err_pos(last_cmd, str); in errpos()
770 static void last_cmd_set(struct trace_event_file *file, char *str) in last_cmd_set() argument
776 if (!str) in last_cmd_set()
780 len = sizeof(HIST_PREFIX) + strlen(str); in last_cmd_set()
789 strncat(last_cmd, str, len); in last_cmd_set()
1395 static int parse_map_size(char *str) in parse_map_size() argument
1400 ret = kstrtoul(str, 0, &size); in parse_map_size()
1435 static int parse_action(char *str, struct hist_trigger_attrs *attrs) in parse_action() argument
[all …]
Dfprobe.c194 unsigned char *str; in register_fprobe() local
203 str = kstrdup(filter, GFP_KERNEL); in register_fprobe()
204 ret = ftrace_set_filter(&fp->ops, str, len, 0); in register_fprobe()
205 kfree(str); in register_fprobe()
211 str = kstrdup(notfilter, GFP_KERNEL); in register_fprobe()
212 ret = ftrace_set_notrace(&fp->ops, str, len, 0); in register_fprobe()
213 kfree(str); in register_fprobe()
Dtrace_printk.c254 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()
Dtrace_dynevent.c303 ret = seq_buf_printf(&cmd->seq, " %s%c", arg->str, arg->separator); in dynevent_arg_add()
305 pr_err("String is too long: %s%c\n", arg->str, arg->separator); in dynevent_arg_add()
371 int dynevent_str_add(struct dynevent_cmd *cmd, const char *str) in dynevent_str_add() argument
375 ret = seq_buf_puts(&cmd->seq, str); in dynevent_str_add()
377 pr_err("String is too long: %s\n", str); in dynevent_str_add()
Dtrace_output.c34 trace_seq_puts(s, field->str); in trace_print_bputs_msg_only()
71 const char *str; in trace_print_flags_seq() local
81 str = flag_array[i].name; in trace_print_flags_seq()
87 trace_seq_puts(p, str); in trace_print_flags_seq()
135 const char *str; in trace_print_flags_seq_u64() local
145 str = flag_array[i].name; in trace_print_flags_seq_u64()
151 trace_seq_puts(p, str); in trace_print_flags_seq_u64()
361 char str[KSYM_SYMBOL_LEN]; in trace_seq_print_sym() local
365 sprint_symbol(str, address); in trace_seq_print_sym()
367 kallsyms_lookup(address, NULL, NULL, NULL, str); in trace_seq_print_sym()
[all …]
Dtrace_probe.c345 static int str_to_immediate(char *str, unsigned long *imm) in str_to_immediate() argument
347 if (isdigit(str[0])) in str_to_immediate()
348 return kstrtoul(str, 0, imm); in str_to_immediate()
349 else if (str[0] == '-') in str_to_immediate()
350 return kstrtol(str, 0, (long *)imm); in str_to_immediate()
351 else if (str[0] == '+') in str_to_immediate()
352 return kstrtol(str + 1, 0, (long *)imm); in str_to_immediate()
356 static int __parse_imm_string(char *str, char **pbuf, int offs) in __parse_imm_string() argument
358 size_t len = strlen(str); in __parse_imm_string()
360 if (str[len - 1] != '"') { in __parse_imm_string()
[all …]
Dtrace_seq.c205 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/
Disolation.c109 static int __init housekeeping_setup(char *str, unsigned long flags) in housekeeping_setup() argument
123 if (cpulist_parse(str, non_housekeeping_mask) < 0) { in housekeeping_setup()
180 static int __init housekeeping_nohz_full_setup(char *str) in housekeeping_nohz_full_setup() argument
187 return housekeeping_setup(str, flags); in housekeeping_nohz_full_setup()
191 static int __init housekeeping_isolcpus_setup(char *str) in housekeeping_isolcpus_setup() argument
198 while (isalpha(*str)) { in housekeeping_isolcpus_setup()
199 if (!strncmp(str, "nohz,", 5)) { in housekeeping_isolcpus_setup()
200 str += 5; in housekeeping_isolcpus_setup()
205 if (!strncmp(str, "domain,", 7)) { in housekeeping_isolcpus_setup()
206 str += 7; in housekeeping_isolcpus_setup()
[all …]
/kernel/printk/
Dbraille.c12 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()
Dprintk.c127 static int __control_devkmsg(char *str) in __control_devkmsg() argument
131 if (!str) in __control_devkmsg()
134 len = str_has_prefix(str, "on"); in __control_devkmsg()
140 len = str_has_prefix(str, "off"); in __control_devkmsg()
146 len = str_has_prefix(str, "ratelimit"); in __control_devkmsg()
155 static int __init control_devkmsg(char *str) in control_devkmsg() argument
157 if (__control_devkmsg(str) < 0) { in control_devkmsg()
158 pr_warn("printk.devkmsg: bad option string '%s'\n", str); in control_devkmsg()
993 static int __init log_buf_len_setup(char *str) in log_buf_len_setup() argument
997 if (!str) in log_buf_len_setup()
[all …]
Dbraille.h21 _braille_console_setup(char **str, char **brl_options);
37 _braille_console_setup(char **str, char **brl_options) in _braille_console_setup() argument
/kernel/
Dauditfilter.c129 char *str; in audit_unpack_string() local
140 str = kmalloc(len + 1, GFP_KERNEL); in audit_unpack_string()
141 if (unlikely(!str)) in audit_unpack_string()
144 memcpy(str, *bufp, len); in audit_unpack_string()
145 str[len] = 0; in audit_unpack_string()
149 return str; in audit_unpack_string()
457 char *str; in audit_data_to_entry() local
524 str = audit_unpack_string(&bufp, &remain, f_val); in audit_data_to_entry()
525 if (IS_ERR(str)) { in audit_data_to_entry()
526 err = PTR_ERR(str); in audit_data_to_entry()
[all …]
Dwatchdog.c76 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 …]
Dreboot.c991 static int __init reboot_setup(char *str) in reboot_setup() argument
1003 if (!strncmp(str, "panic_", 6)) { in reboot_setup()
1005 str += 6; in reboot_setup()
1010 switch (*str) { in reboot_setup()
1028 str += str[1] == 'm' && str[2] == 'p' ? 3 : 1; in reboot_setup()
1030 if (isdigit(str[0])) { in reboot_setup()
1031 int cpu = simple_strtoul(str, NULL, 0); in reboot_setup()
1054 reboot_type = *str; in reboot_setup()
1062 str = strchr(str, ','); in reboot_setup()
1063 if (str) in reboot_setup()
[all …]
Dprofile.c57 int profile_setup(char *str) in profile_setup() argument
65 if (!strncmp(str, sleepstr, strlen(sleepstr))) { in profile_setup()
73 } else if (!strncmp(str, schedstr, strlen(schedstr))) { in profile_setup()
76 } else if (!strncmp(str, kvmstr, strlen(kvmstr))) { in profile_setup()
79 } else if (get_option(&str, &par)) { in profile_setup()
87 if (str[strlen(select)] == ',') in profile_setup()
88 str += strlen(select) + 1; in profile_setup()
89 if (get_option(&str, &par)) in profile_setup()
Dsmp.c164 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()
1067 static int __init nosmp(char *str) in nosmp() argument
1078 static int __init nrcpus(char *str) in nrcpus() argument
1082 if (get_option(&str, &nr_cpus) && nr_cpus > 0 && nr_cpus < nr_cpu_ids) in nrcpus()
1090 static int __init maxcpus(char *str) in maxcpus() argument
1092 get_option(&str, &setup_max_cpus); in maxcpus()
/kernel/power/
Dwakelock.c205 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()
Dhibernate.c1295 static int __init resume_setup(char *str) in resume_setup() argument
1300 strncpy(resume_file, str, 255); in resume_setup()
1304 static int __init resume_offset_setup(char *str) in resume_offset_setup() argument
1311 if (sscanf(str, "%llu", &offset) == 1) in resume_offset_setup()
1317 static int __init hibernate_setup(char *str) in hibernate_setup() argument
1319 if (!strncmp(str, "noresume", 8)) { in hibernate_setup()
1321 } else if (!strncmp(str, "nocompress", 10)) { in hibernate_setup()
1323 } else if (!strncmp(str, "no", 2)) { in hibernate_setup()
1327 && !strncmp(str, "protect_image", 13)) { in hibernate_setup()
1333 static int __init noresume_setup(char *str) in noresume_setup() argument
[all …]
/kernel/bpf/
Dtnum.c175 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/module/
Dkallsyms.c113 Elf_Shdr *strsect = info->sechdrs + info->index.str; in layout_symtab()
148 info->index.str) | INIT_OFFSET_MASK; in layout_symtab()
185 (void *)info->sechdrs[info->index.str].sh_addr; in add_kallsyms()
245 static inline int is_arm_mapping_symbol(const char *str) in is_arm_mapping_symbol() argument
247 if (str[0] == '.' && str[1] == 'L') in is_arm_mapping_symbol()
249 return str[0] == '$' && strchr("axtd", str[1]) && in is_arm_mapping_symbol()
250 (str[2] == '\0' || str[2] == '.'); in is_arm_mapping_symbol()
/kernel/dma/
Dswiotlb.c161 setup_io_tlb_npages(char *str) in setup_io_tlb_npages() argument
163 if (isdigit(*str)) { in setup_io_tlb_npages()
166 ALIGN(simple_strtoul(str, &str, 0), IO_TLB_SEGSIZE); in setup_io_tlb_npages()
168 if (*str == ',') in setup_io_tlb_npages()
169 ++str; in setup_io_tlb_npages()
170 if (isdigit(*str)) in setup_io_tlb_npages()
171 swiotlb_adjust_nareas(simple_strtoul(str, &str, 0)); in setup_io_tlb_npages()
172 if (*str == ',') in setup_io_tlb_npages()
173 ++str; in setup_io_tlb_npages()
174 if (!strcmp(str, "force")) in setup_io_tlb_npages()
[all …]
/kernel/bpf/preload/iterators/
Diterators.bpf.c63 const char *str; in get_name() local
67 str = btf->strings; in get_name()
73 return str + name_off; in get_name()

1234