| /tools/perf/arch/mips/annotate/ |
| A D | instructions.c | 8 if (!strncmp(name, "bal", 3) || in mips__associate_ins_ops() 9 !strncmp(name, "bgezal", 6) || in mips__associate_ins_ops() 10 !strncmp(name, "bltzal", 6) || in mips__associate_ins_ops() 11 !strncmp(name, "bgtzal", 6) || in mips__associate_ins_ops() 12 !strncmp(name, "blezal", 6) || in mips__associate_ins_ops() 13 !strncmp(name, "beqzal", 6) || in mips__associate_ins_ops() 15 !strncmp(name, "bgtzl", 5) || in mips__associate_ins_ops() 16 !strncmp(name, "bltzl", 5) || in mips__associate_ins_ops() 20 !strncmp(name, "beql", 4) || in mips__associate_ins_ops() 21 !strncmp(name, "bnel", 4) || in mips__associate_ins_ops() [all …]
|
| /tools/perf/arch/riscv64/annotate/ |
| A D | instructions.c | 8 if (!strncmp(name, "jal", 3) || in riscv64__associate_ins_ops() 9 !strncmp(name, "jr", 2) || in riscv64__associate_ins_ops() 10 !strncmp(name, "call", 4)) in riscv64__associate_ins_ops() 12 else if (!strncmp(name, "ret", 3)) in riscv64__associate_ins_ops()
|
| /tools/perf/arch/s390/util/ |
| A D | header.c | 61 if (!strncmp(line, SYSINFO_MANU, strlen(SYSINFO_MANU))) { in get_cpuid() 70 if (!strncmp(line, SYSINFO_TYPE, strlen(SYSINFO_TYPE))) { in get_cpuid() 79 if (!strncmp(line, SYSINFO_MODEL, strlen(SYSINFO_MODEL))) { in get_cpuid() 104 if (strncmp(line, SRVLVL_CPUMF, strlen(SRVLVL_CPUMF))) in get_cpuid() 109 if (!strncmp(cp, SRVLVL_VERSION, in get_cpuid() 116 if (!strncmp(cp, SRVLVL_AUTHORIZATION, in get_cpuid()
|
| /tools/power/cpupower/utils/idle_monitor/ |
| A D | cpuidle_sysfs.c | 82 if (!strncmp(tmp, "NHM-", 4)) { in fix_up_intel_idle_driver_name() 94 } else if (!strncmp(tmp, "SNB-", 4)) { in fix_up_intel_idle_driver_name() 109 } else if (!strncmp(tmp, "ATM-", 4)) { in fix_up_intel_idle_driver_name() 130 if (!strncmp(tmp, "stop0_lite", CSTATE_NAME_LEN)) in map_power_idle_state_name() 132 else if (!strncmp(tmp, "stop1_lite", CSTATE_NAME_LEN)) in map_power_idle_state_name() 134 else if (!strncmp(tmp, "stop2_lite", CSTATE_NAME_LEN)) in map_power_idle_state_name()
|
| /tools/perf/arch/loongarch/annotate/ |
| A D | instructions.c | 112 !strncmp(name, "beq", 3) || in loongarch__associate_ins_ops() 113 !strncmp(name, "bne", 3) || in loongarch__associate_ins_ops() 114 !strncmp(name, "blt", 3) || in loongarch__associate_ins_ops() 115 !strncmp(name, "bge", 3) || in loongarch__associate_ins_ops() 116 !strncmp(name, "bltu", 4) || in loongarch__associate_ins_ops() 117 !strncmp(name, "bgeu", 4)) in loongarch__associate_ins_ops()
|
| /tools/power/cpupower/utils/helpers/ |
| A D | cpuid.c | 71 if (!strncmp(value, "processor\t: ", 12)) in get_cpu_info() 78 if (!strncmp(value, "vendor_id", 9)) { in get_cpu_info() 84 } else if (!strncmp(value, "cpu family\t: ", 13)) { in get_cpu_info() 87 } else if (!strncmp(value, "model\t\t: ", 9)) { in get_cpu_info() 90 } else if (!strncmp(value, "stepping\t: ", 10)) { in get_cpu_info()
|
| /tools/perf/util/ |
| A D | env.c | 285 if (!strncmp(arch, "x86_64", 6) || !strncmp(arch, "aarch64", 7) || in perf_env__init_kernel_mode() 286 !strncmp(arch, "arm64", 5) || !strncmp(arch, "mips64", 6) || in perf_env__init_kernel_mode() 287 !strncmp(arch, "parisc64", 8) || !strncmp(arch, "riscv64", 7) || in perf_env__init_kernel_mode() 288 !strncmp(arch, "s390x", 5) || !strncmp(arch, "sparc64", 7)) in perf_env__init_kernel_mode() 574 if (!strncmp(arch, "aarch64", 7) || !strncmp(arch, "arm64", 5)) in normalize_arch() 578 if (!strncmp(arch, "s390", 4)) in normalize_arch() 580 if (!strncmp(arch, "parisc", 6)) in normalize_arch() 582 if (!strncmp(arch, "powerpc", 7) || !strncmp(arch, "ppc", 3)) in normalize_arch() 584 if (!strncmp(arch, "mips", 4)) in normalize_arch() 588 if (!strncmp(arch, "loongarch", 9)) in normalize_arch() [all …]
|
| A D | map.h | 247 return strncmp(name, "bpf_trampoline_", sizeof("bpf_trampoline_") - 1) == 0 || in is_bpf_image() 248 strncmp(name, "bpf_dispatcher_", sizeof("bpf_dispatcher_") - 1) == 0; in is_bpf_image() 254 !strncmp(filename, "/dev/zero", sizeof("/dev/zero") - 1) || in is_anon_memory() 255 !strncmp(filename, "/anon_hugepage", sizeof("/anon_hugepage") - 1); in is_anon_memory() 260 return !strncmp(filename, "[stack", 6) || in is_no_dso_memory() 261 !strncmp(filename, "/SYSV", 5) || in is_no_dso_memory()
|
| A D | pmus.c | 97 int ret = strncmp(lhs_pmu_name, rhs_pmu_name, in pmu_name_cmp() 178 if (!strncmp(name, "hwmon_", 6)) in perf_pmus__find() 180 else if (!strncmp(name, "drm_", 4)) in perf_pmus__find() 387 if (strlen(event) > 4 && strncmp("drm-", event, 4) == 0) in perf_pmus__scan_for_event() 428 } else if (strlen(wildcard) >= 4 && strncmp("drm_", wildcard, 4) == 0) { in perf_pmus__scan_matching_wildcard() 430 } else if (strlen(wildcard) >= 5 && strncmp("hwmon", wildcard, 5) == 0) { in perf_pmus__scan_matching_wildcard() 469 !strncmp(last_pmu_name, pmu->name ?: "", pmu_name_len)) in perf_pmus__scan_skip_duplicates() 481 !strncmp(last_pmu_name, pmu->name ?: "", pmu_name_len)) in perf_pmus__scan_skip_duplicates() 497 if (!strncmp(pmu->name, "uncore_", 7)) { in perf_pmus__pmu_for_pmu_filter() 502 if (!strncmp(pmu->name, "cpu_", 4)) { in perf_pmus__pmu_for_pmu_filter()
|
| A D | find-map.c | 24 if (!strncmp(&line[m], name, strlen(name))) in find_map()
|
| /tools/perf/arch/riscv/util/ |
| A D | header.c | 52 if (!strncmp(line, CPUINFO_MVEN, strlen(CPUINFO_MVEN))) { in _get_cpuid() 56 } else if (!strncmp(line, CPUINFO_MARCH, strlen(CPUINFO_MARCH))) { in _get_cpuid() 60 } else if (!strncmp(line, CPUINFO_MIMP, strlen(CPUINFO_MIMP))) { in _get_cpuid()
|
| /tools/tracing/rtla/src/ |
| A D | actions.c | 165 if (strlen(token) > 5 && strncmp(token, "file=", 5) == 0) { in actions_parse() 181 if (strlen(token) > 4 && strncmp(token, "num=", 4) == 0) { in actions_parse() 183 } else if (strlen(token) > 4 && strncmp(token, "pid=", 4) == 0) { in actions_parse() 184 if (strncmp(token + 4, "parent", 7) == 0) in actions_parse() 204 if (strlen(token) > 8 && strncmp(token, "command=", 8) == 0) in actions_parse()
|
| /tools/testing/selftests/powerpc/benchmarks/ |
| A D | null_syscall.c | 84 if (strncmp(line, "timebase", 8) == 0) { in get_proc_frequency() 93 if (((strncmp(line, "clock", 5) == 0) || in get_proc_frequency() 94 (strncmp(line, "cpu MHz", 7) == 0))) { in get_proc_frequency()
|
| /tools/perf/arch/powerpc/util/ |
| A D | sym-handling.c | 25 if (strlen(sym) >= 3 && !strncmp(sym, "SyS", 3)) in arch__choose_best_symbol() 27 if (strlen(sym) >= 10 && !strncmp(sym, "compat_SyS", 10)) in arch__choose_best_symbol() 55 return strncmp(namea, nameb, n); in arch__compare_symbol_names_n()
|
| /tools/testing/selftests/arm64/fp/ |
| A D | kernel-test.c | 149 if (strncmp(buf, "digestsize", strlen("digestsize")) == 0) in create_socket() 152 if (strncmp(buf, "name", strlen("name")) == 0) in create_socket() 155 if (strncmp(buf, "driver", strlen("driver")) == 0) in create_socket() 158 if (strncmp(buf, "type", strlen("type")) == 0) in create_socket() 159 if (strncmp(c, "shash", strlen("shash")) == 0) in create_socket()
|
| /tools/testing/selftests/tty/ |
| A D | tty_tstamp_update.c | 21 if (strncmp(tty, "/dev/tty", MIN_TTY_PATH_LEN) == 0 || in tty_valid() 22 strncmp(tty, "/dev/pts", MIN_TTY_PATH_LEN) == 0) in tty_valid()
|
| /tools/testing/selftests/powerpc/dexcr/ |
| A D | chdexcr.c | 69 if (!strncmp(option, clear_prefix, strlen(clear_prefix))) { in apply_option() 72 } else if (!strncmp(option, set_prefix, strlen(set_prefix))) { in apply_option()
|
| /tools/bpf/ |
| A D | bpf_asm.c | 35 if (!strncmp("-c", argv[i], 2)) { in main()
|
| /tools/usb/usbip/src/ |
| A D | usbip_bind.c | 89 if (!strncmp(bDevClass, "09", strlen(bDevClass))) { in unbind_other() 101 if (!strncmp(USBIP_HOST_DRV_NAME, driver, in unbind_other()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | metadata.c | 83 if (CHECK(strncmp(obj->rodata->bpf_metadata_a, "foo", in test_metadata_unused() 117 if (CHECK(strncmp(obj->rodata->bpf_metadata_a, "bar", in test_metadata_used()
|
| A D | ptr_untrusted.c | 31 err = strncmp(skel->bss->tp_name, TP_NAME, strlen(TP_NAME)); in serial_test_ptr_untrusted()
|
| /tools/perf/tests/ |
| A D | topology.c | 101 if (!env->cpu && strncmp(env->arch, "s390", 4) && strncmp(env->arch, "aarch64", 7)) in check_cpu_topology() 110 if (!strncmp(env->arch, "ppc64le", 7)) { in check_cpu_topology()
|
| /tools/testing/selftests/proc/ |
| A D | proc-self-syscall.c | 54 if (strncmp(buf1, buf2, strlen(buf1)) != 0) in main()
|
| /tools/perf/dlfilters/ |
| A D | dlfilter-show-cycles.c | 40 if (!strncmp(event, "instructions", 12)) in event_entry() 42 if (!strncmp(event, "branches", 8)) in event_entry()
|
| /tools/testing/selftests/ublk/trace/ |
| A D | seq_io.bt | 12 if ((int64)args.dev == $1 && !strncmp(args.rwbs, str($2), $3)) {
|