From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9183 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] mips: add vdso support Date: Sat, 23 Jan 2016 18:29:34 -0500 Message-ID: <20160123232933.GZ238@brightrain.aerifal.cx> References: <1453581118-9569-1-git-send-email-hauke@hauke-m.de> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1453591790 20620 80.91.229.3 (23 Jan 2016 23:29:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jan 2016 23:29:50 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9196-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jan 24 00:29:50 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aN7cr-0001sY-Bo for gllmg-musl@m.gmane.org; Sun, 24 Jan 2016 00:29:49 +0100 Original-Received: (qmail 28245 invoked by uid 550); 23 Jan 2016 23:29:47 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 28224 invoked from network); 23 Jan 2016 23:29:47 -0000 Content-Disposition: inline In-Reply-To: <1453581118-9569-1-git-send-email-hauke@hauke-m.de> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:9183 Archived-At: On Sat, Jan 23, 2016 at 09:31:58PM +0100, Hauke Mehrtens wrote: > vdso support is available on mips starting with kernel 4.4, see kernel > commit a7f4df4e21 "MIPS: VDSO: Add implementations of gettimeofday() > and clock_gettime()" for details. > > Signed-off-by: Hauke Mehrtens > --- > arch/mips/syscall_arch.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/mips/syscall_arch.h b/arch/mips/syscall_arch.h > index e74e0ad..39c0ea3 100644 > --- a/arch/mips/syscall_arch.h > +++ b/arch/mips/syscall_arch.h > @@ -161,3 +161,7 @@ static inline long __syscall6(long n, long a, long b, long c, long d, long e, lo > if (n == SYS_fstatat) __stat_fix(c); > return r2; > } > + > +#define VDSO_USEFUL > +#define VDSO_CGT_SYM "__vdso_clock_gettime" > +#define VDSO_CGT_VER "LINUX_2.6" > -- > 2.7.0.rc3 Nice! Have you tested it on some real hardware with vdso support to confirm that it's working properly? Rich