Displaying 1 50 of 38,541 commits (0.009s)

DragonFlyBSD — usr.bin/kcollect kcollect.c kcollect.8

kcollect - Final dbm support code

* Fix time conversion issues and memory leaks

* Code cleanup

* Documentation cleanup (from swildner)

Submitted-by: htse (Harald Brinkhof)

DragonFlyBSD — sbin/hammer ondisk.c cmd_mirror.c

sbin/hammer: Use uuid_compare(3) instead of bcmp(3)

(missed ones from 118205ce)

DragonFlyBSD — sys/netinet ip_flow.c

ipflow: Utilize netisr_domsg_global
Delta File
+1 -1 sys/netinet/ip_flow.c
+1 -1 1 file

DragonFlyBSD — sys/netinet ip_flow.c

ipflow: Allocate ipflow context on its owner cpu.
Delta File
+31 -23 sys/netinet/ip_flow.c
+31 -23 1 file

DragonFlyBSD — sys/netinet ip_flow.c

ipflow: Use INTWAIT | NULLOK for kmalloc
Delta File
+1 -1 sys/netinet/ip_flow.c
+1 -1 1 file

DragonFlyBSD — sys/netinet ip_flow.c

ipflow: No need to mark it cachealign.

ipflow is allocated on the owner cpu.
Delta File
+1 -1 sys/netinet/ip_flow.c
+1 -1 1 file

DragonFlyBSD — sys/netinet ip_flow.c

ipflow: Remove reference counting, which no longer applies.
Delta File
+6 -54 sys/netinet/ip_flow.c
+6 -54 1 file

DragonFlyBSD — sys/netinet ip_flow.c

ipflow: Stringent assertion.
Delta File
+1 -7 sys/netinet/ip_flow.c
+1 -7 1 file

DragonFlyBSD — sys/netinet in_rmx.c

route: Minor style change.
Delta File
+1 -2 sys/netinet/in_rmx.c
+1 -2 1 file

DragonFlyBSD — sys/net if_poll.c

polling: Utilize netisr_domsg_global
Delta File
+3 -3 sys/net/if_poll.c
+3 -3 1 file

DragonFlyBSD — sys/net if_poll.c

polling: No need to explicitly align io context and systimer context
Delta File
+4 -5 sys/net/if_poll.c
+4 -5 1 file

DragonFlyBSD — sys/net if_poll.c

polling: Adjust comment
Delta File
+10 -3 sys/net/if_poll.c
+10 -3 1 file

DragonFlyBSD — sys/net if_poll.c

polling: Don't do direct input in critical section.
Delta File
+30 -9 sys/net/if_poll.c
+30 -9 1 file

DragonFlyBSD — usr.bin/kcollect kcollect.c kcollect.8

kcollect - Add initial dbm support

* Fully implement the -b and -d options to allow a dbm file to
  be recorded / appended, and played back.

* Still needs a little fleshing out for scaling info and
  headers.

Submitted-by: htse (Harald Brinkhof)

DragonFlyBSD — sbin/hammer cmd_volume.c misc.c

sbin/hammer: Fix strncpy(3) length

The last one is ok, but HAMMER userspace doesn't use strl variants
except for this, then just use strncpy(3) for better portability.
Delta File
+2 -2 sbin/hammer/cmd_volume.c
+2 -1 sbin/hammer/misc.c
+4 -3 2 files

DragonFlyBSD — sys/conf options, sys/config LINT64 VKERNEL64

kernel: Remove no longer used FFS_ROOT option.

Last used in code removed in 8840cec90a57df5e7c0f84c3c3c1e9abea7f2632.

While here, remove some no longer necessary opt_ffs.h #includes.

DragonFlyBSD — sys/cpu/x86_64/include stdint.h, sys/sys _timeval.h types.h

<machine/stdint.h>: Add __suseconds_t for suseconds_t definitions.

DragonFlyBSD — sys/vfs/hammer2 hammer2_chain.c hammer2_inode.c

hammer2 - Fix bug in hammer2_chain_indkey_dir()

* The shortcut in hammer2_chain_indkey_dir() ignores the
  possibilty that the key breakdown chosen may not result
  in the clearing out of any elements in the parent.  If this
  occurs, an insertion operation following the function
  will assert on too many elements.

* Remove the shotcut.

DragonFlyBSD — sys/vfs/hammer hammer_vnops.c hammer_ondisk.c

sys/vfs/hammer: Use kuuid_compare() instead of bcmp()

though kuuid_compare() is probably slower than bcmp() in most cases.
It's not performance critical part anyway.

DragonFlyBSD — sbin/hammer hammer.h hammer_util.h, sbin/newfs_hammer newfs_hammer.c

sbin/hammer: Cleanup header includes

DragonFlyBSD — contrib/file ChangeLog README, contrib/file/doc libmagic.man magic.man

Merge branch 'vendor/FILE'
∈ Sascha Wildner - 62e32461 - 2017-09-23 19:22:44
Revert "Import file-5.22."

This reverts commit 89a9c80e537ed7238142c9af2cdc03401742a18a.

For some reason the 5.22 upgrade was not git-merged, looks like
copied instead. Caused merge conflicts with 5.32.

DragonFlyBSD — contrib/file/src softmagic.c, lib/libmagic config.h Makefile

Update files for file-5.32 import.

DragonFlyBSD — contrib/file ChangeLog README, contrib/file/doc file.man magic.man

Import file-5.32.

See ChangeLog for details.
Delta File
+500 -446 contrib/file/magic/Magdir/filesystems
+370 -465 contrib/file/src/softmagic.c
+670 -85 contrib/file/magic/Magdir/console
+478 -161 contrib/file/magic/Magdir/msdos
+425 -195 contrib/file/src/compress.c
+376 -217 contrib/file/src/cdf.c
+6,990 -1,774 161 files not shown
+9,809 -3,343 167 files

DragonFlyBSD — share/man/man9 microtime.9 microuptime.9

microuptime.9 microtime.9: Fix documentation of the get* function versions.

The kern.timecounter sysctl tree doesn't exist nowadays, the getmicrotime(),
getnanotime(), getmicrouptime() and getnanouptime() functions always
return the less precise time.

DragonFlyBSD — sbin/newfs_hammer2 newfs_hammer2.8

sbin/newfs_hammer2: Fix typo in newfs_hammer2(8)

of of

DragonFlyBSD — share/man/man4 psm.4, sys/dev/misc/psm psm.c

psm: Drop bpsm%d device files. Instead support non-blocking reads on psm%d.

The /dev/psm%d vs. /dev/bpsm%d separation doesn't serve any clear purpose
nowadays. Userland can just use fcntl(2) to switch the fd to non-blocking
or blocking mode as needed.
Delta File
+1 -19 share/man/man4/psm.4
+4 -15 sys/dev/misc/psm/psm.c
+5 -34 2 files

DragonFlyBSD — sbin/ifconfig ifconfig.c, share/man/man4 ix.4

polling: Implement direct input support.

When "direct input" is enabled by driver, driver's RX polling handler
will run ethernet/ip/tcp processing directly, which avoids cache-miss
on mbufs themselves.  Currently it is enabled on ix(4) by default.

The normal IP forwarding performance is improved by %12, while the fast
IP forwarding performance is improved by 10%.  13.2Mpps is achieved for
dual side IP forwarding!

1 request/connection HTTP/1.1 performance and avg-latency stay same,
but the latency is further stablized:
1K  5.20ms  -> 4.60ms
8K  6.43ms  -> 5.76ms
16K 16.30ms -> 14.90ms

DragonFlyBSD — usr.sbin/fstyp hammer2.c fstyp.8

usr.sbin/fstyp: Add initial HAMMER2 support

-l option and multiple/partial volumes are not supported yet.

DragonFlyBSD — sys/vfs/hammer2 hammer2_ioctl.c hammer2_chain.c

hammer2 - Fix hammer2 snapshot operation

* Bring the hammer2 snapshot code up-to-date with the pfs-create
  code.

* Fix initial inode number assignment for hammer2 snapshot code (it
  was starting at 1024 which obviously won't work).

* Correct hammer2_vop_ncreate() error code - it was not converting
  the hammer2 error code to a system error code.

DragonFlyBSD — sys/dev/misc/psm psm.c

psm: Get rid of PSM_LEVEL_NATIVE, and the psmwrite method used with that.

* Nothing in userspace ever uses this feature. This apparently was intended
  to allow implementing the complete mouse packet parsing in userspace.
Delta File
+7 -66 sys/dev/misc/psm/psm.c
+7 -66 1 file

DragonFlyBSD — sys/dev/misc/psm psm.c

psm: Remove dead unused code: psmpoll(), enable_lordless(), is_a_mouse().

* The is_a_mouse() check method was already disabled in the original
  FreeBSD commit, which added the psm(4) driver
  (git b3062b5d6a9d9631bf6a1612e27107ea9aa6801d ).
Delta File
+4 -78 sys/dev/misc/psm/psm.c
+4 -78 1 file

DragonFlyBSD — sys/vfs/hammer2 hammer2_flush.c hammer2_inode.c

hammer2 - Fix panic related to the accounting for pfs-create

* Properly disconnect the inode created by pfs-create from the spmp so it
  can be reassociated with the pmp.

* Do not allow the newly created inode to be emplaced on the spmp's sideq,
  which will cause a duplicate inode structure to be created if the
  pfs is then mounted.

Reported-by: Romick

DragonFlyBSD — sys/netinet in_pcb.c in_pcb.h, sys/netinet6 in6_src.c

inet/inet6: Randomize local port

Due to avoid lock intruction, this also improves connect(2)
performance a bit.
Delta File
+100 -190 sys/netinet/in_pcb.c
+42 -58 sys/netinet6/in6_src.c
+0 -5 sys/netinet/in_pcb.h
+142 -253 3 files

DragonFlyBSD — sys/vfs/hammer2 hammer2_vfsops.c

hammer2 - Fix flush issues with unmounted PFSs and shutdown panic

* Fix flush and shutdown issues when unmounted PFS's are present.
  These PFSs do not get flushed by the filesystem sync code because
  they haven't been mounted, but may still contain modified or
  referenced chains, as well as sideq'd inodes.

* Fix some other cleanup issues when unmounting.  Clean out vchain.pmp
  and fchain.pmp for the spmp during the unmount scan, which fixes a
  hammer2 pfs_memory_*() panic.

Reported-by: yellowrabbit2010
Delta File
+19 -1 sys/vfs/hammer2/hammer2_vfsops.c
+19 -1 1 file

DragonFlyBSD — sys/libkern arc4random.c, sys/platform/pc64/x86_64 mp_machdep.c

arc4random: Make arc4random context per-cpu.

Critical section is commented out, no consumers from ISRs/ithreads.

DragonFlyBSD — lib/libstand hammer1.c, sbin/hammer hammer_util.h uuid.c

sys/vfs/hammer: Add typedef hammer_uuid_t

Add typedef for uuid_t for better portability,
similar to hammer_crc_t and other hammer_xxx_t.
(Some platforms have char[16] for uuid_t instead of struct value)

No functional changes.

DragonFlyBSD — sbin/hammer uuid.c cmd_pfs.c, sbin/newfs_hammer newfs_hammer.c Makefile

sbin/hammer: Add uuid.c

Add a simple wrapper over uuid functions for better portability,
similar to sys/vfs/hammer/hammer_crc.h (which helped implement
version 7 CRC).

No functional changes.

DragonFlyBSD — sys/libkern arc4random.c, sys/sys libkern.h

arc4random: Minor style changes.

Use uintX_t instead of u_intX_t.
Delta File
+15 -15 sys/libkern/arc4random.c
+1 -1 sys/sys/libkern.h
+16 -16 2 files

DragonFlyBSD — sys/vfs/hammer2 hammer2_flush.c hammer2_io.c

hammer2 - performance pass

* Get rid of vfs.hammer2.cluster_write and stop using cluster_write()
  for the block device I/O.  This coupled into common unlock/lock
  situations on chains which would acquire and retire the DIO, and
  usually thus also the underlying buffer, many times before it
  really needed to be committed.

  This greatly reduces unnecessary writes to disk.

* Increase HAMMER2_FLUSH_DEPTH_LIMIT to 60.  It was set to 10 for
  debugging purposes.  This created an O(N^2) overhead situation
  in hammer2_flush().  20,000 dirty inodes would translate to
  30 million chain scans, resulting in cpu-bound stalls for long
  periods of time.

  Fixing this value reduces a 20,000 dirty inode flush to around
  200,000 chain scans (100x faster).

* Use hammer2_chain_ref_hold() and hammer2_chain_drop_unhold()
  to reduce the amount of buffer cache buffer cycling that occurs
  during a flush, by retaining the DIO associated with a parent
  chain across its unlock/recurse/relock sequence.

  The number of buffers held locked is limited by the flush recursion
  depth.

DragonFlyBSD — sys/platform/pc64/x86_64 mp_machdep.c

x86: Use kmem_alloc3 for cpu0's ipiq

DragonFlyBSD — sys/net/ipfw ip_fw2.c

ipfw: Factor out fucntion to setup local variables.
Delta File
+157 -174 sys/net/ipfw/ip_fw2.c
+157 -174 1 file

DragonFlyBSD — sys/vfs/hammer2 hammer2_vfsops.c hammer2_iocom.c

hammer2 - Remove debugging, adjust iocom

* Call hammer2_iocom_uninit() before we start cleaning up the hmp.

* Remove numerous debug messages.

DragonFlyBSD — sys/kern kern_dmsg.c

kernel - Fix races in kern_dmsg.c (hammer2)

* Fix kdmsg races during shutdown which can assert or panic

* Fixes numerous hammer2 assertions or panics related to unmounting,
  including mount failures due to missing labels.
Delta File
+37 -33 sys/kern/kern_dmsg.c
+37 -33 1 file

DragonFlyBSD — sbin/ipfw ipfw.8 ipfw2.c, sys/net/ipfw ip_fw2.c ip_fw2.h

ipfw: Add ipfrag filter.

Unlike 'frag' filter, which only matches non-first IP fragments,
this filter matches all IP fragments.

DragonFlyBSD — sys/net/ipfw ip_fw2.c

ipfw: Remove unnecessary complexity
Delta File
+3 -16 sys/net/ipfw/ip_fw2.c
+3 -16 1 file

DragonFlyBSD — sys/kern kern_dmsg.c

kernel - Remove some kdmsg debugging

* Remove '<blah> thread terminating' kdmsg debug messages.
Delta File
+4 -0 sys/kern/kern_dmsg.c
+4 -0 1 file

DragonFlyBSD — sys/vfs/devfs devfs_vnops.c

kernel - support dummy reallocblks in devfs

* cluster_write() calls VOP_REALLOCBLKS() in certain situations.

* Supply a dummy for devfs's .vop_reallocblks to avoid a panic.

Reported-by: tuxillo
Delta File
+2 -0 sys/vfs/devfs/devfs_vnops.c
+2 -0 1 file

DragonFlyBSD — sbin/gpt gpt.c gpt.8

gpt(8): Add HAMMER and HAMMER2 support

This makes it possible to create HAMMER or HAMMER2 partitions
with simple commands such as:

  gpt add -t hammer2 /dev/device
Delta File
+10 -0 sbin/gpt/gpt.c
+1 -1 sbin/gpt/gpt.8
+11 -1 2 files

DragonFlyBSD — sys/boot/common module.c

boot/loader: Fix the 'crc' command to the intended code.

It doesn't change the result, but fixes a cppcheck warning.

Reported-by:      dcb
Fix-submitted-by: Lubos Boucek
Dragonfly-bug:    <https://bugs.dragonflybsd.org/issues/3060>
Delta File
+1 -1 sys/boot/common/module.c
+1 -1 1 file

DragonFlyBSD — sbin/hammer2 cmd_debug.c

hammer2(8): Fix printf.
Delta File
+1 -1 sbin/hammer2/cmd_debug.c
+1 -1 1 file