|
@@ -42,7 +42,7 @@
|
|
#include <sched.h>
|
|
#include <sched.h>
|
|
#include <sys/mman.h>
|
|
#include <sys/mman.h>
|
|
#include <asm/bug.h>
|
|
#include <asm/bug.h>
|
|
-
|
|
|
|
|
|
+#include <linux/time64.h>
|
|
|
|
|
|
struct record {
|
|
struct record {
|
|
struct perf_tool tool;
|
|
struct perf_tool tool;
|
|
@@ -954,7 +954,7 @@ static int __cmd_record(struct record *rec, int argc, const char **argv)
|
|
}
|
|
}
|
|
|
|
|
|
if (opts->initial_delay) {
|
|
if (opts->initial_delay) {
|
|
- usleep(opts->initial_delay * 1000);
|
|
|
|
|
|
+ usleep(opts->initial_delay * USEC_PER_MSEC);
|
|
perf_evlist__enable(rec->evlist);
|
|
perf_evlist__enable(rec->evlist);
|
|
}
|
|
}
|
|
|
|
|