- Jul 21, 2015
-
-
zbb authored
malloc() should not go to sleep in case of lack of resource while the kernel thread is holding a non-sleepable lock. - change malloc() flags to M_NOWAIT in such cases implement lpi_free_chunk() routine as it will be needed when ITT allocation fails in its_device_alloc_locked() - do not increase verbosity of this code since upper layers will communicate an error if the interrupt setup fails Obtained from: Semihalf Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3121 git-svn-id: svn+ssh://svn.freebsd.org/base/head@285755 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
ed authored
Though the standard C library uses a 'struct timespec' using a 64-bit 'time_t', there is no need to use such a type at the system call level. CloudABI uses a simple 64-bit unsigned timestamp in nanoseconds. This is sufficient to express any time value from 1970 to 2554. The CloudABI low-level interface also supports fetching timestamp values with a lower precision. Instead of overloading the clock ID argument for this purpose, the system call provides a precision argument that may be used to specify the maximum slack. The current system call implementation does not use this information, but it's good to already have this available. Expose cloudabi_convert_timespec(), as we're going to need this for fstat() as well. Obtained from: https://github.com/NuxiNL/freebsd git-svn-id: svn+ssh://svn.freebsd.org/base/head@285754 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
zbb authored
It is possible that some HW will use different PCI devids, hence allow to replace the default domain:bus:slot:func schema by implementing and registering custom function. Obtained from: Semihalf Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3118 git-svn-id: svn+ssh://svn.freebsd.org/base/head@285752 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
kib authored
it_need was wrong [*]. Restore the releases and add a comment explaining why it is needed. Noted by: alc [*] Reviewed by: bde [*] Sponsored by: The FreeBSD Foundation git-svn-id: svn+ssh://svn.freebsd.org/base/head@285751 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
ed authored
git-svn-id: svn+ssh://svn.freebsd.org/base/head@285746 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
zbb authored
Use Vritual Counter register associated with Generic Timer to read the cyclecount. Obtained from: Semihalf Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3134 git-svn-id: svn+ssh://svn.freebsd.org/base/head@285745 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
ed authored
Summary: Remove the stub system call that was put in place during the system call import and replace it by a target-dependent version stored in sys/amd64. Initialize the thread in a way similar to cpu_set_upcall_kse(). We provide the entry point with two arguments: the thread ID and the argument pointer. Test Plan: Thread creation still seems to work, both for FreeBSD and CloudABI binaries. Reviewers: dchagin, mjg, kib Reviewed By: kib Subscribers: imp Differential Revision: https://reviews.freebsd.org/D3110 git-svn-id: svn+ssh://svn.freebsd.org/base/head@285744 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
zbb authored
Add a method to identify CPU based on RAW MIDR value. Obtained from: Semihalf Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3117 git-svn-id: svn+ssh://svn.freebsd.org/base/head@285743 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
ed authored
According to the last(1) man page, the "reboot" pseudo-user should print all system reboot entries. This got broken by the utmpx import, as records are typed. Re-add support for "last reboot" by specifically matching against SHUTDOWN_TIME and BOOT_TIME records. PR: 168844 Submitted by: matthew@ MFC after: 1 month git-svn-id: svn+ssh://svn.freebsd.org/base/head@285742 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
pluknet authored
MFC after: 1 week git-svn-id: svn+ssh://svn.freebsd.org/base/head@285741 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
rrs authored
lock on the INP before calling the tunnel protocol, else a LOR may occur (it does with SCTP for sure). Instead we must acquire a ref count and release the lock, taking care to allow for the case where the UDP socket has gone away and *not* unlocking since the refcnt decrement on the inp will do the unlock in that case. Reviewed by: tuexen MFC after: 3 weeks git-svn-id: svn+ssh://svn.freebsd.org/base/head@285740 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
pluknet authored
PR: 201725 Submitted by: Thomas Cort MFC after: 1 week git-svn-id: svn+ssh://svn.freebsd.org/base/head@285739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
hiren authored
r267961 did remove them but they "reappeared" when ixgbe(4) rewrite happened in r280182. Sponsored by: Limelight Networks git-svn-id: svn+ssh://svn.freebsd.org/base/head@285736 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
ae authored
it to check that partition has enough space to write bootcode doesn't work. Use the known size of provider instead. PR: 201504 MFC after: 1 week git-svn-id: svn+ssh://svn.freebsd.org/base/head@285735 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
allanjude authored
* Add whitespace trimming to some fields (username, group, size, inode, blocks) to avoid whitespace in JSON strings * fix -m mode, was invalid JSON (repeated keys), and was missing outer array container * in -n mode, numeric uids and gids were returned as strings Approved by: eadler (mentor) Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D2854 git-svn-id: svn+ssh://svn.freebsd.org/base/head@285734 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
gjb authored
- pkg(8) cannot be removed before subsequent reinvocations - The PKG_CACHEDIR cannot be cleaned after the repo*.sqlite has been removed - pkg(8) cannot be removed as a precursor to any of the other steps involved here MFC after: 3 days X-MFC-With: r285722 X-MFC-Before: 10.2-{BETA3,RC1} (whichever happens next) Sponsored by: The FreeBSD Foundation git-svn-id: svn+ssh://svn.freebsd.org/base/head@285733 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f -
allanjude authored
PR: 194359 Requested by: sbruno, hiren Approved by: marcel MFC after: 3 days Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D3139 git-svn-id: svn+ssh://svn.freebsd.org/base/head@285732 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
gnn authored
PR: 194935 Submitted by: Jim Thompson MFC after: 2 weeks git-svn-id: svn+ssh://svn.freebsd.org/base/head@285730 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
kib authored
git-svn-id: svn+ssh://svn.freebsd.org/base/head@285724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
mav authored
While there, implement couple helper functions. git-svn-id: svn+ssh://svn.freebsd.org/base/head@285723 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
brd authored
Abstract the build, package and upload to handle building either type. Approved by: re (gjb) git-svn-id: svn+ssh://svn.freebsd.org/base/head@285722 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
pfg authored
Fix a warning triggered by the gcc + FORTIFY_SOURCE patches: In function 'libusb20_parse_config_desc': lib/libusb/libusb20_desc.c:141: warning: passing argument 1 of 'memcpy' discards qualifiers from pointer target type Submitted by: hselansky git-svn-id: svn+ssh://svn.freebsd.org/base/head@285720 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
pfg authored
Actually just a typo. Detected by gcc + FORTIFY_SOURCE patches. CID: 1007594 MFC after: 3 days git-svn-id: svn+ssh://svn.freebsd.org/base/head@285719 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
- Jul 20, 2015
-
-
ed authored
Just like FreeBSD+Capsicum, CloudABI uses process descriptors. Return the file descriptor number to the parent process. To the child process we both return a special value for the file descriptor number (CLOUDABI_PROCESS_CHILD). We also return the thread ID of the new thread in the copied process, so the threading library can reinitialize itself. Obtained from: https://github.com/NuxiNL/freebsd git-svn-id: svn+ssh://svn.freebsd.org/base/head@285716 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
ed authored
This change refactors the existing create_thread() function to be more generic. It replaces almost all of its arguments by a callback that can be used to extract the thread ID and copy it out to the right place, but also to perform additional initialization steps, such as setting the trapframe. This also makes the difference between thr_new() and thr_create() more clear in my opinion. This function is going to be used by the CloudABI compatibility layer. It looks like the OpenSolaris compatibility framework already provides a function called thread_create(). Rename this function to do_thread_create() and use a macro to deal with the namespacing conflict. A similar approach is already used for thread_exit(). MFC after: 1 month git-svn-id: svn+ssh://svn.freebsd.org/base/head@285715 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
mav authored
Submitted by: Masao Uebayashi git-svn-id: svn+ssh://svn.freebsd.org/base/head@285714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
zec authored
MFC after: 3 days git-svn-id: svn+ssh://svn.freebsd.org/base/head@285713 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
ae authored
dummynet code and for setdscp. This fixes wrong checksums in some cases. Obtained from: Yandex LLC MFC after: 2 weeks Sponsored by: Yandex LLC git-svn-id: svn+ssh://svn.freebsd.org/base/head@285712 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
ae authored
Obtained from: Yandex LLC MFC after: 2 weeks Sponsored by: Yandex LLC git-svn-id: svn+ssh://svn.freebsd.org/base/head@285711 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
ae authored
MFC after: 2 weeks Sponsored by: Yandex LLC git-svn-id: svn+ssh://svn.freebsd.org/base/head@285710 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
markj authored
Reported by: bz X-MFC-With: r285704 git-svn-id: svn+ssh://svn.freebsd.org/base/head@285709 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
markj authored
PR: 201700 git-svn-id: svn+ssh://svn.freebsd.org/base/head@285708 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
marcel authored
proto(4) should attach to instead of the normal driver. Document the variable. git-svn-id: svn+ssh://svn.freebsd.org/base/head@285707 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
markj authored
rwlock read lock. Otherwise the lockstat:::rw-spin probe will fire spuriously. MFC after: 1 week git-svn-id: svn+ssh://svn.freebsd.org/base/head@285706 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
mckusick authored
Reviewed by: kib git-svn-id: svn+ssh://svn.freebsd.org/base/head@285705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
markj authored
sx(9), rather than using the probe function name to determine whether a given lock is a read lock or a write lock. Update lockstat(1) accordingly. git-svn-id: svn+ssh://svn.freebsd.org/base/head@285704 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
markj authored
in lockstat.ko. This means that lockstat probes now have typed arguments and will utilize SDT probe hot-patching support when it arrives. Reviewed by: gnn Differential Revision: https://reviews.freebsd.org/D2993 git-svn-id: svn+ssh://svn.freebsd.org/base/head@285703 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
bapt authored
We want to ensure we always use libarchive from ports in the ports tree. It simplifies ports maintainance and anyway libarchive.pc was not reflecting the different way libarchive can be built in base git-svn-id: svn+ssh://svn.freebsd.org/base/head@285702 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
delphij authored
-HEAD) in libntp so we can make reproducible build. PR: bin/201661 Reviewed by: gjb, cy, roberto MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D3122 git-svn-id: svn+ssh://svn.freebsd.org/base/head@285701 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-
markm authored
Approved by: so (/dev/random blanket) git-svn-id: svn+ssh://svn.freebsd.org/base/head@285700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
-