| /linux/tools/perf/tests/shell/ | 
| H A D | stat+shadow_stat.sh | 28 			cyc=$num33 		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 D | test_intel_pt.sh | 480 	echo "--- Test with/without CYC ---"481 	# Check if CYC is supported
 482 	cyc=$(cat /sys/bus/event_source/devices/intel_pt/caps/psb_cyc)
 483 	if [ "${cyc}" != "1" ] ; then
 484 		echo "SKIP: CYC is not supported"
 487 	# Enable CYC
 488 	perf_record_no_decode -o "${perfdatafile}" -e intel_pt/cyc/u uname
 489 	# should get CYC packets
 490 	cyc_cnt=$(perf script -i "${perfdatafile}" -D 2>/dev/null | grep -c "CYC 0x")
 492 		echo "Failed to get CYC packet"
 [all …]
 
 | 
| /linux/kernel/time/ | 
| H A D | sched_clock.c | 67 static __always_inline u64 cyc_to_ns(u64 cyc, u32 mult, u32 shift)  in cyc_to_ns()  argument69 	return (cyc * mult) >> shift;  in cyc_to_ns()
 87 	u64 cyc, res;  in __sched_clock()  local
 93 		cyc = (rd->read_sched_clock() - rd->epoch_cyc) &  in __sched_clock()
 95 		res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift);  in __sched_clock()
 154 	u64 cyc;  in update_sched_clock()  local
 160 	cyc = cd.actual_read_sched_clock();  in update_sched_clock()
 161 	ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift);  in update_sched_clock()
 164 	rd.epoch_cyc = cyc;  in update_sched_clock()
 179 	u64 res, wrap, new_mask, new_epoch, cyc, ns;  in sched_clock_register()  local
 [all …]
 
 | 
| /linux/tools/perf/scripts/python/ | 
| H A D | stat-cpi.py | 56             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)
 
 | 
| H A D | exported-sql-viewer.py | 764 …", "Count ", "Time (ns) ", "Time (%) ", "Insn Cnt", "Insn Cnt (%)", "Cyc Cnt", "Cyc Cnt (%)", "IPC…960 …"Call Time", "Time (ns) ", "Time (%) ", "Insn Cnt", "Insn Cnt (%)", "Cyc Cnt", "Cyc Cnt (%)", "IPC…
 3148 …return ("Time", "CPU", "Command", "PID", "TID", "Branch Type", "In Tx", "Insn Cnt", "Cyc Cnt", "IP…
 
 | 
| /linux/drivers/pwm/ | 
| H A D | pwm-rcar.c | 111 	u32 cyc, ph;  in rcar_pwm_set_counter()  local118 	cyc = FIELD_PREP(RCAR_PWMCNT_CYC0_MASK, tmp);  in rcar_pwm_set_counter()
 126 	if (cyc == 0 || ph == 0)  in rcar_pwm_set_counter()
 129 	rcar_pwm_write(rp, cyc | ph, RCAR_PWMCNT);  in rcar_pwm_set_counter()
 
 | 
| /linux/arch/arm/lib/ | 
| H A D | delay.c | 40 static inline u64 cyc_to_ns(u64 cyc, u32 mult, u32 shift)  in cyc_to_ns()  argument42 	return (cyc * mult) >> shift;  in cyc_to_ns()
 
 | 
| /linux/tools/lib/perf/ | 
| H A D | mmap.c | 484 	u64 cnt, cyc = 0, time_offset = 0, time_cycles = 0, time_mask = ~0ULL;  in perf_mmap__read_self()  local497 			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/tools/include/uapi/linux/ | 
| H A D | perf_event.h | 601 	 *   u64 cyc, time_offset;612 	 *       cyc = rdtsc();
 668 	 *   quot = (cyc >> time_shift);
 669 	 *   rem = cyc & (((u64)1 << time_shift) - 1);
 673 	 * Where time_offset,time_mult,time_shift and cyc are read in the
 695 	 *   cyc = (quot << time_shift) + (rem << time_shift) / time_mult;
 699 	 *   quot = cyc >> time_shift;
 700 	 *   rem  = cyc & (((u64)1 << time_shift) - 1);
 711 	 * and we must compute the 'cyc' value, as used by cap_usr_time, as:
 713 	 *   cyc = time_cycles + ((cyc - time_cycles) & time_mask)
 
 | 
| /linux/drivers/i2c/busses/ | 
| H A D | i2c-uniphier-f.c | 478 	unsigned int cyc = priv->clk_cycle;  in uniphier_fi2c_hw_init()  local491 	writel(cyc, priv->membase + UNIPHIER_FI2C_CYC);  in uniphier_fi2c_hw_init()
 497 	writel(cyc * 5 / 9, priv->membase + UNIPHIER_FI2C_LCTL);  in uniphier_fi2c_hw_init()
 502 	writel(cyc / 2, priv->membase + UNIPHIER_FI2C_SSUT);  in uniphier_fi2c_hw_init()
 507 	writel(cyc / 16, priv->membase + UNIPHIER_FI2C_DSUT);  in uniphier_fi2c_hw_init()
 
 | 
| H A D | i2c-uniphier.c | 292 	unsigned int cyc = priv->clk_cycle;  in uniphier_i2c_hw_init()  local302 	writel((cyc * 5 / 9 << 16) | cyc, priv->membase + UNIPHIER_I2C_CLK);  in uniphier_i2c_hw_init()
 
 | 
| /linux/include/linux/ | 
| H A D | clocksource.h | 157 	/*  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 D | pl330.c | 1096 		const struct _xfer_spec *pxs, int cyc)  in _ldst_memtomem()  argument1103 		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/arc/include/asm/ | 
| H A D | arcregs.h | 272 	unsigned int pad2:12, cyc:3, pad1:1, sz1:4, sz0:4, ver:8;  member274 	unsigned int ver:8, sz0:4, sz1:4, pad1:1, cyc:3, pad2:12;
 
 | 
| /linux/tools/perf/pmu-events/arch/powerpc/power8/ | 
| H A D | other.json | 353 …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 D | other.json | 1075 …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 D | phy_n.h | 314 #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 D | i82875p_edac.c | 83 					 *  5    detect unimplemented cyc
 | 
| /linux/drivers/ata/ | 
| H A D | pata_icside.c | 219 	ata_dev_info(adev, "timings: act %dns rec %dns cyc %dns (%c)\n",  in pata_icside_set_dmamode()
 | 
| /linux/drivers/mmc/host/ | 
| H A D | mmci_stm32_sdmmc.c | 323 		 * Only power-off and power-cyc deactivate the clock.  in mmci_sdmmc_set_clkreg()
 | 
| /linux/tools/perf/util/intel-pt-decoder/ | 
| H A D | intel-pt-pkt-decoder.c | 43 	[INTEL_PT_CYC]		= "CYC",
 | 
| H A D | intel-pt-decoder.c | 1004 	 * 2) TSC packets within PSB+ can slip against CYC packets in intel_pt_calc_cyc_to_tsc() 2031 		intel_pt_log("Suppressing CYC timestamp " x64_fmt " less than current timestamp " x64_fmt "\n", in intel_pt_calc_cyc_timestamp()
 
 | 
| /linux/tools/perf/util/ | 
| H A D | auxtrace.h | 77  *          (not fully accurate, since CYC packets are only emitted
 | 
| /linux/drivers/mtd/nand/raw/atmel/ | 
| H A D | nand-controller.c | 72 #define ATMEL_HSMC_NFC_CFG_DTO(cyc, mul)	(((cyc) << 16) | ((mul) << 20))  argument
 | 
| /linux/tools/perf/arch/x86/util/ | 
| H A D | intel-pt.c | 346 	intel_pt_parse_terms(intel_pt_pmu, "cyc", &cyc_bit);  in intel_pt_info_fill()
 |