[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4EEF9752.1020404@fb.com>
Date: Mon, 19 Dec 2011 11:58:10 -0800
From: Arun Sharma <asharma@...com>
To: Arun Sharma <asharma@...com>
CC: <linux-kernel@...r.kernel.org>, Kumar Sundararajan <kumar@...com>,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...e.hu>,
Thomas Gleixner <tglx@...utronix.de>,
john stultz <johnstul@...ibm.com>,
Andy Lutomirski <luto@....EDU>,
Eric Dumazet <eric.dumazet@...il.com>
Subject: Re: [PATCH 2/2] Add a thread cpu time implementation to vDSO
On 12/19/11 11:51 AM, Arun Sharma wrote:
> +/* Should be optimized away at compile time */
> +static noinline int check_vvar_overflow(void)
> +{
> + long vcpu_data_offset = (long) vvaraddr_vcpu_data - VVAR_ADDRESS;
> + size_t size = (vcpu_data_offset + sizeof(vcpu_data)
> + + sizeof(struct vpercpu_data) * CONFIG_NR_CPUS);
> + return (size> VVAR_NUM_PAGES * PAGE_SIZE);
> +}
Forgot to drop the "noinline" part (which I had added for debug
purposes, so I could inspect the generated code). Fixed in my repo.
-Arun
--
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