Home
last modified time | relevance | path

Searched full:cyc (Results 1 – 25 of 29) 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.sh480 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 Dsched_clock.c67 static __always_inline u64 cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns() argument
69 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 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)
H A Dexported-sql-viewer.py764 …", "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 Dpwm-rcar.c111 u32 cyc, ph; in rcar_pwm_set_counter() local
118 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 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/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/tools/include/uapi/linux/
H A Dperf_event.h601 * 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 Di2c-uniphier-f.c478 unsigned int cyc = priv->clk_cycle; in uniphier_fi2c_hw_init() local
491 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 Di2c-uniphier.c292 unsigned int cyc = priv->clk_cycle; in uniphier_i2c_hw_init() local
302 writel((cyc * 5 / 9 << 16) | cyc, priv->membase + UNIPHIER_I2C_CLK); in uniphier_i2c_hw_init()
/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/arc/include/asm/
H A Darcregs.h272 unsigned int pad2:12, cyc:3, pad1:1, sz1:4, sz0:4, ver:8; member
274 unsigned int ver:8, sz0:4, sz1:4, pad1:1, cyc:3, pad2:12;
/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",
H A Dintel-pt-decoder.c1004 * 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 Dauxtrace.h77 * (not fully accurate, since CYC packets are only emitted
/linux/drivers/mtd/nand/raw/atmel/
H A Dnand-controller.c72 #define ATMEL_HSMC_NFC_CFG_DTO(cyc, mul) (((cyc) << 16) | ((mul) << 20)) argument
/linux/tools/perf/arch/x86/util/
H A Dintel-pt.c346 intel_pt_parse_terms(intel_pt_pmu, "cyc", &cyc_bit); in intel_pt_info_fill()

12