From: Florian Weimer <fw@deneb.enyo.de>
To: Siddhesh Poyarekar <siddhesh@gotplt.org>
Cc: libc-alpha@sourceware.org
Subject: Re: [PATCH 1/5] Linux: Add tables with system call numbers
Date: Tue, 31 Dec 2019 17:04:18 +0100 [thread overview]
Message-ID: <87woaclbwd.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: <0b6f5557-e67f-b92f-269d-163c8df2d3c8@gotplt.org> (Siddhesh Poyarekar's message of "Tue, 31 Dec 2019 21:20:13 +0530")
* Siddhesh Poyarekar:
> On 31/12/19 4:52 pm, Florian Weimer wrote:
>>> Prefix the auto-generated files with a comment header like so:
>>>
>>> /* AUTOGENERATED by update-syscall-lists.py. DO NOT EDIT. */
>>
>> I'm concerned that this unnecessarily makes processing by tools more
>> difficult, so I'd like to avoid this.
>
> The tools only need to filter out \/\*.*\*\/ (or een simpler, omit the
> first line if it's just for these files) which shouldn't be more than a
> line or two of code. Do you see any other challenges here? It's a very
> useful comment IMO and definitely worth the extra line of code one would
> have to add to omit comments or even the first line.
I'll see what I can do about this. It will require quite a bit
re-testing.
>> But we need locking if this is used from build-many-glibcs.py,
>> otherwise we'll lose updates even with the rename approach. Locking
>> the file being updated is the easiest way to achieve this. It's true
>> that we have data loss if the script is terminated between the
>> truncate and seek, but most editors have the same issue. Therefore, I
>> want to leave this as-is.
>
> It would be nice to make build-many-glibcs.py smarter about this. The
> problem with locking seems limited to syscall-names.list and not
> arch-syscalls.h since the latter ought to be different files for
> build-many-glibcs, right?
No, there are system call tables which are shared across tuples,
e.g. little-endian and big-endian variants. These also get updated
multiple times.
The only alternative would be to lock a different file, perhaps
sysdeps/unix/sysv/linux/Makefile. I don't know the impact yet on the
execution time.
next prev parent reply other threads:[~2019-12-31 16:05 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-17 14:30 [PATCH 0/5] Implement built-in system call tables Florian Weimer
2019-12-17 14:30 ` [PATCH 1/5] Linux: Add tables with system call numbers Florian Weimer
2019-12-28 12:39 ` Siddhesh Poyarekar
2019-12-31 11:22 ` Florian Weimer
2019-12-31 13:57 ` Adhemerval Zanella
2019-12-31 16:48 ` Florian Weimer
2019-12-31 15:50 ` Siddhesh Poyarekar
2019-12-31 16:04 ` Florian Weimer [this message]
2019-12-31 16:11 ` Siddhesh Poyarekar
2019-12-31 17:43 ` Florian Weimer
2019-12-31 20:51 ` Florian Weimer
2020-01-02 5:55 ` Siddhesh Poyarekar
2020-01-02 9:22 ` Florian Weimer
2019-12-17 14:30 ` [PATCH 2/5] Linux: Use system call tables during build Florian Weimer
2019-12-28 12:39 ` Siddhesh Poyarekar
2019-12-17 14:30 ` [PATCH 3/5] build-many-glibcs.py: Introduce LinuxHeadersPolicyForBuild Florian Weimer
2019-12-28 12:39 ` Siddhesh Poyarekar
2019-12-17 14:31 ` [PATCH 4/5] build-many-glibcs.py: Introduce glibc build policy classes Florian Weimer
2019-12-28 12:39 ` Siddhesh Poyarekar
2019-12-17 14:31 ` [PATCH 5/5] build-many-glibcs.py: Implement update-syscalls command Florian Weimer
2019-12-28 12:39 ` Siddhesh Poyarekar
2020-01-01 10:35 ` [PATCH 0/5] Implement built-in system call tables Florian Weimer
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
List information: https://www.gnu.org/software/libc/involved.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87woaclbwd.fsf@mid.deneb.enyo.de \
--to=fw@deneb.enyo.de \
--cc=libc-alpha@sourceware.org \
--cc=siddhesh@gotplt.org \
/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).