/linux-6.3-rc2/tools/perf/tests/shell/ |
A D | stat+shadow_stat.sh | 26 cyc=$num 31 if [ -z "$cyc" ]; then 36 res=`printf "%.2f" $(echo "scale=6; $num / $cyc" | bc -q)` 38 echo "IPC is different: $res != $ipc ($num / $cyc)" 61 cyc=${results##* $cpu:} 62 cyc=${cyc%% *} 65 if [ -z "$cyc" ]; then 70 res=`printf "%.2f" $(echo "scale=6; $num / $cyc" | bc -q)` 72 echo "IPC is different for $cpu: $res != $ipc ($num / $cyc)"
|
A D | test_intel_pt.sh | 476 cyc=$(cat /sys/bus/event_source/devices/intel_pt/caps/psb_cyc) 477 if [ "${cyc}" != "1" ] ; then 482 perf_record_no_decode -o "${perfdatafile}" -e intel_pt/cyc/u uname
|
/linux-6.3-rc2/kernel/time/ |
A D | sched_clock.c | 67 static inline u64 notrace cyc_to_ns(u64 cyc, u32 mult, u32 shift) in cyc_to_ns() argument 69 return (cyc * mult) >> shift; in cyc_to_ns() 85 u64 cyc, res; in sched_clock() local 92 cyc = (rd->read_sched_clock() - rd->epoch_cyc) & in sched_clock() 94 res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift); in sched_clock() 130 u64 cyc; in update_sched_clock() local 136 cyc = cd.actual_read_sched_clock(); in update_sched_clock() 137 ns = rd.epoch_ns + cyc_to_ns((cyc - rd.epoch_cyc) & rd.sched_clock_mask, rd.mult, rd.shift); in update_sched_clock() 140 rd.epoch_cyc = cyc; in update_sched_clock() 156 u64 res, wrap, new_mask, new_epoch, cyc, ns; in sched_clock_register() local [all …]
|
/linux-6.3-rc2/tools/perf/util/ |
A D | tsc.c | 29 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()
|
A D | tsc.h | 26 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
|
/linux-6.3-rc2/tools/perf/scripts/python/ |
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))
|
/linux-6.3-rc2/drivers/pwm/ |
A D | pwm-rcar.c | 111 u32 cyc, ph; in rcar_pwm_set_counter() local 118 cyc = (tmp << RCAR_PWMCNT_CYC0_SHIFT) & RCAR_PWMCNT_CYC0_MASK; in rcar_pwm_set_counter() 125 if (cyc == 0 || ph == 0) in rcar_pwm_set_counter() 128 rcar_pwm_write(rp, cyc | ph, RCAR_PWMCNT); in rcar_pwm_set_counter()
|
/linux-6.3-rc2/arch/arm/lib/ |
A D | delay.c | 40 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-6.3-rc2/tools/lib/perf/ |
A D | mmap.c | 404 u64 cnt, cyc = 0, time_offset = 0, time_cycles = 0, time_mask = ~0ULL; in perf_mmap__read_self() local 417 cyc = read_timestamp(); in perf_mmap__read_self() 447 cyc = time_cycles + ((cyc - time_cycles) & time_mask); in perf_mmap__read_self() 449 delta = time_offset + mul_u64_u32_shr(cyc, time_mult, time_shift); in perf_mmap__read_self()
|
/linux-6.3-rc2/drivers/i2c/busses/ |
A D | i2c-uniphier-f.c | 481 unsigned int cyc = priv->clk_cycle; in uniphier_fi2c_hw_init() local 494 writel(cyc, priv->membase + UNIPHIER_FI2C_CYC); in uniphier_fi2c_hw_init() 500 writel(cyc * 5 / 9, priv->membase + UNIPHIER_FI2C_LCTL); in uniphier_fi2c_hw_init() 505 writel(cyc / 2, priv->membase + UNIPHIER_FI2C_SSUT); in uniphier_fi2c_hw_init() 510 writel(cyc / 16, priv->membase + UNIPHIER_FI2C_DSUT); in uniphier_fi2c_hw_init()
|
A D | i2c-uniphier.c | 295 unsigned int cyc = priv->clk_cycle; in uniphier_i2c_hw_init() local 305 writel((cyc * 5 / 9 << 16) | cyc, priv->membase + UNIPHIER_I2C_CLK); in uniphier_i2c_hw_init()
|
/linux-6.3-rc2/drivers/dma/ |
A D | pl330.c | 1090 const struct _xfer_spec *pxs, int cyc) in _ldst_memtomem() argument 1097 while (cyc--) { in _ldst_memtomem() 1102 while (cyc--) { in _ldst_memtomem() 1181 const struct _xfer_spec *pxs, int cyc, in _ldst_peripheral() argument 1192 while (cyc--) { in _ldst_peripheral() 1204 const struct _xfer_spec *pxs, int cyc) in _bursts() argument 1298 cyc = *bursts / lcnt1 / lcnt0; in _loop() 1302 cyc = 1; in _loop() 1306 cyc = 1; in _loop() 1330 cyc = (cycmax < cyc) ? cycmax : cyc; in _loop() [all …]
|
/linux-6.3-rc2/arch/arc/include/asm/ |
A D | arcregs.h | 222 unsigned int pad2:12, cyc:3, pad1:1, sz1:4, sz0:4, ver:8; member 224 unsigned int ver:8, sz0:4, sz1:4, pad1:1, cyc:3, pad2:12;
|
/linux-6.3-rc2/Documentation/devicetree/bindings/fpga/ |
A D | altera-passive-serial.txt | 8 See https://www.altera.com/literature/hb/cyc/cyc_c51013.pdf
|
/linux-6.3-rc2/drivers/mtd/nand/raw/ |
A D | renesas-nand-controller.c | 896 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-6.3-rc2/arch/ia64/kernel/ |
A D | time.c | 67 extern u64 cycle_to_nsec(u64 cyc);
|
/linux-6.3-rc2/arch/x86/kernel/ |
A D | tsc.c | 118 static __always_inline unsigned long long cycles_2_ns(unsigned long long cyc) in cycles_2_ns() argument 126 ns += mul_u64_u32_shr(cyc, data.cyc2ns_mul, data.cyc2ns_shift); in cycles_2_ns()
|
/linux-6.3-rc2/tools/perf/Documentation/ |
A D | perf-intel-pt.txt | 150 If the 'cyc' config term (see config terms section below) was used, then IPC 162 Even with the 'cyc' config term, it is possible to produce IPC information for 246 /sys/bus/event_source/devices/intel_pt/format/cyc:config:1 415 cyc Produces CYC timing packets. 432 cyc_thresh Specifies how frequently CYC packets are produced - see cyc 455 $ perf record -e intel_pt/cyc,cyc_thresh=15/u uname 1297 However, IPC can still be determined, hence cyc=1 can be added. 1360 IPC can be determined, hence cyc=1 can be added. 1364 …$ sudo perf kvm --guest --host --guestkallsyms $KALLSYMS record --kcore -e intel_pt/cyc=1/k -p 169… 1466 $ sudo perf record -o guest-sideband-testing-host-perf.data -m,64M --kcore -a -e intel_pt/cyc/ [all …]
|
/linux-6.3-rc2/drivers/mtd/nand/raw/atmel/ |
A D | nand-controller.c | 72 #define ATMEL_HSMC_NFC_CFG_DTO(cyc, mul) (((cyc) << 16) | ((mul) << 20)) argument
|
/linux-6.3-rc2/arch/x86/events/intel/ |
A D | pt.c | 107 PMU_FORMAT_ATTR(cyc, "config:1" );
|