| /tools/perf/tests/shell/ |
| A D | ftrace.sh | 13 output=$(mktemp /tmp/__perf_test.ftrace.XXXXXX) 16 rm -f "${output}" 32 perf ftrace -F > "${output}" 34 sleep_functions=$(grep 'sys_.*sleep$' "${output}") 42 perf ftrace trace --graph-opts depth=5 sleep 0.1 > "${output}" 44 grep "^#" "${output}" 45 grep -F 'sleep()' "${output}" 48 if grep -q "${FN}" "${output}"; then 63 grep "^#" "${output}" 64 grep "###" "${output}" [all …]
|
| A D | stat_all_pmu.sh | 19 output=$(perf stat -e "$p" true 2>&1) 21 if echo "$output" | grep -q "$p" 24 if [ $stat_result -eq 0 ] && ! echo "$output" | grep -q "<not supported>" 29 elif echo "$output" | grep -q "<not supported>" 34 elif echo "$output" | grep -q "No permission to enable" 39 elif echo "$output" | grep -q "Bad event name" 43 echo "$output" 49 …if echo "$output" | grep -q "Access to performance monitoring and observability operations is limi… 58 output=$(perf stat -e "$p" perf bench internals synthesize 2>&1) 59 if echo "$output" | grep -q "$p" [all …]
|
| A D | trace_btf_general.sh | 30 output="$(perf trace --sort-events -e renameat* --max-events=1 -- mv ${file1} ${file2} 2>&1)" 31 …if ! echo "$output" | grep -q -E "^mv/[0-9]+ renameat(2)?\(.*, \"${file1}\", .*, \"${file2}\", .*\… 33 printf "String augmentation test failed, output:\n$output\n" 41 output="$(perf trace --sort-events -e write --max-events=1 -- echo "${buffer}" 2>&1)" 42 if ! echo "$output" | grep -q -E "^echo/[0-9]+ write\([0-9]+, ${buffer}.*, [0-9]+\) += +[0-9]+$" 44 printf "Buffer augmentation test failed, output:\n$output\n" 51 output="$(perf trace --sort-events -e clock_nanosleep --force-btf --max-events=1 -- sleep 1 2>&1)" 52 …if ! echo "$output" | grep -q -E "^sleep/[0-9]+ clock_nanosleep\(0, 0, \{1,.*\}, 0x[0-9a-f]+\) += … 54 printf "BTF struct augmentation test failed, output:\n$output\n"
|
| A D | trace_btf_enum.sh | 36 output="$(perf trace -e $syscall $TESTPROG 2>&1)" 37 …if echo "$output" | grep -q -E ".*landlock_add_rule\(ruleset_fd: 11, rule_type: (LANDLOCK_RULE_PAT… 41 printf "[syscall failure] Failed to trace syscall $syscall, output:\n$output\n" 48 output="$(perf trace -e $non_syscall --max-events=1 2>&1)" 49 if echo "$output" | grep -q -E '.*timer:hrtimer_.*\(.*mode: HRTIMER_MODE_.*\)$' 53 printf "[tracepoint failure] Failed to trace tracepoint $non_syscall, output:\n$output\n"
|
| A D | drm_pmu.sh | 7 output=$(mktemp /tmp/perf.drm_pmu.XXXXXX.txt) 10 rm -f "${output}" 60 perf stat -e "$p" --pid=$$ true > "$output" 2>&1 61 if ! grep -q "$p" "$output" 64 cat "$output"
|
| /tools/perf/scripts/python/ |
| A D | powerpc-hcalls.py | 27 output = {} variable 164 for opcode in output: 166 time = output[opcode]['time'] 167 cnt = output[opcode]['cnt'] 168 min_t = output[opcode]['min'] 169 max_t = output[opcode]['max'] 178 if (opcode in output): 180 output[opcode]['cnt'] += 1 182 output[opcode]['min'] = diff 184 output[opcode]['max'] = diff [all …]
|
| /tools/perf/util/ |
| A D | zstd.c | 37 ZSTD_outBuffer output; in zstd_compress_stream_to_records() local 61 output = (ZSTD_outBuffer){ dst, (dst_size > max_record_size) ? in zstd_compress_stream_to_records() 63 ret = ZSTD_compressStream(data->cstream, &output, &input); in zstd_compress_stream_to_records() 64 ZSTD_flushStream(data->cstream, &output); in zstd_compress_stream_to_records() 71 size = output.pos; in zstd_compress_stream_to_records() 86 ZSTD_outBuffer output = { dst, dst_size, 0 }; in zstd_decompress_stream() local 103 ret = ZSTD_decompressStream(data->dstream, &output, &input); in zstd_decompress_stream() 106 src_size, output.size, dst_size, ZSTD_getErrorName(ret)); in zstd_decompress_stream() 109 output.dst = dst + output.pos; in zstd_decompress_stream() 110 output.size = dst_size - output.pos; in zstd_decompress_stream() [all …]
|
| A D | stat-display.c | 260 FILE *output = config->output; in print_aggr_id_std() local 313 FILE *output = config->output; in print_aggr_id_csv() local 723 FILE *output = config->output; in print_counter_value_std() local 747 FILE *output = config->output; in print_counter_value_csv() local 990 FILE *output = config->output; in print_counter_aggrdata() local 1078 FILE *output = config->output; in print_metric_end() local 1307 FILE *output = config->output; in print_header_interval_std() local 1353 FILE *output = config->output; in print_header_std() local 1472 FILE *output = config->output; in print_footer() local 1510 fprintf(output, in print_footer() [all …]
|
| A D | demangle-cxx.cpp | 41 char *output; in cxx_demangle_sym() 44 output = abi::__cxa_demangle(str, /*output_buffer=*/NULL, /*length=*/NULL, &status); in cxx_demangle_sym() 45 return output; in cxx_demangle_sym()
|
| /tools/power/cpupower/bench/ |
| A D | main.c | 82 if (config->output != NULL) in main() 83 fclose(config->output); in main() 85 config->output = prepare_output(optarg); in main() 87 if (config->output == NULL) in main() 114 if (config->output != NULL) in main() 115 fclose(config->output); in main() 149 if (config->output != NULL) in main() 150 fclose(config->output); in main() 182 if (config->output != stdout) in main() 183 fclose(config->output); in main()
|
| A D | parse.c | 54 FILE *output = NULL; in prepare_output() local 97 output = fopen(filename, "w+"); in prepare_output() 98 if (output == NULL) { in prepare_output() 106 fprintf(output, "#round load sleep performance powersave percentage\n"); in prepare_output() 111 return output; in prepare_output() 142 config->output = stdout; in prepare_default_config() 210 config->output = prepare_output(val); in prepare_config()
|
| A D | benchmark.c | 17 if (config->output != stdout) { \ 116 fprintf(config->output, "%u %li %li ", in start_benchmark() 138 fprintf(config->output, "%li ", in start_benchmark() 168 fprintf(config->output, "%li ", in start_benchmark() 170 fprintf(config->output, "%.3f\n", in start_benchmark() 172 fflush(config->output); in start_benchmark()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | test_veristat.c | 16 char *output; member 36 fix->output = malloc(fix->sz); in init_fixture() 42 free(fix->output); in teardown_fixture() 77 read(fix->fd, fix->output, fix->sz); in test_set_global_vars_succeeds() 119 read(fix->fd, fix->output, fix->sz); in test_set_global_vars_from_file_succeeds() 137 read(fix->fd, fix->output, fix->sz); in test_set_global_vars_out_of_range() 152 read(fix->fd, fix->output, fix->sz); in test_unsupported_ptr_array_type() 167 read(fix->fd, fix->output, fix->sz); in test_array_out_of_bounds() 182 read(fix->fd, fix->output, fix->sz); in test_array_index_not_found() 197 pread(fix->fd, fix->output, fix->sz, 0); in test_array_index_for_non_array() [all …]
|
| /tools/testing/selftests/bpf/progs/ |
| A D | for_each_hash_map_elem.c | 25 int output; member 40 data->output = 3; /* impossible path */ in check_hash_elem() 42 data->output = 4; in check_hash_elem() 44 data->output = data->input; in check_hash_elem() 70 data.output = 0; in check_percpu_elem() 72 percpu_output = data.output; in check_percpu_elem() 88 data.output = 0; in test_pkt_access() 90 hashmap_output = data.output; in test_pkt_access()
|
| A D | for_each_array_map_elem.c | 23 int output; member 32 data->output = 0; in unused_subprog() 40 data->output += *val; in check_array_elem() 65 data.output = 0; in test_pkt_access() 69 arraymap_output = data.output; in test_pkt_access()
|
| A D | for_each_multi_maps.c | 22 int output; member 32 data->output += *val; in check_map_elem() 41 data.output = 0; in test_pkt_access() 46 data_output = data.output; in test_pkt_access()
|
| /tools/build/feature/ |
| A D | test-cxa-demangle.cpp | 9 char *output = (char*)malloc(len); in main() local 12 output = abi::__cxa_demangle("FieldName__9ClassNameFd", output, &len, &status); in main() 14 printf("demangled symbol: {%s}\n", output); in main()
|
| /tools/perf/Documentation/ |
| A D | cat-texi.perl | 7 my $output = $ARGV[0]; 9 open my $tmp, '>', "$output.tmp"; 40 open $tmp, '<', "$output.tmp"; 46 unlink "$output.tmp";
|
| A D | perf-daemon.txt | 38 to produce data periodically, like with --switch-output configuration 121 run = -m 10M -e cycles --overwrite --switch-output -a 124 run = -m 20M -e sched:* --overwrite --switch-output -a 136 [603350:cycles] perf record -m 10M -e cycles --overwrite --switch-output -a 146 output: /opt/perfdata/output 151 output: /opt/perfdata/session-cycles/output 157 output: /opt/perfdata/session-sched/output 165 The 'output' file is perf record output for specific session. 182 # tail -2 /opt/perfdata/session-cycles/output 193 # tail -2 /opt/perfdata/session-cycles/output [all …]
|
| A D | perf-version.txt | 15 on the standard output. 18 compiled-in libraries are printed on the standard output. 24 standard output.
|
| /tools/testing/selftests/x86/bugs/ |
| A D | its_permutations.py | 46 def pretty_print(output): argument 68 …output = re.sub(pattern, lambda match: f"{color}{match.group(0)}{ENDC}", output, flags=re.MULTILIN… 70 print(output) 94 output, _ = t.communicate() variable 99 output = output.decode() variable 102 logs += output + "\n"
|
| /tools/testing/selftests/drivers/net/hw/ |
| A D | iou-zcrx.py | 12 output = ethtool(f"-g {cfg.ifname}", json=True)[0] 13 return (output['rx'], output['hds-thresh']) 17 output = ethtool(f"-l {cfg.ifname}").stdout 18 values = re.findall(r'Combined:\s+(\d+)', output) 23 output = ethtool(f"-X {cfg.ifname} context new start {chan} equal 1").stdout 24 values = re.search(r'New RSS context is (\d+)', output).group(1) 30 output = ethtool(f"-N {cfg.ifname} flow-type tcp6 dst-port {port} action {chan}").stdout 31 values = re.search(r'ID (\d+)', output).group(1) 36 output = ethtool(f"-N {cfg.ifname} flow-type tcp6 dst-port {port} context {ctx_id}").stdout 37 values = re.search(r'ID (\d+)', output).group(1)
|
| /tools/testing/selftests/net/ |
| A D | altnames.sh | 17 local output 23 output=$(ip -j -p link show $SHORT_NAME) 26 name=$(echo $output | jq -e -r ".[0].altnames[0]") 38 output=$(ip -j -p link show $LONG_NAME) 41 name=$(echo $output | jq -e -r ".[0].altnames[1]")
|
| /tools/testing/selftests/powerpc/vphn/ |
| A D | test-vphn.c | 368 __be32 output[VPHN_ASSOC_BUFSIZE] = { 0 }; in test_one() local 371 vphn_unpack_associativity(test->input, output); in test_one() 373 len = be32_to_cpu(output[0]); in test_one() 381 u32 val = be32_to_cpu(output[i]); in test_one()
|
| /tools/testing/selftests/kvm/x86/ |
| A D | fastops_test.c | 43 : [output]"+r"(__output), [flags]"=r"(__flags) \ 49 type_t input = __val1, input2 = __val2, output = __val2, ex_output = __val2; \ 53 guest_execute_fastop_2(KVM_FEP, insn, input, output, flags); \ 55 __GUEST_ASSERT(output == ex_output, \ 58 (uint64_t)input2, (uint64_t)output); \ 70 : [output]"+r"(__output), [flags]"=r"(__flags) \ 76 type_t output = __val2, ex_output = __val2, input = __val2; \ 81 guest_execute_fastop_cl(KVM_FEP, insn, shift, output, flags); \ 83 __GUEST_ASSERT(output == ex_output, \ 86 (uint64_t)output); \
|