From: afiskon@devzen.ru (Aleksander Alekseev)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Different ways of doing a system call
Date: Sun, 17 Jul 2016 18:14:24 +0300 [thread overview]
Message-ID: <20160717181424.24e59554@fujitsu> (raw)
Hello
Recently I've explored different ways of doing a system call on Linux
(only on x86 and x64 architectures). Here is what I discovered so far:
* int 0x80 (x86, slow)
* sysenter (x86, fast)
* vsyscall (x86, deprecated)
* VDSO trampoline (x86, fast)
* syscall (x64, fast)
Tell me, please:
* Didn't I miss anything?
* What are _recommended_ ways of doing a system call on x86 and x64?
* I just wanted to clarify - in theory it's OK to use both say int 0x80
and syscall in the same ELF64 binary? Wouldn't it cause a program to
crash or something?
--
Best regards,
Aleksander Alekseev
reply other threads:[~2016-07-17 15:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20160717181424.24e59554@fujitsu \
--to=afiskon@devzen.ru \
--cc=kernelnewbies@lists.kernelnewbies.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 NNTP newsgroup(s).