|
@@ -866,7 +866,7 @@ static inline void
|
|
|
debug_finish_entry(debug_info_t * id, debug_entry_t* active, int level,
|
|
|
int exception)
|
|
|
{
|
|
|
- active->id.stck = get_tod_clock_fast();
|
|
|
+ active->id.stck = get_tod_clock_fast() - sched_clock_base_cc;
|
|
|
active->id.fields.cpuid = smp_processor_id();
|
|
|
active->caller = __builtin_return_address(0);
|
|
|
active->id.fields.exception = exception;
|
|
@@ -1455,23 +1455,24 @@ int
|
|
|
debug_dflt_header_fn(debug_info_t * id, struct debug_view *view,
|
|
|
int area, debug_entry_t * entry, char *out_buf)
|
|
|
{
|
|
|
- struct timespec64 time_spec;
|
|
|
+ unsigned long sec, usec;
|
|
|
char *except_str;
|
|
|
unsigned long caller;
|
|
|
int rc = 0;
|
|
|
unsigned int level;
|
|
|
|
|
|
level = entry->id.fields.level;
|
|
|
- stck_to_timespec64(entry->id.stck, &time_spec);
|
|
|
+ sec = (entry->id.stck >> 12) + (sched_clock_base_cc >> 12);
|
|
|
+ sec = sec - (TOD_UNIX_EPOCH >> 12);
|
|
|
+ usec = do_div(sec, USEC_PER_SEC);
|
|
|
|
|
|
if (entry->id.fields.exception)
|
|
|
except_str = "*";
|
|
|
else
|
|
|
except_str = "-";
|
|
|
caller = (unsigned long) entry->caller;
|
|
|
- rc += sprintf(out_buf, "%02i %011lld:%06lu %1u %1s %02i %p ",
|
|
|
- area, (long long)time_spec.tv_sec,
|
|
|
- time_spec.tv_nsec / 1000, level, except_str,
|
|
|
+ rc += sprintf(out_buf, "%02i %011ld:%06lu %1u %1s %02i %p ",
|
|
|
+ area, sec, usec, level, except_str,
|
|
|
entry->id.fields.cpuid, (void *)caller);
|
|
|
return rc;
|
|
|
}
|