Home
last modified time | relevance | path

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

12

/linux-6.14.4/tools/perf/tests/shell/
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)"
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 packet"
[all …]
/linux-6.14.4/kernel/time/
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, ns; in sched_clock_register() local
[all …]
/linux-6.14.4/tools/perf/scripts/python/
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-6.14.4/tools/perf/util/
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()
Dtsc.h26 u64 tsc_to_perf_time(u64 cyc, struct perf_tsc_conversion *tc);
/linux-6.14.4/drivers/pwm/
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-6.14.4/tools/perf/arch/powerpc/util/
Devent.c43 return "Finish Cyc"; in arch_perf_header_entry()
47 return "Dispatch Cyc"; in arch_perf_header_entry()
/linux-6.14.4/tools/perf/Documentation/
Dperf-intel-pt.txt154 If the 'cyc' config term (see <<_config_terms,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
317 -e intel_pt/cyc/
322 -e intel_pt/cyc=1/
331 -e intel_pt/cyc,mtc_period=9/
394 of MTC or CYC.
442 *cyc*::
[all …]
/linux-6.14.4/arch/arm/lib/
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-6.14.4/tools/lib/perf/
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-6.14.4/tools/include/uapi/linux/
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-6.14.4/include/uapi/linux/
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-6.14.4/drivers/i2c/busses/
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()
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-6.14.4/include/linux/
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-6.14.4/drivers/dma/
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-6.14.4/arch/parisc/lib/
Dio.c21 ** 27341/64 = 427 cyc per int
22 ** 61311/128 = 478 cyc per short
23 ** 122637/256 = 479 cyc per byte
/linux-6.14.4/drivers/staging/media/atomisp/pci/css_2401_system/host/
Dpixelgen_private.h143 ia_css_print("Pixel Generator ID %d syng hblank cyc 0x%x\n", ID, in pixelgen_ctrl_dump_state()
145 ia_css_print("Pixel Generator ID %d syng vblank cyc 0x%x\n", ID, in pixelgen_ctrl_dump_state()
/linux-6.14.4/Documentation/devicetree/bindings/fpga/
Daltr,fpga-passive-serial.yaml18 See https://www.altera.com/literature/hb/cyc/cyc_c51013.pdf
/linux-6.14.4/drivers/mtd/nand/raw/
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-6.14.4/arch/arc/include/asm/
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-6.14.4/arch/x86/kernel/
Dtsc.c125 static __always_inline unsigned long long __cycles_2_ns(unsigned long long cyc) in __cycles_2_ns() argument
133 ns += mul_u64_u32_shr(cyc, data.cyc2ns_mul, data.cyc2ns_shift); in __cycles_2_ns()
138 static __always_inline unsigned long long cycles_2_ns(unsigned long long cyc) in cycles_2_ns() argument
142 ns = __cycles_2_ns(cyc); in cycles_2_ns()
/linux-6.14.4/tools/perf/pmu-events/arch/powerpc/power8/
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-6.14.4/drivers/net/wireless/broadcom/b43/
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 */

12