Ben Greear <greearb@xxxxxxxxxxxxxxx> writes: > On 06/05/2014 11:55 PM, Kalle Valo wrote: >> greearb@xxxxxxxxxxxxxxx writes: >> >>> From: Ben Greear <greearb@xxxxxxxxxxxxxxx> >>> >>> Store the firmware crash registers and last 128 or so >>> firmware debug-log ids and present them to user-space >>> via debugfs. >>> >>> Should help with figuring out why the firmware crashed. >>> >>> Signed-off-by: Ben Greear <greearb@xxxxxxxxxxxxxxx> >> >> [...] >> >>> + dump_data->kernel_ver_code = LINUX_VERSION_CODE; >>> + strncpy(dump_data->kernel_ver, VERMAGIC_STRING, >>> + sizeof(dump_data->kernel_ver) - 1); >> >> Other thing nice to have here is the kernel timestamp in the kernel log >> "[123456.4321]". How difficult would it be to add that to the dump? > > It's easy to get the time-of-day, if that is what you mean. That's actually seconds from boot, not wall time: [ 0.000000] tsc: Fast TSC calibration using PIT [ 0.000000] tsc: Detected 2793.393 MHz processor [ 0.000004] Calibrating delay loop (skipped), value calculated using timer frequency.. 5586.78 BogoMIP S (lpj=27933930) [ 0.000009] pid_max: default: 32768 minimum: 301 [ 0.000016] ACPI: Core revision 20140214 [ 0.023399] ACPI: All ACPI Tables successfully acquired There's function print_time() which prints the time and the timestamp apparently comes from local_clock(). -- Kalle Valo -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html