summaryrefslogtreecommitdiffstats
path: root/sys/amd64/linux32
Commit message (Collapse)AuthorAgeFilesLines
* Regenerate system call tables.ed2012-05-255-10/+10
|
* Remove use of non-ISO-C integer types from system call tables.ed2012-05-251-2/+2
| | | | | These files already use ISO-C-style integer types, so make them less inconsistent by preferring the standard types.
* - >500 static DTrace probes for the linuxulatornetchild2012-05-052-0/+10
| | | | | | | | | | | | | | | | | | - DTrace scripts to check for errors, performance, ... they serve mostly as examples of what you can do with the static probe;s with moderate load the scripts may be overwhelmed, excessive lock-tracing may influence program behavior (see the last design decission) Design decissions: - use "linuxulator" as the provider for the native bitsize; add the bitsize for the non-native emulation (e.g. "linuxuator32" on amd64) - Add probes only for locks which are acquired in one function and released in another function. Locks which are aquired and released in the same function should be easy to pair in the code, inter-function locking is more easy to verify in DTrace. - Probes for locks should be fired after locking and before releasing to prevent races (to provide data/function stability in DTrace, see the man-page of "dtrace -v ..." and the corresponding DTrace docs).
* Regen for r234359.jkim2012-04-165-7/+7
|
* Correct an argument type of iopl syscall for Linuxulator. This also fixesjkim2012-04-161-1/+1
| | | | a warning from Clang, i. e., "args->level < 0 is always false".
* Regen for r234357.jkim2012-04-165-31/+16
|
* Correct arguments of stat64, fstat64 and lstat64 syscalls for Linuxulator.jkim2012-04-161-6/+6
|
* Regen for r234352.jkim2012-04-165-10/+27
|
* - Implement pipe2 syscall for Linuxulator. This syscall appeared in 2.6.27jkim2012-04-163-22/+2
| | | | | | | | | | but GNU libc used it without checking its kernel version, e. g., Fedora 10. - Move pipe(2) implementation for Linuxulator from MD files to MI file, sys/compat/linux/linux_file.c. There is no MD code for this syscall at all. - Correct an argument type for pipe() from l_ulong * to l_int *. Probably this was the source of MI/MD confusion. Reviewed by: emulation
* regennetchild2012-03-105-7/+583
|
* - add comments to syscalls.master and linux(32)_dummy about which linuxnetchild2012-03-102-1/+102
| | | | | | | | | | kernel version introduced the sysctl (based upon a linux man-page) - add comments to sscalls.master regarding some names of sysctls which are different than the linux-names (based upon the linux unistd.h) - add some dummy sysctls - name an unimplemented sysctl MFC after: 1 month
* Convert files to UTF-8uqs2012-01-153-3/+3
|
* Regen.jhb2011-12-295-10/+64
|
* Implement linux_fadvise64() and linux_fadvise64_64() usingjhb2011-12-293-4/+15
| | | | | | | kern_posix_fadvise(). Reviewed by: silence on emulation@ MFC after: 2 weeks
* - Add the ffclock_getcounter(), ffclock_getestimate() and ffclock_setestimate()lstewart2011-11-211-0/+1
| | | | | | | | | | | | | | | | | | | | system calls to provide feed-forward clock management capabilities to userspace processes. ffclock_getcounter() returns the current value of the kernel's feed-forward clock counter. ffclock_getestimate() returns the current feed-forward clock parameter estimates and ffclock_setestimate() updates the feed-forward clock parameter estimates. - Document the syscalls in the ffclock.2 man page. - Regenerate the script-derived syscall related files. Committed on behalf of Julien Ridoux and Darryl Veitch from the University of Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward Clock Synchronization Algorithms" project. For more information, see http://www.synclab.org/radclock/ Submitted by: Julien Ridoux (jridoux at unimelb edu au)
* Regenerate system call tables.ed2011-11-195-7/+12
|
* Make the Linux *at() calls a bit more complete.ed2011-11-191-2/+2
| | | | | | | Properly support: - AT_EACCESS for faccessat(), - AT_SYMLINK_FOLLOW for linkat().
* Regenerate system call tables.ed2011-11-195-8/+8
|
* Improve *access*() parameter name consistency.ed2011-11-191-2/+2
| | | | | | | | | The current code mixes the use of `flags' and `mode'. This is a bit confusing, since the faccessat() function as a `flag' parameter to store the AT_ flag. Make this less confusing by using the same name as used in the POSIX specification -- `amode'.
* Correct the types of the arguments to return probes of the syscallrstone2011-11-111-1/+1166
| | | | | | | | provider. Previously we were erroneously supplying the argument types of the corresponding entry probe. Reviewed by: rpaulo MFC after: 1 week
* Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.ed2011-11-071-1/+1
| | | | | | The SYSCTL_NODE macro defines a list that stores all child-elements of that node. If there's no SYSCTL_DECL macro anywhere else, there's no reason why it shouldn't be static.
* Auto-generated code from sys_ prefixing makesyscalls.sh changekmacy2011-09-161-42/+42
| | | | Approved by: re(bz)
* In order to maximize the re-usability of kernel code in user space thiskmacy2011-09-161-3/+3
| | | | | | | | | | | | | patch modifies makesyscalls.sh to prefix all of the non-compatibility calls (e.g. not linux_, freebsd32_) with sys_ and updates the kernel entry points and all places in the code that use them. It also fixes an additional name space collision between the kernel function psignal and the libc function of the same name by renaming the kernel psignal kern_psignal(). By introducing this change now we will ease future MFCs that change syscalls. Reviewed by: rwatson Approved by: re (bz)
* Second-to-last commit implementing Capsicum capabilities in the FreeBSDrwatson2011-08-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | kernel for FreeBSD 9.0: Add a new capability mask argument to fget(9) and friends, allowing system call code to declare what capabilities are required when an integer file descriptor is converted into an in-kernel struct file *. With options CAPABILITIES compiled into the kernel, this enforces capability protection; without, this change is effectively a no-op. Some cases require special handling, such as mmap(2), which must preserve information about the maximum rights at the time of mapping in the memory map so that they can later be enforced in mprotect(2) -- this is done by narrowing the rights in the existing max_protection field used for similar purposes with file permissions. In namei(9), we assert that the code is not reached from within capability mode, as we're not yet ready to enforce namespace capabilities there. This will follow in a later commit. Update two capability names: CAP_EVENT and CAP_KEVENT become CAP_POST_KEVENT and CAP_POLL_KEVENT to more accurately indicate what they represent. Approved by: re (bz) Submitted by: jonathan Sponsored by: Google Inc
* Revert r220032:linux compat: add SO_PASSCRED option with basic handlingavg2011-03-311-1/+0
| | | | | | | | | | I have not properly thought through the commit. After r220031 (linux compat: improve and fix sendmsg/recvmsg compatibility) the basic handling for SO_PASSCRED is not sufficient as it breaks recvmsg functionality for SCM_CREDS messages because now we would need to handle sockcred data in addition to cmsgcred. And that is not implemented yet. Pointyhat to: avg
* linux compat: add SO_PASSCRED option with basic handlingavg2011-03-261-0/+1
| | | | | | | | This seems to have been a part of a bigger patch by dchagin that either haven't been committed or committed partially. Submitted by: dchagin, nox MFC after: 2 weeks
* linux compat: add non-dummy capget and capset system calls, regenerateavg2011-03-266-12/+38
| | | | | | | | | | And drop dummy definitions for those system calls. This may transiently break the build. PR: kern/149168 Submitted by: John Wehle <john@feith.com> Reviewed by: netchild MFC after: 2 weeks
* linux compat: add non-dummy capget and capset system callsavg2011-03-261-2/+4
| | | | | | | PR: kern/149168 Submitted by: John Wehle <john@feith.com> Reviewed by: netchild MFC after: 2 weeks
* Export the correct AT_PLATFORM value.dchagin2011-03-261-2/+1
| | | | | | | Since signal trampolines are copied to the shared page do not need to leave place on the stack for it. Forgotten in the previous commit. MFC after: 1 Week
* Enable shared page use for amd64/linux32 and i386/linux binaries.dchagin2011-03-132-16/+15
| | | | | | Move signal trampoline code from the top of the stack to the shared page. MFC after: 2 Weeks
* add DTrace systrace support for linux32 and freebsd32 on amd64 syscallsavg2011-03-125-3/+5431
| | | | | | | | | Regenerate system call and systrace support files. PR: kern/152822 Submitted by: Artem Belevich <fbsdlist@src.cx> Reviewed by: jhb (earlier version) MFC after: 3 weeks
* add DTrace systrace support for linux32 and freebsd32 on amd64 syscallsavg2011-03-123-5/+7
| | | | | | | | | | This commits makes necessary changes in syscall/sysent generation infrastructure. PR: kern/152822 Submitted by: Artem Belevich <fbsdlist@src.cx> Reviewed by: jhb (ealier version) MFC after: 3 weeks
* Extend struct sysvec with new method sv_schedtail, which is used for andchagin2011-03-081-4/+1
| | | | | | | | | | | | | | | explicit process at fork trampoline path instead of eventhadler(schedtail) invocation for each child process. Remove eventhandler(schedtail) code and change linux ABI to use newly added sysvec method. While here replace explicit comparing of module sysentvec structure with the newly created process sysentvec to detect the linux ABI. Discussed with: kib MFC after: 2 Week
* Remove dead code.dchagin2011-03-071-2/+0
| | | | MFC after: 1 Week
* For realtime signals fill the sigval value.dchagin2011-02-151-0/+1
|
* Sort include files in the alphabetical order.dchagin2011-02-131-1/+1
|
* Move linux_clone(), linux_fork(), linux_vfork() to a MI path.dchagin2011-02-122-242/+1
|
* In preparation for moving linux_clone() to a MI pathdchagin2011-02-122-1/+12
| | | | introduce linux_set_upcall_kse().
* In preparation for moving linux_clone () to a MI pathdchagin2011-02-121-40/+46
| | | | | | move the TLS code in a separate function. Use function parameter instead of direct using register.
* Regen for r218610.dchagin2011-02-123-4/+4
|
* The fourth argument of linux_clone is a pointer to the TLS. Change clone ↵dchagin2011-02-121-2/+1
| | | | syscall definition to match actual linux one.
* Regen for r218101.dchagin2011-01-301-3/+3
| | | | MFC after: 1 Month.
* Change linux futex syscall definition to match actual linux one.dchagin2011-01-301-2/+2
| | | | MFC after: 1 Month.
* The kern_wait() code already removes the SIGCHLD signal for the waiteddchagin2011-01-301-7/+0
| | | | | | | | | process. Removing other SIGCHLD signals is not needed and may cause problems. Pointed out by: jilles MFC after: 1 Month.
* My style(9) bug.dchagin2011-01-291-1/+3
| | | | | | Pointed out by: kib MFC after: 1 Month.
* Implement a variation of the linux_common_wait() which shoulddchagin2011-01-281-0/+43
| | | | | | | | | be used by linuxolator itself. Move linux_wait4() to MD path as it requires native struct rusage translation to struct l_rusage on linux32/amd64. MFC after: 1 Month.
* To avoid excessive code duplication move struct rusage translationdchagin2011-01-281-18/+23
| | | | | | to a separate function. MFC after: 1 Month.
* linux_sigreturn() loads the struct trapframe from l_sigcontextkib2011-01-271-22/+22
| | | | | | | | | | | | | | members, thus making a signed extension of 32 bit register context. If the register is not touched in usermode between return from signal and next syscall entry, the sign-extension part of 64bit register is not cleared, causing linux32_fetch_syscall_args() to read wrong values. Use unsigned type for the registers in the linux sigcontext. Reported by: Jacob Frelinger <jacob.frelinger duke edu>, arundel In collaboration with: dchagin MFC after: 1 week
* Add macro to test the sv_flags of any process. Change some places to testdchagin2011-01-261-1/+1
| | | | | | | the flags instead of explicit comparing with address of known sysentvec structures. MFC after: 1 month
* Remove redundant, bogus, and even harmful uses of setting TS bit in CR0.jkim2011-01-141-1/+1
| | | | | | | It is done from fpstate_drop() when it is really necessary. Reviewed by: kib MFC after: 1 week
OpenPOWER on IntegriCloud