/freebsd/sbin/ipf/libipf/ |
H A D | interror.c | 63 { 35, "copyout failed for resolving function name -> addr" }, 64 { 36, "copyout failed for resolving function addr -> name" }, 67 { 39, "group map hash-table in/out do not match rule" }, 73 { 45, "ipfilter not enabled for sync ioctl" }, 122 { 94, "need write permissions to disable/enable ipfilter" }, 124 { 96, "need write permissions to set ipf tunable" }, 125 { 97, "need write permissions to set ipf flags" }, 128 { 100, "need write permissions to add another rule" }, 129 { 101, "need write permissions to insert another rule" }, 130 { 102, "need write permissions to swap active rule set" }, [all …]
|
/freebsd/crypto/krb5/src/tests/ |
H A D | unlockiter.c | 1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 /* tests/unlockiter.c - test program for unlocked iteration */ 57 /* Helper function for cb(): read a sync byte (with possible timeout), then 58 * write a sync byte. */ 67 FD_SET(arg->inpipe, &rset); in syncpair_rw() 71 printf("cb: waiting for %s sync pair\n", name); in syncpair_rw() 72 nfds = select(arg->inpipe + 1, &rset, in syncpair_rw() 75 return -1; in syncpair_rw() 78 return -1; in syncpair_rw() 80 if (read(arg->inpipe, cp, 1) < 0) in syncpair_rw() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_fd.cpp | 1 //===-- tsan_fd.cpp -------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 31 FdSync *sync; member 32 // This is used to establish write -> epoll_wait synchronization 33 // where epoll_wait receives notification about the write. 59 atomic_store(&s->rc, 1, memory_order_relaxed); in allocsync() 64 if (s && atomic_load(&s->rc, memory_order_relaxed) != (u64)-1) in ref() 65 atomic_fetch_add(&s->rc, 1, memory_order_relaxed); in ref() [all …]
|
/freebsd/tools/test/stress2/tools/ |
H A D | bench.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 46 #define SYNC 0 macro 66 setproctitle("%s sync", __func__); in cr1() 67 atomic_add_int(&share[SYNC], 1); in cr1() 68 while (share[SYNC] != (volatile u_int)tests * PARALLEL) in cr1() 76 DEFFILEMODE)) == -1) in cr1() 85 if (unlink(file) == -1) in cr1() 97 setproctitle("%s sync", __func__); in cr2() 98 atomic_add_int(&share[SYNC], 1); in cr2() [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | mevent_test.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 33 * cc mevent_test.c mevent.c -lpthread 80 diff = (tevbuf[j] - tevbuf[j-1]) * 1000000 / tsc_freq; in timer_print() 89 sum/(TEVSZ - 1)); in timer_print() 118 struct esync *sync = param; in echoer_callback() local 120 pthread_mutex_lock(&sync->e_mt); in echoer_callback() 121 pthread_cond_signal(&sync->e_cond); in echoer_callback() 122 pthread_mutex_unlock(&sync->e_mt); in echoer_callback() 128 struct esync sync; in echoer() local [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/io/ |
H A D | sync.ksh | 1 #! /bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 33 # Verify basic read(2), write(2) and lseek(2). 36 # 1. Use fio(1) in verify mode to perform write, read, 37 # random read, and random write workloads. 43 command -v fio > /dev/null || log_unsupported "fio missing" 47 log_must rm -f "$mntpnt/rw*" 50 log_assert "Verify basic read(2), write(2) and lseek(2)" 54 ioengine="--ioengine=sync" [all …]
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zpl_file.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 64 error = -zfs_open(ip, filp->f_mode, filp->f_flags, cr); in zpl_open() 80 if (ITOZ(ip)->z_atime_dirty) in zpl_release() 84 error = -zfs_close(ip, filp->f_flags, cr); in zpl_release() 101 error = -zfs_readdir(file_inode(filp), ctx, cr); in zpl_iterate() 112 struct inode *inode = filp->f_mapping->host; in zpl_fsync() 121 * tandem so that sync writes can detect if there are any non-sync in zpl_fsync() 122 * writes going on and vice-versa. The "vice-versa" part to this logic in zpl_fsync() 123 * is located in zfs_putpage() where non-sync writes check if there are in zpl_fsync() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | advlock.sh | 31 # or O_EXLOCK can increase the write count while it waits. If the process 36 # The second change closes a race where a read-only open() with O_SHLOCK or 37 # O_EXLOCK may return successfully while the write count is non-zero due to 41 # ETXTBUSY even though the other process that held a write lock has closed 51 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 57 mycc -o advlock -Wall -Wextra -O0 -g advlock.c || exit 1 58 rm -f advlock.c 60 mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint 61 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 62 mdconfig -a -t swap -s 512m -u $mdstart || exit 1 [all …]
|
H A D | write.sh | 29 # Parallel write test. 36 # lock type devfs: EXCL by thread 0xcbedf340 (pid 58752, write, tid 100254) 49 # https://people.freebsd.org/~pho/stress/log/write.txt 56 sed '1,/^EOF/d' < $odir/$0 > $dir/write.c 57 mycc -o write -Wall -Wextra -O2 -g write.c || exit 1 58 rm -f write.c 62 [ `df -k $(dirname $diskimage) | tail -1 | awk '{print int($4 / 1024)}'` \ 63 -lt $need ] && 66 wd="$wd/write.dir" 67 rm -rf $wd [all …]
|
H A D | truncate7.sh | 32 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 36 mount | grep -q "$mntpoint" && umount $mntpoint 37 mdconfig -l | grep -q $mdstart && mdconfig -d -u $mdstart 39 mdconfig -a -t swap -s 400m -u $mdstart 41 if [ `jot -r 1 0 1` -eq 0 ]; then 52 mycc -o truncate7 -Wall -O2 truncate7.c 53 rm -f truncate7.c 54 [ -d $RUNDIR ] || mkdir -p $RUNDIR 60 rm -f /tmp/truncate7 62 sync;sync;sync [all …]
|
H A D | truncate3.sh | 31 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 35 mount | grep -q "$mntpoint" && umount $mntpoint 36 mdconfig -l | grep -q $mdstart && mdconfig -d -u $mdstart 38 mdconfig -a -t swap -s 400m -u $mdstart 47 mycc -o truncate3 -Wall -O2 truncate3.c 48 rm -f truncate3.c 49 [ -d $RUNDIR ] || mkdir -p $RUNDIR 55 rm -f /tmp/truncate3 57 sync;sync;sync 58 while mount | grep -q $mntpoint; do [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_misc/ |
H A D | zvol_misc_zil.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 37 # 1. Create a ZVOLs with various combination of "logbias" and "sync" values 38 # 2. Write data to ZVOL device node 55 typeset -a logbias_prop_vals=('latency' 'throughput') 56 typeset -a sync_prop_vals=('standard' 'always' 'disabled') 59 for sync in ${sync_prop_vals[@]}; do 60 # 1. Create a ZVOL with logbias=throughput and sync=always 61 log_must zfs create -V $VOLSIZE -b 128K -o sync=$sync \ [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/suid/ |
H A D | suid_write_zil_replay.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 38 log_assert "Verify ZIL replay results in correct SUID/SGID bits for unprivileged write to SUID/SGID… 48 log_must zfs create -o mountpoint="$TESTDIR" $TESTPOOL/$TESTFS 50 # Make all the writes from suid_write_to_file.c sync 51 log_must zfs set sync=always "$TESTPOOL/$TESTFS" 56 # synchronously to force ZFS to write one out. 58 log_must dd if=/dev/zero of=$TESTDIR/sync \ 67 # 3. Unprivileged write to a setuid file [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zpool_influxdb/ |
H A D | README.md | 6 stdout. In many ways, this is a metrics-friendly output of 18 |---|---|---| 19 | --execd | -e | For use with telegraf's `execd` plugin. When [enter] is pressed, the pools are sam… 20 | --no-histogram | -n | Do not print histogram information | 21 | --signed-int | -i | Use signed integer data type (default=unsigned) | 22 | --sum-histogram-buckets | -s | Sum histogram bucket values | 23 | --tags key=value[,key=value...] | -t | Add tags to data points. No tag sanity checking is perform… 24 | --help | -h | Print a short usage message | 28 This works well out-of-the-box with an influxdb data source and grafana's 35 Another method for storing histogram data sums the values for lower-value [all …]
|
/freebsd/contrib/ofed/include/ |
H A D | udma_barrier.h | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 41 are looking for barriers to use with cache-coherent multi-threaded 47 - CPU attached address space (the CPU memory could be a range of things: 48 cached/uncached/non-temporal CPU DRAM, uncached MMIO space in another 51 is not guaranteed to see a write from another CPU then it is also 52 OK for the DMA device to also not see the write after the barrier. 53 - A DMA initiator on a bus. For instance a PCI-E device issuing 57 happens if a MemRd TLP is sent in via PCI-E relative to a CPU WRITE to the 80 memory types or non-temporal stores are required to use SFENCE in their own [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/slog/ |
H A D | slog_replay_fs_001.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 43 # "freeze" command is required to flush the in-flight transactions; 76 # synchronously to force ZFS to write one out. 78 log_must dd if=/dev/zero of=/$TESTPOOL/$TESTFS/sync \ 87 oflag=sync,direct bs=4k count=1 106 log_must ln -s /$TESTPOOL/$TESTFS/c /$TESTPOOL/$TESTFS/d 119 log_must mkdir -p $TESTDIR 121 oflag=sync bs=1k count=8 [all …]
|
/freebsd/usr.sbin/fifolog/fifolog_create/ |
H A D | fifolog.1 | 1 .\" Copyright (c) 2008 Poul-Henning Kamp 30 .Nd "initialize, write, seek and extract data from a fifolog" 33 .Op Fl l Ar record-size 34 .Op Fl r Ar record-count 48 .Op Fl w Ar write-rate 49 .Op Fl s Ar sync-rate 53 Fifologs provide a compact round-robin circular storage for 80 of hand-work all but the first record can be easily recovered.) 98 will read standard input and write it to the end of the fifolog 106 .Fl w Ar write-rate , [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zinject/ |
H A D | zinject_probe.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 38 log_pos zinject -c all 40 log_pos zpool destroy -f $TESTPOOL 53 # force a sync now 54 log_must zpool sync -f 56 # write stuff. this should go into memory, not written yet 60 log_must zinject -d $DISK1 -e io -T probe $TESTPOOL 61 log_must zinject -d $DISK1 -e io -T write $TESTPOOL [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/syncfs/ |
H A D | syncfs_suspend.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 32 typeset -i syncfs_pid=0 36 zinject -c all || true 38 test $syncfs_pid -gt 0 && kill -9 $syncfs_pid || true 46 # create a single-disk pool, set failmode=wait 47 log_must zpool create -o failmode=wait -f $TESTPOOL $DISK 48 log_must zfs create -o recordsize=128k $TESTPOOL/$TESTFS 50 # generate a write, then syncfs(), confirm success [all …]
|
/freebsd/usr.bin/tip/libacu/ |
H A D | biz31.c | 4 /*- 5 * SPDX-License-Identifier: BSD-3-Clause 37 #define MAXRETRY 3 /* sync up retry count */ 62 logent(value(HOST), "", "biz", "out of sync"); in biz_dialer() 63 printf("bizcomp out of sync\n"); in biz_dialer() 69 echo("#\rk$\r$\n"); /* disable auto-answer */ in biz_dialer() 120 write(FD, DISCONNECT_CMD, sizeof(DISCONNECT_CMD)-1); in biz31_disconnect() 128 write(FD, "\33", 1); in biz31_abort() 145 write(FD, &c, 1); in echo() 149 write(FD, &c, 1); in echo() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/ |
H A D | zfs_mount_remount.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 37 # 2. Verify we can (re)mount the dataset readonly/read-write 39 # 4. Verify we can't remount it read-write 41 # encryption=on and sync=disabled (issue #7753) 42 # 6. Re-import the pool readonly 43 # 7. Verify we can't remount its filesystem read-write 53 [[ -d $MNTPSNAP ]] && log_must rmdir $MNTPSNAP 58 typeset RO="-t zfs -ur" [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/memory-controllers/ |
H A D | ti,gpmc-child.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ti,gpmc-child.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Tony Lindgren <tony@atomide.com> 11 - Roger Quadros <rogerq@kernel.org> 24 gpmc,sync-clk-ps: 28 # Chip-select signal timings corresponding to GPMC_CONFIG2: 29 gpmc,cs-on-ns: 33 gpmc,cs-rd-off-ns: [all …]
|
H A D | omap-gpmc.txt | 7 - compatible: Should be set to one of the following: 9 ti,omap2420-gpmc (omap2420) 10 ti,omap2430-gpmc (omap2430) 11 ti,omap3430-gpmc (omap3430 & omap3630) 12 ti,omap4430-gpmc (omap4430 & omap4460 & omap543x) 13 ti,am3352-gpmc (am335x devices) 15 - reg: A resource specifier for the register space 17 - ti,hwmods: Should be set to "ti,gpmc" until the DT transition is 19 - #address-cells: Must be set to 2 to allow memory address translation 20 - #size-cells: Must be set to 1 to allow CS address passing [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/nopwrite/ |
H A D | nopwrite_sync.ksh | 2 # SPDX-License-Identifier: CDDL-1.0 24 # Verify that nopwrite works for sync writes 29 # 3. Use dd with the sync flag to test the sync write path. 38 datasetexists $origin && destroy_dataset $origin -R 39 log_must zfs create -o mountpoint=$TESTDIR $origin 42 log_assert "nopwrite works for sync writes" 46 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS oflag=sync \ 52 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 56 log_pass "nopwrite works for sync writes"
|
/freebsd/sys/contrib/device-tree/Bindings/arm/ |
H A D | l2c2x0.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Rob Herring <robh@kernel.org> 16 models (Note 1). Some of the properties that are just prefixed "cache-*" are 22 cache controllers as found in e.g. Cortex-A15/A7/A57/A53. These 28 - $ref: /schemas/cache-controller.yaml# 33 - enum: 34 - arm,pl310-cache 35 - arm,l220-cache [all …]
|