]> Git Repo - linux.git/commit
perf tools: Cast (struct timeval).tv_sec when printing
authorPierre Gondois <[email protected]>
Wed, 24 Feb 2021 18:24:10 +0000 (18:24 +0000)
committerArnaldo Carvalho de Melo <[email protected]>
Sat, 6 Mar 2021 19:54:24 +0000 (16:54 -0300)
commitded2e511a8af9f14482b11225f73db63231fc7a4
treef4dfa6e1c814957d4076805abd8d9b347b232b47
parent21b7e35bdf0a0e44525ec4e8a7862eb4a8df8ebe
perf tools: Cast (struct timeval).tv_sec when printing

The musl-libc [1] defines (struct timeval).tv_sec as a 'long long' for
arm and other architectures. The default build having a '-Wformat' flag,
not casting the field when printing prevents from building perf.

This patch casts the (struct timeval).tv_sec fields to the expected
format.

[1] git://git.musl-libc.org/musl

Signed-off-by: Pierre Gondois <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: [email protected]
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/bench/sched-messaging.c
tools/perf/bench/sched-pipe.c
tools/perf/bench/syscall.c
tools/perf/util/header.c
tools/perf/util/stat-display.c
This page took 0.044639 seconds and 4 git commands to generate.