Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Mar 2010 13:55:02 -0800
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        Jung-uk Kim <jkim@FreeBSD.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: [RFC] Saving the latest errno from syscalls.
Message-ID:  <8EE3605E-6E39-44A1-9E3A-5A37E1921D27@mac.com>
In-Reply-To: <201003111624.51018.jkim@FreeBSD.org>
References:  <201003111624.51018.jkim@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mar 11, 2010, at 1:24 PM, Jung-uk Kim wrote:

> While I was debugging syscalls, I found a very useful field in struct 
> thread, td_errno.  It seems it was added for dtrace but it is only 
> populated on amd64 and i386.  Is the attached patch acceptable for 
> maintainers of other platforms?

Isn't it better to do it in cpu_set_syscall_retval()?
That way you catch all cases, plus you can save the
translated error as well...

-- 
Marcel Moolenaar
xcllnt@mac.com






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8EE3605E-6E39-44A1-9E3A-5A37E1921D27>