Home
last modified time | relevance | path

Searched full:cyc (Results 1 – 25 of 34) sorted by relevance

12

/linux/tools/perf/tests/shell/
H A Dstat+shadow_stat.sh28 cyc=$num
33 if [ -z "$cyc" ]; then
38 res=`echo $num $cyc | awk '{printf "%.2f", $1 / $2}'`
45 echo "IPC is different: $res != $ipc ($num / $cyc)"
71 cyc=${results##* $cpu:}
72 cyc=${cyc%% *}
75 if [ -z "$cyc" ]; then
80 res=`echo $num $cyc | awk '{printf "%.2f", $1 / $2}'`
87 echo "IPC is different: $res != $ipc ($num / $cyc)"
H A Dtest_intel_pt.sh475 echo "--- Test with/without CYC ---"
476 # Check if CYC is supported
477 cyc=$(cat /sys/bus/event_source/devices/intel_pt/caps/psb_cyc)
478 if [ "${cyc}" != "1" ] ; then
479 echo "SKIP: CYC is not supported"
482 # Enable CYC
483 perf_record_no_decode -o "${perfdatafile}" -e intel_pt/cyc/u uname
484 # should get CYC packets
485 cyc_cnt=$(perf script -i "${perfdatafile}" -D 2>/dev/null | grep -c "CYC 0x")
487 echo "Failed to get CYC packe
[all...]
/linux/tools/perf/scripts/python/
H A Dstat-cpi.py56 cyc = get(time, "cycles", cpu, thread)
61 cpi = cyc/float(ins)
63 …15f: cpu %d, thread %d -> cpi %f (%d/%d)" % (time/(float(1000000000)), cpu, thread, cpi, cyc, ins))
73 # cyc = get(time, "cycles", cpu, thread)
77 # cpi = cyc/float(ins)
/linux/tools/perf/util/
H A Dtsc.c29 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc) in tsc_to_perf_time() argument
34 cyc = tc->time_cycles + in tsc_to_perf_time()
35 ((cyc - tc->time_cycles) & tc->time_mask); in tsc_to_perf_time()
37 quot = cyc >> tc->time_shift; in tsc_to_perf_time()
38 rem = cyc & (((u64)1 << tc->time_shift) - 1); in tsc_to_perf_time()
H A Dtsc.h26 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
H A Dauxtrace.h75 * (not fully accurate, since CYC packets are only emitted
/linux/drivers/pwm/
H A Dpwm-rcar.c110 u32 cyc, ph; in rcar_pwm_set_counter() local
117 cyc = (tmp << RCAR_PWMCNT_CYC0_SHIFT) & RCAR_PWMCNT_CYC0_MASK; in rcar_pwm_set_counter()
124 if (cyc == 0 || ph == 0) in rcar_pwm_set_counter()
127 rcar_pwm_write(rp, cyc | ph, RCAR_PWMCNT); in rcar_pwm_set_counter()
/linux/tools/perf/Documentation/
H A Dperf-intel-pt.txt154 If the 'cyc' config term (see config terms section below) was used, then IPC
155 and cycle events are calculated using the cycle count from CYC packets, otherwise
166 Even with the 'cyc' config term, it is possible to produce IPC information for
184 presently sampled, so IPC values for them do not appear e.g. a CYC packet with a
250 /sys/bus/event_source/devices/intel_pt/format/cyc:config:1
373 of MTC or CYC.
419 cyc Produces CYC timing packets.
421 CYC packets provide even finer grain timestamp information than
422 MTC and TSC packets. A CYC packet contains the number of CPU
423 cycles since the last CYC packet. Unlike MTC and TSC packets,
[all …]
/linux/tools/perf/arch/powerpc/util/
H A Devent.c43 return "Finish Cyc"; in arch_perf_header_entry()
47 return "Dispatch Cyc"; in arch_perf_header_entry()
/linux/tools/lib/perf/
H A Dmmap.c484 u64 cnt, cyc = 0, time_offset = 0, time_cycles = 0, time_mask = ~0ULL; in perf_mmap__read_self() local
497 cyc = read_timestamp(); in perf_mmap__read_self()
527 cyc = time_cycles + ((cyc - time_cycles) & time_mask); in perf_mmap__read_self()
529 delta = time_offset + mul_u64_u32_shr(cyc, time_mult, time_shift); in perf_mmap__read_self()
/linux/arch/arm/lib/
H A Ddelay.c40 static inline u64 cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns() argument
42 return (cyc * mult) >> shift; in cyc_to_ns()
/linux/tools/include/uapi/linux/
H A Dperf_event.h589 * u64 cyc, time_offset;
600 * cyc = rdtsc();
656 * quot = (cyc >> time_shift);
657 * rem = cyc & (((u64)1 << time_shift) - 1);
661 * Where time_offset,time_mult,time_shift and cyc are read in the
683 * cyc = (quot << time_shift) + (rem << time_shift) / time_mult;
687 * quot = cyc >> time_shift;
688 * rem = cyc & (((u64)1 << time_shift) - 1);
699 * and we must compute the 'cyc' value, as used by cap_usr_time, as:
701 * cyc = time_cycles + ((cyc - time_cycles) & time_mask)
/linux/include/linux/
H A Dclocksource.h157 /* freq = cyc/from in clocksource_freq2mult()
158 * mult/2^shift = ns/cyc in clocksource_freq2mult()
159 * mult = ns/cyc * 2^shift in clocksource_freq2mult()
/linux/drivers/dma/
H A Dpl330.c1096 const struct _xfer_spec *pxs, int cyc) in _ldst_memtomem() argument
1103 while (cyc--) { in _ldst_memtomem()
1108 while (cyc--) { in _ldst_memtomem()
1187 const struct _xfer_spec *pxs, int cyc, in _ldst_peripheral() argument
1198 while (cyc--) { in _ldst_peripheral()
1210 const struct _xfer_spec *pxs, int cyc) in _bursts() argument
1221 off += _ldst_peripheral(pl330, dry_run, &buf[off], pxs, cyc, in _bursts()
1226 off += _ldst_memtomem(dry_run, &buf[off], pxs, cyc); in _bursts()
1293 int cyc, cycmax, szlp, szlpend, szbrst, off; in _loop() local
1304 cyc = *bursts / lcnt1 / lcnt0; in _loop()
[all …]
/linux/arch/parisc/lib/
H A Dio.c47 ** 27341/64 = 427 cyc per int
48 ** 61311/128 = 478 cyc per short
49 ** 122637/256 = 479 cyc per byte
/linux/drivers/mtd/nand/raw/
H A Drenesas-nand-controller.c896 unsigned int cyc, cle, ale, bef_dly, ca_to_data; in rnandc_setup_interface() local
923 cyc = sdr->tDS_min + sdr->tDH_min; in rnandc_setup_interface()
936 TIM_GEN_SEQ0_D0(TO_CYCLES64(cle - cyc, period_ns)) | in rnandc_setup_interface()
937 TIM_GEN_SEQ0_D1(TO_CYCLES64(cle - cyc, period_ns)) | in rnandc_setup_interface()
948 TIM_GEN_SEQ1_D4(TO_CYCLES64(ale - cyc, period_ns)) | in rnandc_setup_interface()
949 TIM_GEN_SEQ1_D5(TO_CYCLES64(ale - cyc, period_ns)) | in rnandc_setup_interface()
962 TIM_GEN_SEQ2_D10(TO_CYCLES64(cle - cyc, period_ns)) | in rnandc_setup_interface()
/linux/arch/arc/include/asm/
H A Darcregs.h275 unsigned int pad2:12, cyc:3, pad1:1, sz1:4, sz0:4, ver:8; member
277 unsigned int ver:8, sz0:4, sz1:4, pad1:1, cyc:3, pad2:12;
/linux/arch/x86/kernel/
H A Dtsc.c123 static __always_inline unsigned long long __cycles_2_ns(unsigned long long cyc) in __cycles_2_ns() argument
131 ns += mul_u64_u32_shr(cyc, data.cyc2ns_mul, data.cyc2ns_shift); in __cycles_2_ns()
136 static __always_inline unsigned long long cycles_2_ns(unsigned long long cyc) in cycles_2_ns() argument
140 ns = __cycles_2_ns(cyc); in cycles_2_ns()
/linux/tools/perf/pmu-events/arch/powerpc/power8/
H A Dother.json353 …es thru sampling each L2 CO machine busy. PMU uses this wave to then do 16 cyc count to sample tot…
1668 "PublicDescription": "Reload latency exceeded 1024 cyc"
1674 "PublicDescription": "Reload latency exceeded 2048 cyc"
1680 "PublicDescription": "Reload latency exceeded 256 cyc"
1686 "PublicDescription": "Reload latency exceeded 32 cyc"
2868 "PublicDescription": "Reload latency exceeded 1024 cyc"
2886 "PublicDescription": "Reload latency exceeded 32 cyc"
2891 …es thru sampling each L2 RC machine busy. PMU uses this wave to then do 16 cyc count to sample tot…
2963 …es thru sampling each L2 SN machine busy. PMU uses this wave to then do 16 cyc count to sample tot…
/linux/tools/perf/pmu-events/arch/powerpc/power9/
H A Dother.json1075 …n": "L3 CO to memory OR of port 0 and 1 (lossy = may undercount if two cresp come in the same cyc)"
1150 …tates thru sampling each RC machine busy. PMU uses this wave to then do 16 cyc count to sample tot…
1375 …tates thru sampling each CO machine busy. PMU uses this wave to then do 16 cyc count to sample tot…
1400 …tates thru sampling each SN machine busy. PMU uses this wave to then do 16 cyc count to sample tot…
1875 …on": "L3 CO to L3.1 OR of port 0 and 1 (lossy = may undercount if two cresps come in the same cyc)"
/linux/drivers/net/wireless/broadcom/b43/
H A Dphy_n.h314 #define B43_NPHY_WWISE_20NCYCDAT B43_PHY_N(0x0B8) /* WWiSE 20 N cyc data */
315 #define B43_NPHY_WWISE_40NCYCDAT B43_PHY_N(0x0B9) /* WWiSE 40 N cyc data */
316 #define B43_NPHY_TGNSYNC_20NCYCDAT B43_PHY_N(0x0BA) /* TGNsync 20 N cyc data */
317 #define B43_NPHY_TGNSYNC_40NCYCDAT B43_PHY_N(0x0BB) /* TGNsync 40 N cyc data */
/linux/drivers/edac/
H A Di82875p_edac.c83 * 5 detect unimplemented cyc
/linux/drivers/ata/
H A Dpata_icside.c219 ata_dev_info(adev, "timings: act %dns rec %dns cyc %dns (%c)\n", in pata_icside_set_dmamode()
/linux/drivers/mmc/host/
H A Dmmci_stm32_sdmmc.c323 * Only power-off and power-cyc deactivate the clock. in mmci_sdmmc_set_clkreg()
/linux/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-pkt-decoder.c43 [INTEL_PT_CYC] = "CYC",

12