[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150408085519.GV23123@twins.programming.kicks-ass.net>
Date: Wed, 8 Apr 2015 10:55:19 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Yunlong Song <yunlong.song@...wei.com>
Cc: paulus@...ba.org, mingo@...hat.com, acme@...nel.org,
linux-kernel@...r.kernel.org, wangnan0@...wei.com
Subject: Re: [PATCH] perf record: Conditionally define CLOCK_MONOTONIC_RAW
for older OSes
On Wed, Apr 08, 2015 at 12:02:28PM +0800, Yunlong Song wrote:
> Commit 31a9883106cc ("perf record: Add clockid parameter") used
> CLOCK_MONOTONIC_RAW in the struct clockid_map clockids[], but the
> CLOCK_MONOTONIC_RAW macro is not defined in older releases (e.g., SLES
> 11 SP2), thus there is a building error when making perf:
>
> builtin-record.c:738: error: ‘CLOCK_MONOTONIC_RAW’ undeclared here (not in a function)
Weird that, CLOCK_MONOTONIC_RAW is said to be in the kernel since
2.6.28, SLES11 SP2 is 3.0 based, SP1 is 2.6.32.
Now the original SLES11 started life with 2.6.27, so it looks like
someone forgot to update their kernel headers when upgrading.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists