Home
last modified time | relevance | path

Searched refs:strstr (Results 1 – 25 of 144) sorted by relevance

123456

/tools/testing/selftests/bpf/prog_tests/
A Dlog_buf.c82 ASSERT_NULL(strstr(libbpf_log_buf, "-- BEGIN PROG LOAD LOG --"), "unexp_libbpf_log"); in obj_load_log_buf()
83 ASSERT_OK_PTR(strstr(libbpf_log_buf, "prog 'bad_prog': BPF program load failed"), in obj_load_log_buf()
85 ASSERT_OK_PTR(strstr(obj_log_buf, "DATASEC license"), "obj_log_not_empty"); in obj_load_log_buf()
86 ASSERT_OK_PTR(strstr(good_log_buf, "0: R1=ctx() R10=fp0"), in obj_load_log_buf()
88 ASSERT_OK_PTR(strstr(bad_log_buf, "invalid access to map value, value_size=16 off=16000 size=4"), in obj_load_log_buf()
125 ASSERT_OK_PTR(strstr(libbpf_log_buf, "libbpf: prog 'bad_prog': -- BEGIN PROG LOAD LOG --"), in obj_load_log_buf()
182 ASSERT_OK_PTR(strstr(log_buf, "0: R1=ctx() R10=fp0"), "good_log_2"); in bpf_prog_load_log_buf()
192 ASSERT_OK_PTR(strstr(log_buf, "R0 !read_ok"), "bad_log_0"); in bpf_prog_load_log_buf()
241 ASSERT_OK_PTR(strstr(log_buf, "magic: 0xeb9f"), "good_log_2"); in bpf_btf_load_log_buf()
259 ASSERT_OK_PTR(strstr(log_buf, "[2] PTR (anon) type_id=100 Invalid type_id"), "bad_log_0"); in bpf_btf_load_log_buf()
A Dlog_fixup.c53 ASSERT_NULL(strstr(log_buf, "max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0\n"), in bad_core_relo()
58 ASSERT_NULL(strstr(log_buf, "struct task_struct___bad.fake_field (0:1 @ offset 4)\n"), in bad_core_relo()
61 ASSERT_NULL(strstr(log_buf, "max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0\n"), in bad_core_relo()
A Dtrace_vprintk.c12 if (strstr(str, SEARCHMSG) != NULL) in trace_pipe_cb()
A Dtrace_printk.c12 if (strstr(str, SEARCHMSG) != NULL) in trace_pipe_cb()
A Dcb_refs.c42 if (!ASSERT_OK_PTR(strstr(log_buf, cb_refs_tests[i].err_msg), "expected error message")) { in test_cb_refs()
A Dalign.c637 start = strstr(bpf_vlog_copy, main_pass_start); in do_test_single()
679 while (!(p = strstr(line_ptr, m.reg)) || !strstr(p, m.match)) { in do_test_single()
686 if (cur_line != m.line || !line_ptr || !(p = strstr(line_ptr, m.reg)) || !strstr(p, m.match)) { in do_test_single()
/tools/testing/selftests/powerpc/security/
A Dspectre_v2.c105 if (strstr(buf, "Vulnerable")) in get_sysfs_state()
107 else if (strstr(buf, "Not affected")) in get_sysfs_state()
109 else if (strstr(buf, "Indirect branch serialisation (kernel only)")) in get_sysfs_state()
111 else if (strstr(buf, "Indirect branch cache disabled")) in get_sysfs_state()
113 else if (strstr(buf, "Software count cache flush (hardware accelerated)")) in get_sysfs_state()
115 else if (strstr(buf, "Software count cache flush")) in get_sysfs_state()
117 else if (strstr(buf, "Branch predictor state flush")) in get_sysfs_state()
/tools/testing/selftests/lsm/
A Dcommon.c81 if (strstr(names, "selinux")) in attr_lsm_count()
83 if (strstr(names, "smack")) in attr_lsm_count()
85 if (strstr(names, "apparmor")) in attr_lsm_count()
/tools/verification/rv/src/
A Din_kernel.c77 end = strstr(cursor, "\n"); in __ikm_find_monitor_name()
81 cursor = strstr(out_name, ":"); in __ikm_find_monitor_name()
86 if (strstr(available_monitors, container)) in __ikm_find_monitor_name()
175 *strstr(desc, "\n") = '\0'; in ikm_read_desc()
191 nested_name = strstr(name, ":"); in ikm_fill_monitor_definition()
284 start = strstr(reactors, "["); in ikm_get_current_reactor()
290 end = strstr(start, "]"); in ikm_get_current_reactor()
323 has_id = !!strstr(format, "REC->id"); in ikm_has_id()
353 next = strstr(curr, "\n"); in ikm_list_monitors()
652 end = strstr(start, "\n"); in ikm_usage_print_reactors()
[all …]
/tools/perf/arch/x86/annotate/
A Dinstructions.c125 if (strstr(ins2, "jmp")) in amd__ins_is_fused()
130 (strstarts(ins1, "cmp") && !strstr(ins1, "xchg")))) { in amd__ins_is_fused()
153 if ((strstr(ins1, "cmp") && !strstr(ins1, "xchg")) || in intel__ins_is_fused()
154 strstr(ins1, "test")) { in intel__ins_is_fused()
159 if ((strstr(ins1, "cmp") && !strstr(ins1, "xchg")) || in intel__ins_is_fused()
160 strstr(ins1, "test") || in intel__ins_is_fused()
161 strstr(ins1, "add") || in intel__ins_is_fused()
162 strstr(ins1, "sub") || in intel__ins_is_fused()
163 strstr(ins1, "and") || in intel__ins_is_fused()
164 strstr(ins1, "inc") || in intel__ins_is_fused()
[all …]
/tools/testing/selftests/filesystems/overlayfs/
A Dset_layers_via_fds.c135 if (strstr(haystack, "workdir=/tmp/w")) in TEST_F()
137 if (strstr(haystack, "upperdir=/tmp/u")) in TEST_F()
139 if (strstr(haystack, "lowerdir+=/tmp/l1")) in TEST_F()
141 if (strstr(haystack, "lowerdir+=/tmp/l2")) in TEST_F()
143 if (strstr(haystack, "lowerdir+=/tmp/l3")) in TEST_F()
145 if (strstr(haystack, "lowerdir+=/tmp/l4")) in TEST_F()
147 if (strstr(haystack, "datadir+=/tmp/d1")) in TEST_F()
149 if (strstr(haystack, "datadir+=/tmp/d2")) in TEST_F()
151 if (strstr(haystack, "datadir+=/tmp/d3")) in TEST_F()
689 if (strstr(haystack, "workdir=/tmp/w")) in TEST_F()
[all …]
/tools/perf/arch/x86/util/
A Dtsc.c41 char *pos = strstr(line + 11, " @ "); in cpuinfo_tsc_freq()
72 if (!strstr(vendor, "Intel")) in arch_get_tsc_freq()
A Dkvm-stat.c203 if (strstr(cpuid, "Intel")) { in cpu_isa_init()
206 } else if (strstr(cpuid, "AMD") || strstr(cpuid, "Hygon")) { in cpu_isa_init()
/tools/testing/selftests/mseal_system_mappings/
A Dsysmap_is_sealed.c26 if (strstr(line, name)) in has_mapping()
39 if (strstr(line, MSEAL_FLAGS)) in mapping_is_sealed()
/tools/testing/selftests/x86/
A Dtest_mremap_vdso.c70 if (strstr(line, VDSO_NAME)) in vdso_sealed()
74 if (strstr(line, MSEAL_FLAGS)) in vdso_sealed()
/tools/lib/bpf/
A Dlibbpf_probes.c68 p = strstr(info->version, "Debian "); in get_debian_kernel_version()
198 if (exp_msg && !strstr(buf, exp_msg)) in probe_prog_load()
461 if (ret == 0 && (strstr(buf, "invalid func ") || strstr(buf, "unknown func ") || in libbpf_probe_bpf_helper()
462 strstr(buf, "program of this type cannot use helper "))) in libbpf_probe_bpf_helper()
/tools/testing/selftests/proc/
A Dproc-2-is-kthread.c50 assert(strstr(buf, "Kthread:\t1\n")); in main()
A Dproc-self-isnt-kthread.c34 assert(strstr(buf, "Kthread:\t0\n")); in main()
/tools/testing/selftests/cgroup/lib/
A Dcgroup_util.c133 return strstr(buf, needle) ? 0 : -1; in cg_read_strstr()
164 ptr = strstr(buf, key); in cg_read_key_long()
243 if (!controller || !strstr(options, controller)) in cg_find_root()
255 *nsdelegate = !!strstr(options, "nsdelegate"); in cg_find_root()
522 return strstr(buf, option) != NULL; in proc_mount_contains()
547 return strstr(buf, needle) ? 0 : -1; in proc_read_strstr()
/tools/testing/selftests/wireguard/qemu/
A Dinit.c140 start = strstr(line, "wireguard: "); in kmod_selftests()
145 if (strstr(start, "www.wireguard.com")) in kmod_selftests()
147 pass = strstr(start, ": pass"); in kmod_selftests()
/tools/perf/ui/browsers/
A Dscripts.c120 p = strstr(p, "-e"); in check_ev_match()
204 if (strstr(lang_dirent->d_name, "perl")) in find_scripts()
208 if (strstr(lang_dirent->d_name, "python")) in find_scripts()
227 if (strstr(script_dirent->d_name, "top.")) in find_scripts()
/tools/testing/selftests/powerpc/pmu/
A Dlib.c160 if (strstr(name, "libc")) { in parse_proc_maps()
163 } else if (strstr(name, "[vdso]")) { in parse_proc_maps()
/tools/testing/selftests/alsa/
A Dutimer-test.c82 if (strstr(s, "Timer has started")) in parse_timer_output()
84 if (strstr(s, "Total ticks count")) in parse_timer_output()
/tools/thermal/tmon/
A Dsysfs.c172 if (strstr(d_name, "trip_point") && in find_tzone_tp()
173 strstr(d_name, "temp")) { in find_tzone_tp()
316 temp_str = strstr(namelist[n]->d_name, "cdev"); in scan_tzones()
368 if (strstr(ptdata.cdi[k].type, ctrl_cdev)) { in scan_cdevs()
402 if (strstr(namelist[n]->d_name, CDEV)) { in probe_thermal_sysfs()
416 } else if (strstr(namelist[n]->d_name, TZONE)) { in probe_thermal_sysfs()
/tools/objtool/
A Dbuiltin-check.c56 if (!str || strstr(str, "jump_label")) { in parse_hacks()
61 if (!str || strstr(str, "noinstr")) { in parse_hacks()
66 if (!str || strstr(str, "skylake")) { in parse_hacks()

Completed in 31 milliseconds

123456