1 --- linux-3.19/tools/perf/config/Makefile.arch~ 2015-02-09 03:54:22.000000000 +0100
2 +++ linux-3.19/tools/perf/config/Makefile.arch 2015-04-11 12:17:45.107911011 +0200
6 LP64 := $(shell echo __LP64__ | ${CC} ${CFLAGS} -E -x c - | tail -n 1)
7 +ILP32 := $(shell echo __ILP32__ | ${CC} ${CFLAGS} -E -x c - | tail -n 1)
18 --- linux-3.19/tools/perf/config/Makefile~ 2015-04-11 12:12:31.000000000 +0200
19 +++ linux-3.19/tools/perf/config/Makefile 2015-04-11 12:19:05.011244885 +0200
21 LIBUNWIND_LIBS = -lunwind -lunwind-x86
24 + ifeq (${IS_X32_BIT}, 1)
25 + CFLAGS += -DHAVE_ARCH_X32_SUPPORT
30 --- linux-3.19/tools/perf/arch/x86/tests/regs_load.S~ 2015-02-09 03:54:22.000000000 +0100
31 +++ linux-3.19/tools/perf/arch/x86/tests/regs_load.S 2015-04-11 12:21:07.717912384 +0200
33 ENDPROC(perf_regs_load)
37 +#ifdef HAVE_ARCH_X32_SUPPORT
48 +#ifdef HAVE_ARCH_X32_SUPPORT
55 --- linux-3.19/tools/perf/bench/sched-messaging.c~ 2015-02-09 03:54:22.000000000 +0100
56 +++ linux-3.19/tools/perf/bench/sched-messaging.c 2015-04-11 12:33:22.587917365 +0200
58 printf("# %d groups == %d %s run\n\n",
59 num_groups, num_groups * 2 * num_fds,
60 thread_mode ? "threads" : "processes");
61 +#if defined(__x86_64__) && !defined(__ILP32__)
62 printf(" %14s: %lu.%03lu [sec]\n", "Total time",
64 (unsigned long) (diff.tv_usec/1000));
66 + printf(" %14s: %llu.%03llu [sec]\n", "Total time",
68 + (unsigned long long) (diff.tv_usec/1000));
71 case BENCH_FORMAT_SIMPLE:
72 +#if defined(__x86_64__) && !defined(__ILP32__)
73 printf("%lu.%03lu\n", diff.tv_sec,
74 (unsigned long) (diff.tv_usec/1000));
76 + printf("%llu.%03llu\n", diff.tv_sec,
77 + (unsigned long long) (diff.tv_usec/1000));
81 /* reaching here is something disaster */
82 --- linux-3.19/tools/perf/bench/sched-pipe.c~ 2015-02-09 03:54:22.000000000 +0100
83 +++ linux-3.19/tools/perf/bench/sched-pipe.c 2015-04-11 12:34:32.727917841 +0200
85 result_usec = diff.tv_sec * 1000000;
86 result_usec += diff.tv_usec;
88 +#if defined(__x86_64__) && !defined(__ILP32__)
89 printf(" %14s: %lu.%03lu [sec]\n\n", "Total time",
91 (unsigned long) (diff.tv_usec/1000));
93 + printf(" %14s: %llu.%03llu [sec]\n\n", "Total time",
95 + (unsigned long long) (diff.tv_usec/1000));
98 printf(" %14lf usecs/op\n",
99 (double)result_usec / (double)loops);
103 case BENCH_FORMAT_SIMPLE:
104 +#if defined(__x86_64__) && !defined(__ILP32__)
105 printf("%lu.%03lu\n",
107 (unsigned long) (diff.tv_usec / 1000));
109 + printf("%llu.%03llu\n",
111 + (unsigned long long) (diff.tv_usec / 1000));
116 --- linux-3.19/tools/perf/builtin-stat.c~ 2015-02-09 03:54:22.000000000 +0100
117 +++ linux-3.19/tools/perf/builtin-stat.c 2015-04-11 12:35:21.841251509 +0200
120 static int num_print_interval;
122 +#if defined(__x86_64__) && !defined(__ILP32__)
123 sprintf(prefix, "%6lu.%09lu%s", ts->tv_sec, ts->tv_nsec, csv_sep);
125 + sprintf(prefix, "%6llu.%09llu%s", ts->tv_sec, ts->tv_nsec, csv_sep);
128 if (num_print_interval == 0 && !csv_output) {
130 --- linux-3.19/tools/perf/builtin-kvm.c~ 2015-02-09 03:54:22.000000000 +0100
131 +++ linux-3.19/tools/perf/builtin-kvm.c 2015-04-11 12:36:00.511251770 +0200
133 gettimeofday(&tv, NULL);
134 if (localtime_r(&tv.tv_sec, <ime)) {
135 strftime(date, sizeof(date), "%H:%M:%S", <ime);
136 +#if defined(__x86_64__) && !defined(__ILP32__)
137 pr_info("%s.%06ld", date, tv.tv_usec);
139 + pr_info("%s.%06lld", date, tv.tv_usec);
142 pr_info("00:00:00.000000");