Home
last modified time | relevance | path

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

1234

/kernel/trace/
A Dtrace_events_inject.c45 if (!str[i]) in parse_field()
51 while (isalnum(str[i]) || str[i] == '_') in parse_field()
74 if (isdigit(str[i]) || str[i] == '-') { in parse_field()
88 num = str + s; in parse_field()
89 c = str[i]; in parse_field()
98 str[i] = c; in parse_field()
104 } else if (str[i] == '\'' || str[i] == '"') { in parse_field()
112 if (str[i] == '\\' && str[i + 1]) { in parse_field()
119 if (!str[i]) in parse_field()
129 str[i] = 0; in parse_field()
[all …]
A Dtrace_events_filter.c865 char *str; in filter_pred_pchar() local
868 if (!str) in filter_pred_pchar()
881 if (!str) in filter_pred_pchar_user()
1656 while (isalnum(str[i]) || str[i] == '_') in parse_pred()
1758 for (; str[i] && !isspace(str[i]); i++) in parse_pred()
1801 if (str[i] == '\'' || str[i] == '"') in parse_pred()
1809 if (!q && (str[i] == ')' || str[i] == '&' || in parse_pred()
1863 for (; str[i] && str[i] != '}'; i++) in parse_pred()
1948 } else if (str[i] == '\'' || str[i] == '"') { in parse_pred()
2024 } else if (isdigit(str[i]) || str[i] == '-') { in parse_pred()
[all …]
A 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),
A Dtrace_events_hist.c780 if (!str) in last_cmd_set()
1502 str += len; in parse_assignment()
1504 str = strstrip(str); in parse_assignment()
2413 kfree(str); in parse_field()
2517 str = s; in parse_atom()
2567 str++; in parse_unary()
2709 str = sep+1; in parse_expr()
3712 if (!str) { in action_parse()
3754 if (!str) { in action_parse()
4703 if (!str) in is_descending()
[all …]
A 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()
A Dtrace_dynevent.c308 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()
A Dtrace.c255 if (!*str) { in set_ftrace_dump_on_oops()
277 if ((strcmp(str, "=0") != 0 && strcmp(str, "=off") != 0)) in stop_trace_on_warning()
290 str++; in boot_alloc_snapshot()
355 if (*str == '_') in set_tracepoint_printk()
358 if ((strcmp(str, "=0") != 0 && strcmp(str, "=off") != 0)) in set_tracepoint_printk()
1202 return __trace_puts(ip, str, strlen(str)); in __trace_bputs()
1221 entry->str = str; in __trace_bputs()
1699 if (!str) in set_buf_size()
1701 buf_size = memparse(str, &str); in set_buf_size()
1717 if (!str) in set_tracing_thresh()
[all …]
/kernel/sched/
A Disolation.c196 return housekeeping_setup(str, flags); in housekeeping_nohz_full_setup()
207 while (isalpha(*str)) { in housekeeping_isolcpus_setup()
211 if (!strncmp(str, "nohz,", 5)) { in housekeeping_isolcpus_setup()
212 str += 5; in housekeeping_isolcpus_setup()
217 if (!strncmp(str, "domain,", 7)) { in housekeeping_isolcpus_setup()
218 str += 7; in housekeeping_isolcpus_setup()
224 str += 12; in housekeeping_isolcpus_setup()
233 for (par = str, len = 0; *str && *str != ','; str++, len++) { in housekeeping_isolcpus_setup()
234 if (!isalpha(*str) && *str != '_') in housekeeping_isolcpus_setup()
244 str++; in housekeeping_isolcpus_setup()
[all …]
/kernel/printk/
A 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()
A Dprintk.c147 if (!str) in __control_devkmsg()
150 len = str_has_prefix(str, "on"); in __control_devkmsg()
1084 if (!str) in log_buf_len_setup()
1087 size = memparse(str, &str); in log_buf_len_setup()
2584 if (!strcmp(str, "syslog")) in console_msg_format_setup()
2612 if (str[0] == 0 || strcmp(str, "null") == 0) { in console_setup()
2621 if (strchr(str, ':')) in console_setup()
2632 strscpy(buf, str); in console_setup()
2634 options = strchr(str, ','); in console_setup()
2639 if (!strcmp(str, "ttya")) in console_setup()
[all …]
A 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/
A Dauditfilter.c129 char *str; in audit_unpack_string() local
141 if (unlikely(!str)) 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
525 if (IS_ERR(str)) { in audit_data_to_entry()
530 f->lsm_str = str; in audit_data_to_entry()
538 str); in audit_data_to_entry()
551 kfree(str); in audit_data_to_entry()
563 kfree(str); in audit_data_to_entry()
[all …]
A Dreboot.c1058 if (sysfs_streq(str, "shutdown")) in hw_protection_action_parse()
1060 else if (sysfs_streq(str, "reboot")) in hw_protection_action_parse()
1109 if (!strncmp(str, "panic_", 6)) { in reboot_setup()
1111 str += 6; in reboot_setup()
1116 switch (*str) { in reboot_setup()
1134 str += str[1] == 'm' && str[2] == 'p' ? 3 : 1; in reboot_setup()
1136 if (isdigit(str[0])) { in reboot_setup()
1160 reboot_type = *str; in reboot_setup()
1168 str = strchr(str, ','); in reboot_setup()
1169 if (str) in reboot_setup()
[all …]
A Dprofile.c50 int profile_setup(char *str) in profile_setup() argument
57 if (!strncmp(str, schedstr, strlen(schedstr))) { in profile_setup()
60 } else if (!strncmp(str, kvmstr, strlen(kvmstr))) { in profile_setup()
63 } else if (get_option(&str, &par)) { in profile_setup()
71 if (str[strlen(select)] == ',') in profile_setup()
72 str += strlen(select) + 1; in profile_setup()
73 if (get_option(&str, &par)) in profile_setup()
A Dwatchdog.c106 if (!strncmp(str, "panic", 5)) in hardlockup_panic_setup()
108 else if (!strncmp(str, "nopanic", 7)) in hardlockup_panic_setup()
110 else if (!strncmp(str, "0", 1)) in hardlockup_panic_setup()
112 else if (!strncmp(str, "1", 1)) in hardlockup_panic_setup()
114 else if (!strncmp(str, "r", 1)) in hardlockup_panic_setup()
115 hardlockup_config_perf_event(str + 1); in hardlockup_panic_setup()
116 while (*(str++)) { in hardlockup_panic_setup()
117 if (*str == ',') { in hardlockup_panic_setup()
118 str++; in hardlockup_panic_setup()
379 static int __init nowatchdog_setup(char *str) in nowatchdog_setup() argument
[all …]
A Dwatchdog_perf.c282 void __init hardlockup_config_perf_event(const char *str) in hardlockup_config_perf_event() argument
286 char *comma = strchr(str, ','); in hardlockup_config_perf_event()
289 if (kstrtoull(str, 16, &config)) in hardlockup_config_perf_event()
292 unsigned int len = comma - str; in hardlockup_config_perf_event()
297 strscpy(buf, str, len); in hardlockup_config_perf_event()
A Dsmp.c153 static int __init csdlock_debug(char *str) in csdlock_debug() argument
158 ret = get_option(&str, &val); in csdlock_debug()
946 static int __init nosmp(char *str) in nosmp() argument
957 static int __init nrcpus(char *str) in nrcpus() argument
961 if (get_option(&str, &nr_cpus) && nr_cpus > 0 && nr_cpus < nr_cpu_ids) in nrcpus()
969 static int __init maxcpus(char *str) in maxcpus() argument
971 get_option(&str, &setup_max_cpus); in maxcpus()
A Daudit.c1385 char *str = data; in audit_receive_msg() local
1396 str[data_len - 1] = '\0'; in audit_receive_msg()
1399 str); in audit_receive_msg()
1402 if (str[data_len - 1] == '\0') in audit_receive_msg()
1404 audit_log_n_untrustedstring(ab, str, data_len); in audit_receive_msg()
1733 static int __init audit_enable(char *str) in audit_enable() argument
1735 if (!strcasecmp(str, "off") || !strcmp(str, "0")) in audit_enable()
1737 else if (!strcasecmp(str, "on") || !strcmp(str, "1")) in audit_enable()
1759 static int __init audit_backlog_limit_set(char *str) in audit_backlog_limit_set() argument
1764 if (kstrtouint(str, 0, &audit_backlog_limit_arg)) { in audit_backlog_limit_set()
[all …]
/kernel/power/
A Dwakelock.c208 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()
224 if (*str && *str != '\n') { in pm_wake_lock()
226 ret = kstrtou64(skip_spaces(str), 10, &timeout_ns); in pm_wake_lock()
A Dhibernate.c1419 static int __init resume_setup(char *str) in resume_setup() argument
1424 strscpy(resume_file, str); in resume_setup()
1435 if (sscanf(str, "%llu", &offset) == 1) in resume_offset_setup()
1441 static int __init hibernate_setup(char *str) in hibernate_setup() argument
1443 if (!strncmp(str, "noresume", 8)) { in hibernate_setup()
1445 } else if (!strncmp(str, "nocompress", 10)) { in hibernate_setup()
1447 } else if (!strncmp(str, "no", 2)) { in hibernate_setup()
1451 && !strncmp(str, "protect_image", 13)) { in hibernate_setup()
1457 static int __init noresume_setup(char *str) in noresume_setup() argument
1463 static int __init resumewait_setup(char *str) in resumewait_setup() argument
[all …]
/kernel/bpf/
A Dstream.c101 int min = offsetof(struct bpf_stream_elem, str[0]); in bpf_stream_page_check_room()
130 stream_page->consumed += round_up(offsetof(struct bpf_stream_elem, str[len]), 8); in bpf_stream_page_push_elem()
182 static int __bpf_stream_push_str(struct llist_head *log, const char *str, int len) in __bpf_stream_push_str() argument
194 memcpy(elem->str, str, len); in __bpf_stream_push_str()
218 static int bpf_stream_push_str(struct bpf_stream *stream, const char *str, int len) in bpf_stream_push_str() argument
222 return ret ?: __bpf_stream_push_str(&stream->log, str, len); in bpf_stream_push_str()
322 ret = copy_to_user(buf + pos, elem->str + cons_len, in bpf_stream_read()
A Dtnum.c180 int tnum_sbin(char *str, size_t size, struct tnum a) in tnum_sbin() argument
187 str[n - 1] = 'x'; in tnum_sbin()
189 str[n - 1] = '1'; in tnum_sbin()
191 str[n - 1] = '0'; in tnum_sbin()
196 str[min(size - 1, (size_t)64)] = 0; in tnum_sbin()
/kernel/bpf/preload/iterators/
A 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()
/kernel/dma/
A Dswiotlb.c185 setup_io_tlb_npages(char *str) in setup_io_tlb_npages() argument
187 if (isdigit(*str)) { in setup_io_tlb_npages()
190 ALIGN(simple_strtoul(str, &str, 0), IO_TLB_SEGSIZE); in setup_io_tlb_npages()
192 if (*str == ',') in setup_io_tlb_npages()
193 ++str; in setup_io_tlb_npages()
194 if (isdigit(*str)) in setup_io_tlb_npages()
195 swiotlb_adjust_nareas(simple_strtoul(str, &str, 0)); in setup_io_tlb_npages()
196 if (*str == ',') in setup_io_tlb_npages()
197 ++str; in setup_io_tlb_npages()
198 if (!strcmp(str, "force")) in setup_io_tlb_npages()
[all …]
/kernel/irq/
A Dspurious.c384 int noirqdebug_setup(char *str) in noirqdebug_setup() argument
394 static int __init irqfixup_setup(char *str) in irqfixup_setup() argument
408 static int __init irqpoll_setup(char *str) in irqpoll_setup() argument

Completed in 86 milliseconds

1234