| /tools/perf/dlfilters/ |
| A D | dlfilter-show-cycles.c | 19 static __u64 cycles[MAX_CPU][MAX_ENTRY]; variable 30 __u64 cycles[MAX_ENTRY]; member 77 e->cycles[pos] += cnt; in add_entry() 92 cycles[cpu][pos] += sample->cyc_cnt; in filter_event_early() 98 static void print_vals(__u64 cycles, __u64 delta) in print_vals() argument 101 printf("%10llu %10llu ", (unsigned long long)cycles, (unsigned long long)delta); in print_vals() 103 printf("%10llu %10s ", (unsigned long long)cycles, ""); in print_vals() 115 print_vals(cycles[cpu][pos], cycles[cpu][pos] - cycles_rpt[cpu][pos]); in filter_event() 116 cycles_rpt[cpu][pos] = cycles[cpu][pos]; in filter_event() 124 print_vals(e->cycles[pos], e->cycles[pos] - e->cycles_rpt[pos]); in filter_event() [all …]
|
| /tools/perf/Documentation/ |
| A D | perf.data-directory-format.txt | 51 Samples for 'cycles' event do not have CPU attribute set. Skipping 'cpu' field. 55 … perf 15316 2060795.480902: 1 cycles: ffffffffa2caa548 native_write_msr+0x8 (vmlinux) 56 … perf 15316 2060795.480906: 1 cycles: ffffffffa2caa548 native_write_msr+0x8 (vmlinux) 57 … perf 15316 2060795.480908: 7 cycles: ffffffffa2caa548 native_write_msr+0x8 (vmlinux) 58 … perf 15316 2060795.480910: 119 cycles: ffffffffa2caa54a native_write_msr+0xa (vmlinux) 59 …perf 15316 2060795.480912: 2109 cycles: ffffffffa2c9b7b0 native_apic_msr_write+0x0 (vmlinux) 60 …perf 15316 2060795.480914: 37606 cycles: ffffffffa2f121fe perf_event_addr_filters_exec+0x2e … 61 …uname 15316 2060795.480924: 588287 cycles: ffffffffa303a56d page_counter_try_charge+0x6d (vml… 62 … uname 15316 2060795.481067: 2261945 cycles: ffffffffa301438f kmem_cache_free+0x4f (vmlinux) 63 …uname 15316 2060795.481643: 2172167 cycles: 7f1a48c393c0 _IO_un_link+0x0 (/lib/x86_64-linu…
|
| A D | intel-hybrid.txt | 45 For example, count the 'cycles' event on core cpus. 47 perf stat -e cpu_core/cycles/ 122 6,744,979 cpu_core/cycles/ 123 1,965,552 cpu_atom/cycles/ 125 The first 'cycles' is core event, the second 'cycles' is atom event. 135 perf stat -e cycles \-- taskset -c 16 ./triad_loop 182 cpu_core/cycles/, 183 cpu_atom/cycles/, 195 perf stat -e cpu_core/cycles/ 196 perf stat -e cpu_atom/cycles/ [all …]
|
| A D | perf-daemon.txt | 120 [session-cycles] 136 [603350:cycles] perf record -m 10M -e cycles --overwrite --switch-output -a 149 [603350:cycles] perf record -m 10M -e cycles --overwrite --switch-output -a 150 base: /opt/perfdata/session-cycles 151 output: /opt/perfdata/session-cycles/output 153 ack: /opt/perfdata/session-cycles/ack 173 OK cycles 179 # perf daemon signal --session cycles 180 signal 12 sent to session 'cycles [603452]' 182 # tail -2 /opt/perfdata/session-cycles/output [all …]
|
| A D | tips.txt | 2 Sample related events with: perf record -e '{cycles,instructions}:S' 23 Show estimate cycles per function and IPC in annotate use perf record -b ... ; perf report --total-… 37 To only collect call graph on one event use perf record -e cpu/cpu-cycles,callgraph=1/,branches ; p… 38 To set sampling period of individual events use perf record -e cpu/cpu-cycles,period=100001/,cpu/br… 39 To group events which need to be collected together for accuracy use {}: perf record -e {cycles,bra… 40 To compute metrics for samples use perf record -e '{cycles,instructions}' ... ; perf script -F +met… 48 To collect Processor Trace with samples use perf record -e '{intel_pt//,cycles}' ; perf script --ca… 60 To show IPC for sampling periods use perf record -e '{cycles,instructions}:S' and then browse conte…
|
| /tools/testing/selftests/kvm/include/riscv/ |
| A D | arch_timer.h | 22 #define cycles_to_usec(cycles) \ argument 23 ((uint64_t)(cycles) * 1000000 / (timer_freq)) 58 static inline void __delay(uint64_t cycles) in __delay() argument 62 while ((timer_get_cycles() - start) < cycles) in __delay()
|
| /tools/perf/tests/shell/ |
| A D | stat+shadow_stat.sh | 13 perf stat -a -e cycles sleep 1 2>&1 | grep -e cpu_core && exit 2 17 perf stat -a --no-big-num -e cycles,instructions sleep 1 2>&1 | \ 18 grep -e cycles -e instructions | \ 56 perf stat -a -A --no-big-num -e cycles,instructions sleep 1 2>&1 | \
|
| A D | stat+csv_summary.sh | 11 perf stat -e cycles -x' ' -I1000 --interval-count 1 --summary 2>&1 | \ 24 perf stat -e cycles -x' ' -I1000 --interval-count 1 --summary --no-csv-summary 2>&1 | \
|
| A D | stat+std_output.sh | 14 …k context-switches cpu-migrations page-faults stalled-cycles-frontend stalled-cycles-backend cycle…
|
| A D | record_lbr.sh | 36 if ! perf record -e cycles --call-graph lbr -o "${perfdata}" perf test -w thloop 68 if ! perf record -e cycles $branch_flags -o "${perfdata}" perf test -w thloop 71 perf record -e cycles $branch_flags -o "${perfdata}" perf test -w thloop || true
|
| /tools/perf/util/ |
| A D | parse-events.l | 339 cpu-cycles|cycles { return hw_term(yyscanner, PERF_COUNT_HW_CPU_CYCLES); } 340 stalled-cycles-frontend|idle-cycles-frontend { return hw_term(yyscanner, PERF_COUNT_HW_STALLED_CYCL… 341 stalled-cycles-backend|idle-cycles-backend { return hw_term(yyscanner, PERF_COUNT_HW_STALLED_CYCLES… 347 bus-cycles { return hw_term(yyscanner, PERF_COUNT_HW_BUS_CYCLES); } 348 ref-cycles { return hw_term(yyscanner, PERF_COUNT_HW_REF_CPU_CYCLES); } 394 cpu-cycles|cycles { return sym(yyscanner, PERF_COUNT_HW_CPU_CYCLES); } 395 stalled-cycles-frontend|idle-cycles-frontend { return sym(yyscanner, PERF_COUNT_HW_STALLED_CYCLES_F… 396 stalled-cycles-backend|idle-cycles-backend { return sym(yyscanner, PERF_COUNT_HW_STALLED_CYCLES_BAC… 402 bus-cycles { return sym(yyscanner, PERF_COUNT_HW_BUS_CYCLES); } 403 ref-cycles { return sym(yyscanner, PERF_COUNT_HW_REF_CPU_CYCLES); }
|
| A D | block-info.c | 111 bi->cycles = ch->cycles; in init_block_info() 135 u64 cycles = 0; in block_info__process_sym() local 161 cycles += bi->cycles_aggr / bi->num_aggr; in block_info__process_sym() 173 *block_cycles_aggr += cycles; in block_info__process_sym() 244 static void cycles_string(u64 cycles, char *buf, int size) in cycles_string() argument 246 if (cycles >= 1000000) in cycles_string() 248 else if (cycles >= 1000) in cycles_string() 249 scnprintf(buf, size, "%.1fK", (double)cycles / 1000.0); in cycles_string() 251 scnprintf(buf, size, "%1d", cycles); in cycles_string() 455 block_info__process_sym(he, bh, &block_report->cycles, in process_block_report() [all …]
|
| A D | block-info.h | 15 u64 cycles; member 48 u64 cycles; member
|
| A D | annotate.c | 183 if (cycles && cycles < ch[offset].cycles_min) in __symbol__account_cycles() 208 ch[offset].cycles += cycles; in __symbol__account_cycles() 383 offset, cycles, in symbol__account_cycles() 401 if (!cycles) in addr_map_symbol__account_cycles() 492 if (al->cycles && al->cycles->ipc == 0.0) { in annotation__count_and_fill() 532 al->cycles = zalloc(sizeof(*al->cycles)); in annotation__compute_ipc() 1957 if (al->cycles->ipc == 0.0 && al->cycles->avg == 0) in __annotation_line__write() 1994 if (al->cycles && al->cycles->ipc) in __annotation_line__write() 2002 if (al->cycles && al->cycles->avg) in __annotation_line__write() 2013 if (al->cycles) { in __annotation_line__write() [all …]
|
| /tools/virtio/ringtest/ |
| A D | main.h | 21 static inline void wait_cycles(unsigned long long cycles) in wait_cycles() argument 26 while (__rdtsc() - t < cycles) {} in wait_cycles() 33 static inline void wait_cycles(unsigned long long cycles) in wait_cycles() argument 35 asm volatile("0: brctg %0,0b" : : "d" (cycles)); in wait_cycles() 43 static inline void wait_cycles(unsigned long long cycles) in wait_cycles() argument
|
| /tools/testing/selftests/kvm/include/arm64/ |
| A D | delay.h | 11 static inline void __delay(uint64_t cycles) in __delay() argument 16 while ((timer_get_cntct(timer) - start) < cycles) in __delay()
|
| /tools/power/cpupower/bench/ |
| A D | benchmark.c | 113 " for %lius\n", _round + 1, config->cycles, in start_benchmark() 125 for (cycle = 0; cycle < config->cycles; cycle++) { in start_benchmark() 139 performance_time / config->cycles); in start_benchmark() 151 for (cycle = 0; cycle < config->cycles; cycle++) { in start_benchmark() 169 powersave_time / config->cycles); in start_benchmark()
|
| A D | README-BENCH | 35 will be run X time in a row (cycles): 39 cycles=20 50 25ms load/sleep time repeated 20 times (cycles). 51 50ms load/sleep time repeated 20 times (cycles). 53 100ms load/sleep time repeated 20 times (cycles). 83 But if ondemand always kicks in in the middle of the load sleep cycles, it 116 -n, --cycles=<int> load/sleep cycles to get an average value to compare
|
| A D | system.c | 133 sleep_time += 2 * config->cycles * in prepare_user() 135 load_time += 2 * config->cycles * in prepare_user()
|
| /tools/perf/tests/shell/attr/ |
| A D | README | 52 perf record -e '{cycles,instructions}' kill (test-record-group1) 53 perf record -e '{cycles/period=1/,instructions/period=2/}:S' kill (test-record-group2) 54 perf record -e '{cycles,cache-misses}:S' kill (test-record-group-sampling1) 55 perf record -c 10000 -e '{cycles,cache-misses}:S' kill (test-record-group-sampling2) 60 perf record -c 1 --pfm-events=cycles:period=2 (test-record-pfm-period) 65 perf stat -e cycles kill (test-stat-basic) 70 perf stat -e '{cycles,instructions}' kill (test-stat-group1) 71 perf stat -i -e cycles kill (test-stat-no-inherit)
|
| A D | test-record-group-sampling1 | 3 args = --no-bpf-event -e '{cycles,cache-misses}:S' kill >/dev/null 2>&1 11 # cycles
|
| A D | test-record-group-sampling2 | 3 args = --no-bpf-event -c 10000 -e '{cycles,cache-misses}:S' kill >/dev/null 2>&1 11 # cycles
|
| A D | test-stat-basic | 3 args = -e cycles kill >/dev/null 2>&1
|
| /tools/testing/selftests/powerpc/pmu/ebb/ |
| A D | cycles_test.c | 15 int cycles(void) in cycles() function 57 return test_harness(cycles, "cycles"); in main()
|
| /tools/lib/perf/Documentation/ |
| A D | libperf-sampling.txt | 34 It requires root access, because it uses hardware cycles event. 36 The `sampling.c` example profiles/samples all CPUs with hardware cycles, in a 80 Once the setup is complete we start by defining cycles event using the `struct perf_event_attr`: 107 Now we create libperf's event list, which will serve as holder for the cycles event: 118 We create libperf's event for the cycles attribute we defined earlier and add it to the list: 124 56 fprintf(stderr, "failed to create cycles\n"); 158 From this moment the cycles event is sampling.
|