|
@@ -32,6 +32,7 @@
|
|
#include <linux/pipe_fs_i.h>
|
|
#include <linux/pipe_fs_i.h>
|
|
#include <linux/oom.h>
|
|
#include <linux/oom.h>
|
|
#include <linux/compat.h>
|
|
#include <linux/compat.h>
|
|
|
|
+#include <linux/timekeeping.h>
|
|
|
|
|
|
#include <asm/uaccess.h>
|
|
#include <asm/uaccess.h>
|
|
#include <asm/mmu_context.h>
|
|
#include <asm/mmu_context.h>
|
|
@@ -232,9 +233,10 @@ static int format_corename(struct core_name *cn, struct coredump_params *cprm)
|
|
break;
|
|
break;
|
|
/* UNIX time of coredump */
|
|
/* UNIX time of coredump */
|
|
case 't': {
|
|
case 't': {
|
|
- struct timeval tv;
|
|
|
|
- do_gettimeofday(&tv);
|
|
|
|
- err = cn_printf(cn, "%lu", tv.tv_sec);
|
|
|
|
|
|
+ time64_t time;
|
|
|
|
+
|
|
|
|
+ time = ktime_get_real_seconds();
|
|
|
|
+ err = cn_printf(cn, "%lld", time);
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
/* hostname */
|
|
/* hostname */
|