src/ppe/tools/ppetracepp/ppe2fsp.c
//convert a ppe timestamp to an fsp trace timestamp
convert a ppe timestamp to an fsp trace timestamp
convert a ppe timestamp to an fsp trace timestamp
uint64_t ppe2fsp_time(uint64_t ppe_time, uint32_t hz)
{
    uint32_t    seconds;
    uint32_t    remainder;
    uint32_t    nseconds;
    seconds = ppe_time / hz;
    remainder = ppe_time - (((uint64_t)seconds) * hz);
    nseconds = (((uint64_t)remainder) * 1000000000) / hz;
    return (((uint64_t)seconds) << 32) | nseconds;
}
uint64_t ppe2fsp_time ( uint64_t ppe_time , uint32_t hz ) { uint32_t seconds ; uint32_t remainder ; uint32_t nseconds ; seconds = ppe_time / hz ; remainder = ppe_time - ( ( ( uint64_t ) seconds ) * hz ) ; nseconds = ( ( ( uint64_t ) remainder ) * 1000000000 ) / hz ; return ( ( ( uint64_t ) seconds ) << 32 ) | nseconds ; }
convert a ppe timestamp to an fsp trace timestamp
convert a ppe timestamp to an fsp trace timestamp
//convert from ppe ticks to seconds and nanoseconds