On 8/10/13 10:34 AM, Peipei Wang wrote:
I get it.  Is the timestamp for wall-clock or not???    What is the
counting unit of timestamp?  Seconds??

It is a "perf_clock" timestamp in seconds.micro-seconds. On x86 the timestamp is related to the TSC -- usually.

I have been on a 2-1/2 year mission and counting to get time-of-day correlations into perf. e.g., see https://github.com/dsahern/linux/tree/perf-time-of-day-3.8.

That branch has a kernel side change to add an ioctl to pull the perf_clock timestamp into userspace. It does not include tracepoints to catch ntpd updates for example.

David


          swapper     0 [000] 1591103.081337: instructions:          c1022ae6 
int
          swapper     0 [000] 1591103.081341: instructions:          c1022ae6 
int
          swapper     0 [000] 1591103.081343: instructions:          c1022ae6 
int
          swapper     0 [000] 1591103.081345: instructions:          c1022ae6 
int
          swapper     0 [000] 1591103.081348: instructions:          c1036a26 
__t
          swapper     0 [000] 1591103.081353: cycles:          c1035e68 
native_wr
          swapper     0 [000] 1591103.081355: cycles:          c1035e68 
native_wr
          swapper     0 [000] 1591103.081357: cycles:          c1035e68 
native_wr
          swapper     0 [000] 1591103.081359: cycles:          c1035e68 
native_wr
          swapper     0 [000] 1591103.081362: cycles:          c101909c mwait_id


--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to