From: Arnd Bergmann <arnd@arndb.de>
To: Yury Norov <ynorov@caviumnetworks.com>
Cc: libc-alpha@sourceware.org, Joseph Myers <joseph@codesourcery.com>,
schwab@suse.de, catalin.marinas@arm.com, davem@davemloft.net,
szabolcs.nagy@arm.com, maxim.kuvyrkov@linaro.org,
pinskia@gmail.com, bamvor.zhangjian@huawei.com,
fweimer@redhat.com, Prasun.Kapoor@cavium.com,
adhemerval.zanella@linaro.org
Subject: Re: [PATCH v4 2/3] 32-bit ABIs: support stat syscall family
Date: Tue, 30 Aug 2016 20:05:00 -0000 [thread overview]
Message-ID: <201608302204.01066.arnd@arndb.de> (raw)
In-Reply-To: <20160830192853.GA5959@yury-N73SV>
On Tuesday 30 August 2016, Yury Norov wrote:
> On Tue, Aug 30, 2016 at 05:15:44PM +0200, Arnd Bergmann wrote:
> > On Tuesday 30 August 2016, Yury Norov wrote:
> > > On Mon, Aug 29, 2016 at 10:34:38PM +0200, Arnd Bergmann wrote:
> >
> > + new version with conversion of st_ino field only, a different new hack
> > but simpler.
> >
> > > - initial version. Effective, simple, free of hacks but (because of)
> > > non-generic.
> >
> > I can't find that version now, can you post a copy of that original
> > patch or a link to an archived discussion?
> >
>
> It seems I never published it. It was based on arm32 syscall handlers,
> and in kernel list it was decided to use aarch64 wrappers, so I
> dropped it. Briefly, there was custom struct stat that was identical
> to struct stat64, and identical to kernel one. The rest is like in
> previous version except there were no code that converts timespecs.
>
> > The layout we want is exactly what we have for stat64
> > sysdeps/unix/sysv/linux/bits/stat.h (not
> > sysdeps/unix/sysv/linux/generic/bits/stat.h), right?
> >
> > Arnd
>
> This is the implementation of fxstat() and lxstat() syscalls that use standard
> struct stat layout, and convert kernel_stat to user struct stat with
> __xstat{,64}_conv(). Here's used standard mechanism, but I had to move all
> syscalls under platform directory. Se the body of the patch for details.
>
> I see no reason to continue this work as it's both ineffective and non-generic.
> Tomorrow I'll try the idea of Arnd - roll back to arm32 handlers in kernel, and
> try arm32 wrappers in glibc, or custom wrappers to avoid useless copying. I
> think there will be as much platform code, as in this version.
Ok, sounds good.
> Notice that it was already discussed in linux mail list, and aarch64 syscalls
> were called preferable because arm32 versions are broken (st_ino field), and
> other reasons.
I'm sure I was agreeing to that at the time, but after the long discussions
we have had since, working around the st_ino problem seems much simpler than
working around the incompatible timestamps.
Arnd
prev parent reply other threads:[~2016-08-30 20:05 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-04 10:03 [PATCH 0/3] stat syscall family: support modern 32-bit ABI requirements Yury Norov
2016-08-04 10:03 ` [PATCH 1/3] endian.h: introduce __type3264() macro Yury Norov
2016-08-04 10:03 ` [PATCH 3/3] [AARCH64] ILP32: redirect stat syscall family to 64-bit handlers Yury Norov
2016-08-04 12:41 ` Joseph Myers
2016-08-04 10:03 ` [PATCH v4 2/3] 32-bit ABIs: support stat syscall family Yury Norov
2016-08-04 12:40 ` Joseph Myers
2016-08-05 8:54 ` Yury Norov
2016-08-05 17:28 ` Joseph Myers
2016-08-09 13:27 ` Yury Norov
2016-08-09 14:24 ` Arnd Bergmann
2016-08-09 15:16 ` Yury Norov
2016-08-09 15:59 ` Arnd Bergmann
2016-08-09 17:41 ` Yury Norov
2016-08-09 20:17 ` Arnd Bergmann
2016-08-10 12:45 ` Zhangjian (Bamvor)
2016-08-09 15:54 ` Andreas Schwab
2016-08-09 20:29 ` Joseph Myers
2016-08-09 20:58 ` Arnd Bergmann
2016-08-09 21:04 ` Joseph Myers
2016-08-09 21:18 ` Arnd Bergmann
2016-08-17 19:14 ` Yury Norov
2016-08-25 15:34 ` Arnd Bergmann
2016-08-29 16:02 ` Yury Norov
2016-08-29 20:35 ` Arnd Bergmann
2016-08-30 11:31 ` Yury Norov
2016-08-30 15:21 ` Arnd Bergmann
2016-08-30 19:29 ` Yury Norov
2016-08-30 20:05 ` Arnd Bergmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201608302204.01066.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=Prasun.Kapoor@cavium.com \
--cc=adhemerval.zanella@linaro.org \
--cc=bamvor.zhangjian@huawei.com \
--cc=catalin.marinas@arm.com \
--cc=davem@davemloft.net \
--cc=fweimer@redhat.com \
--cc=joseph@codesourcery.com \
--cc=libc-alpha@sourceware.org \
--cc=maxim.kuvyrkov@linaro.org \
--cc=pinskia@gmail.com \
--cc=schwab@suse.de \
--cc=szabolcs.nagy@arm.com \
--cc=ynorov@caviumnetworks.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).