Home
last modified time | relevance | path

Searched refs:cyc (Results 1 – 16 of 16) sorted by relevance

/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)"
[all...]
H A Dtest_intel_pt.sh482 cyc=$(cat /sys/bus/event_source/devices/intel_pt/caps/psb_cyc)
483 if [ "${cyc}" != "1" ] ; then
488 perf_record_no_decode -o "${perfdatafile}" -e intel_pt/cyc/u uname
500 echo "Still get CYC packet without cyc"
/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()
180 u64 res, wrap, new_mask, new_epoch, cyc, n in sched_clock_register() local
[all...]
/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);
/linux/tools/perf/scripts/python/
H A Dstat-cpi.py56 cyc = get(time, "cycles", cpu, thread)
61 cpi = cyc/float(ins)
63 print("%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/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/drivers/i2c/busses/
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/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 in _loop()
[all...]
/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/drivers/mtd/nand/raw/
H A Drenesas-nand-controller.c902 unsigned int cyc, cle, ale, bef_dly, ca_to_data; in rnandc_setup_interface() local
929 cyc = sdr->tDS_min + sdr->tDH_min; in rnandc_setup_interface()
942 TIM_GEN_SEQ0_D0(TO_CYCLES64(cle - cyc, period_ns)) | in rnandc_setup_interface()
943 TIM_GEN_SEQ0_D1(TO_CYCLES64(cle - cyc, period_ns)) | in rnandc_setup_interface()
954 TIM_GEN_SEQ1_D4(TO_CYCLES64(ale - cyc, period_ns)) | in rnandc_setup_interface()
955 TIM_GEN_SEQ1_D5(TO_CYCLES64(ale - cyc, period_ns)) | in rnandc_setup_interface()
968 TIM_GEN_SEQ2_D10(TO_CYCLES64(cle - cyc, period_ns)) | in rnandc_setup_interface()
/linux/tools/perf/Documentation/
H A Dperf-intel-pt.txt154 If the 'cyc' config term (see <<_config_terms,config terms>> section below) was used, then IPC
166 Even with the 'cyc' config term, it is possible to produce IPC information for
250 /sys/bus/event_source/devices/intel_pt/format/cyc:config:1
317 -e intel_pt/cyc/
322 -e intel_pt/cyc=1/
331 -e intel_pt/cyc,mtc_period=9/
442 *cyc*::
461 Specifies how frequently CYC packets are produced - see cyc
484 $ perf record -e intel_pt/cyc,cyc_thresh=15/u uname
1355 However, IPC can still be determined, hence cyc
[all...]
/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/arch/x86/events/intel/
H A Dpt.c109 PMU_FORMAT_ATTR(cyc, "config:1" );