/linux-master/tools/testing/selftests/arm64/abi/ |
H A D | tpidr2.c | 10 static void putstr(const char *str) argument 12 write(1, str, strlen(str));
|
/linux-master/tools/net/ynl/ |
H A D | ynl-gen-rst.py | 34 def headroom(level: int) -> str: 39 def bold(text: str) -> str: 44 def inline(text: str) -> str: 49 def sanitize(text: str) -> str: 52 return str(text).replace("\n", "").strip() 55 def rst_fields(key: str, value: str, leve [all...] |
H A D | ynl-gen-c.py | 191 if type(lines) is str: 193 if type(init_lines) is str: 416 mem = 'NLA_POLICY_EXACT_LEN(' + str(self.get_limit('exact-len')) + ')' 420 mem += ', .len = ' + str(self.get_limit('max-len')) 434 self._attr_put_simple(ri, var, 'str') 468 mem = 'NLA_POLICY_EXACT_LEN(' + str(self.get_limit('exact-len')) + ')' 472 mem += '.len = ' + str(self.get_limit('min-len')) 1341 if type(local_vars) is str: 1368 line += str(define[1]) 1369 elif type(define[1]) is str [all...] |
H A D | cli.py | 33 parser.add_argument('--spec', dest='spec', type=str, required=True) 34 parser.add_argument('--schema', dest='schema', type=str) 36 parser.add_argument('--json', dest='json_text', type=str) 39 group.add_argument('--do', dest='do', metavar='DO-OPERATION', type=str) 41 metavar=('DO-OPERATION', 'JSON_TEXT'), type=str) 42 group.add_argument('--dump', dest='dump', metavar='DUMP-OPERATION', type=str) 47 parser.add_argument('--subscribe', dest='ntf', type=str)
|
H A D | ethtool.py | 151 parser.add_argument('device', metavar='device', type=str) 152 parser.add_argument('args', metavar='args', type=str, nargs='*')
|
/linux-master/tools/net/ynl/lib/ |
H A D | ynl.py | 149 real_type = attr_type[0] + str(len(self.raw) * 8) 270 msg += '\n\terror: ' + str(self.error) 522 if isinstance(value, str): 564 attr_payload = str(value).encode('ascii') + b'\x00' 568 elif isinstance(value, str): 886 formatted = str(uuid.UUID(bytes=raw))
|
H A D | nlspec.py | 73 if isinstance(yaml, str):
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf_internal.h | 114 /* Check whether a string `str` has prefix `pfx`, regardless if `pfx` is 118 #define str_has_pfx(str, pfx) \ 119 (strncmp(str, pfx, __builtin_constant_p(pfx) ? sizeof(pfx) - 1 : strlen(pfx)) == 0) 122 static inline bool str_has_sfx(const char *str, const char *sfx) argument 124 size_t str_len = strlen(str); 129 return strcmp(str + str_len - sfx_len, sfx) == 0; 648 bool glob_match(const char *str, const char *pat);
|
H A D | libbpf.c | 6566 const char *str = "exception_callback:"; local 6567 size_t pfx_len = strlen(str); 6583 if (strncmp(name, str, pfx_len) != 0) 6802 p->name_off = name_off; /* use remembered str offset */ 11239 bool glob_match(const char *str, const char *pat) argument 11241 while (*str && *pat && *pat != '*') { 11243 str++; 11247 if (*str != *pat) 11249 str++; 11258 while (*str) [all...] |
/linux-master/tools/include/nolibc/ |
H A D | string.h | 127 size_t strlen(const char *str) argument 131 for (len = 0; str[len]; len++) 141 #define strlen(str) ({ \ 142 __builtin_constant_p((str)) ? \ 143 __builtin_strlen((str)) : \ 144 nolibc_strlen((str)); \ 149 size_t strnlen(const char *str, size_t maxlen) argument 153 for (len = 0; (len < maxlen) && str[len]; len++); 158 char *strdup(const char *str) argument 163 len = strlen(str); 172 strndup(const char *str, size_t maxlen) argument [all...] |
/linux-master/tools/bpf/bpftool/ |
H A D | prog.c | 68 static enum bpf_attach_type parse_attach_type(const char *str) argument 77 if (!strcmp(str, attach_type_str)) 82 is_prefix(str, attach_type_strings[type]))
|
H A D | main.h | 91 bool is_prefix(const char *pfx, const char *str);
|
H A D | link.c | 396 char *str = malloc(PERF_HW_CACHE_LEN); local 398 if (!str) { 405 snprintf(str, PERF_HW_CACHE_LEN, "%s-", hw_cache); 407 snprintf(str, PERF_HW_CACHE_LEN, "%lld-", config & 0xff); 411 snprintf(str + strlen(str), PERF_HW_CACHE_LEN - strlen(str), 414 snprintf(str + strlen(str), PERF_HW_CACHE_LEN - strlen(str), [all...] |
H A D | gen.c | 38 static bool str_has_prefix(const char *str, const char *prefix) argument 40 return strncmp(str, prefix, strlen(prefix)) == 0; 43 static bool str_has_suffix(const char *str, const char *suffix) argument 45 size_t i, n1 = strlen(str), n2 = strlen(suffix); 51 if (str[n1 - i - 1] != suffix[n2 - i - 1])
|
H A D | feature.c | 66 static void uppercase(char *str, size_t len) argument 70 for (i = 0; i < len && str[i] != '\0'; i++) 71 str[i] = toupper(str[i]);
|
/linux-master/security/selinux/ss/ |
H A D | services.c | 1225 *scontext = kstrdup(context->str, GFP_ATOMIC); 1510 char *scontext2, *str = NULL; local 1542 str = kstrdup(scontext2, gfp_flags); 1543 if (!str) 1554 context.str = str; 1555 context.len = strlen(str) + 1; 1556 str = NULL; 1562 if (context.str) { 1563 str [all...] |
H A D | policydb.c | 1096 char *str; local 1101 str = kmalloc(len + 1, flags | __GFP_NOWARN); 1102 if (!str) 1105 rc = next_entry(str, fp, len); 1107 kfree(str); 1111 str[len] = '\0'; 1112 *strp = str;
|
/linux-master/security/selinux/ |
H A D | hooks.c | 119 static int __init enforcing_setup(char *str) argument 122 if (!kstrtoul(str, 0, &enforcing)) 133 static int __init selinux_enabled_setup(char *str) argument 136 if (!kstrtoul(str, 0, &enabled)) 143 static int __init checkreqprot_setup(char *str) argument 147 if (!kstrtoul(str, 0, &checkreqprot)) { 3230 const char *str = value; local 3232 if (str[size - 1] == '\0') 6400 char *str = value; local 6434 if (size && str[ [all...] |
/linux-master/security/ |
H A D | security.c | 478 static int __init choose_major_lsm(char *str) argument 480 chosen_major_lsm = str; 486 static int __init choose_lsm_order(char *str) argument 488 chosen_lsm_order = str; 494 static int __init enable_debug(char *str) argument
|
/linux-master/security/integrity/ima/ |
H A D | ima_main.c | 46 static int __init hash_setup(char *str) argument 55 if (strncmp(str, "sha1", 4) == 0) { 57 } else if (strncmp(str, "md5", 3) == 0) { 61 str, IMA_TEMPLATE_IMA_NAME); 67 i = match_string(hash_algo_name, HASH_ALGO__LAST, str); 69 pr_err("invalid hash algorithm \"%s\"", str);
|
H A D | ima_fs.c | 30 static int __init default_canonical_fmt_setup(char *str) argument
|
H A D | ima_appraise.c | 28 const char *str = ima_appraise_cmdline_default; local 32 if (!str) 35 if (strncmp(str, "off", 3) == 0) 37 else if (strncmp(str, "log", 3) == 0) 39 else if (strncmp(str, "fix", 3) == 0) 41 else if (strncmp(str, "enforce", 7) == 0) 44 pr_err("invalid \"%s\" appraise option", str); 51 str);
|
H A D | ima.h | 321 #define __ima_hook_enumify(ENUM, str) ENUM, 323 #define __ima_hook_measuring_stringify(ENUM, str) \ 324 (__ima_stringify(measuring_ ##str)),
|
/linux-master/security/integrity/evm/ |
H A D | evm_main.c | 76 static int __init evm_set_fixmode(char *str) argument 78 if (strncmp(str, "fix", 3) == 0) 81 pr_err("invalid \"%s\" mode", str);
|
/linux-master/security/apparmor/ |
H A D | lsm.c | 1659 static int __init apparmor_enabled_setup(char *str) argument 1662 int error = kstrtoul(str, 0, &enabled);
|