From: Simon Marchi <simon.marchi@polymtl.ca>
To: John Baldwin <jhb@freebsd.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v2 2/3] Add an optional "alias" attribute to syscall entries.
Date: Fri, 09 Nov 2018 15:36:00 -0000 [thread overview]
Message-ID: <2cf4fb43a080a78049ad6aa889949332@polymtl.ca> (raw)
In-Reply-To: <5e2f036844a8cbf04c3947555bee41fc@polymtl.ca>
On 2018-11-09 10:28, Simon Marchi wrote:
> On 2018-11-06 12:54, John Baldwin wrote:
>> When setting a syscall catchpoint by name, catch syscalls whose name
>> or alias matches the requested string.
>>
>> When the ABI of a system call is changed in the FreeBSD kernel, this
>> is implemented by leaving a compatibility system call using the old
>> ABI at the existing "slot" and allocating a new system call for the
>> version using the new ABI. For example, new fields were added to the
>> 'struct kevent' used by the kevent() system call in FreeBSD 12. The
>> previous kevent() system call in FreeBSD 12 kernels is now called
>> freebsd11_kevent() and is still used by older binaries compiled
>> against the older ABI. The freebsd11_kevent() system call can be
>> tagged with an "alias" attribute of "kevent" permitting 'catch syscall
>> kevent' to catch both system calls and providing the expected user
>> behavior for both old and new binaries. It also provides the expected
>> behavior if GDB is compiled on an older host (such as a FreeBSD 11
>> host).
>
> Will we ever need to provide more than one alias to a syscall?
Sorry, I just saw you have already answered this question, here:
https://sourceware.org/ml/gdb-patches/2018-10/msg00385.html
Simon
next prev parent reply other threads:[~2018-11-09 15:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-06 17:56 [PATCH v2 0/3] Update FreeBSD's syscall table John Baldwin
2018-11-06 17:56 ` [PATCH v2 1/3] Return a vector of integers from get_syscalls_by_group John Baldwin
2018-11-09 4:27 ` Kevin Buettner
2018-11-09 17:55 ` John Baldwin
2018-11-06 17:56 ` [PATCH v2 2/3] Add an optional "alias" attribute to syscall entries John Baldwin
2018-11-09 4:34 ` Kevin Buettner
2018-11-09 15:28 ` Simon Marchi
2018-11-09 15:36 ` Simon Marchi [this message]
2018-11-09 16:31 ` Pedro Alves
2018-11-09 16:52 ` John Baldwin
2018-11-06 17:56 ` [PATCH v2 3/3] Update the FreeBSD system call table to match FreeBSD 12.0 John Baldwin
2018-11-09 4:38 ` Kevin Buettner
2018-11-09 16:34 ` Pedro Alves
2018-11-09 17:36 ` John Baldwin
2018-11-06 18:49 ` [PATCH v2 0/3] Update FreeBSD's syscall table Sergio Durigan Junior
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=2cf4fb43a080a78049ad6aa889949332@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb-patches@sourceware.org \
--cc=jhb@freebsd.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