Home
last modified time | relevance | path

Searched +full:sync +full:- +full:write (Results 1 – 25 of 912) sorted by relevance

12345678910>>...37

/freebsd/sbin/ipf/libipf/
H A Dinterror.c63 { 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/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.cpp1 //===-- 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 Dbench.c1 /*-
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 Dmevent_test.c1 /*-
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 Dsync.ksh1 #! /bin/ksh -p
10 # or https://opensource.org/licenses/CDDL-1.0.
32 # Verify basic read(2), write(2) and lseek(2).
35 # 1. Use fio(1) in verify mode to perform write, read,
36 # random read, and random write workloads.
42 command -v fio > /dev/null || log_unsupported "fio missing"
46 log_must rm -f "$mntpnt/rw*"
49 log_assert "Verify basic read(2), write(2) and lseek(2)"
53 ioengine="--ioengine=sync"
55 dir="--directory=$mntpnt"
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzpl_file.c9 * or https://opensource.org/licenses/CDDL-1.0.
66 error = -zfs_open(ip, filp->f_mode, filp->f_flags, cr); in zpl_open()
82 if (ITOZ(ip)->z_atime_dirty) in zpl_release()
86 error = -zfs_close(ip, filp->f_flags, cr); in zpl_release()
103 error = -zfs_readdir(file_inode(filp), ctx, cr); in zpl_iterate()
114 struct inode *inode = filp->f_mapping->host; in zpl_fsync()
123 * tandem so that sync writes can detect if there are any non-sync in zpl_fsync()
124 * writes going on and vice-versa. The "vice-versa" part to this logic in zpl_fsync()
125 * is located in zfs_putpage() where non-sync writes check if there are in zpl_fsync()
126 * any ongoing sync writes. If any sync and non-sync writes overlap, in zpl_fsync()
[all …]
/freebsd/tools/test/stress2/misc/
H A Dadvlock.sh31 # 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 Dwrite.sh29 # 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 Dtruncate7.sh32 [ `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 Dtruncate3.sh31 [ `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 Dzvol_misc_zil.ksh1 #!/bin/ksh -p
10 # or https://opensource.org/licenses/CDDL-1.0.
36 # 1. Create a ZVOLs with various combination of "logbias" and "sync" values
37 # 2. Write data to ZVOL device node
54 typeset -a logbias_prop_vals=('latency' 'throughput')
55 typeset -a sync_prop_vals=('standard' 'always' 'disabled')
58 for sync in ${sync_prop_vals[@]}; do
59 # 1. Create a ZVOL with logbias=throughput and sync=always
60 log_must zfs create -V $VOLSIZE -b 128K -o sync=$sync \
61 -o logbias=$logbias $ZVOL
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/suid/
H A Dsuid_write_zil_replay.ksh1 #!/bin/ksh -p
10 # or https://opensource.org/licenses/CDDL-1.0.
37 log_assert "Verify ZIL replay results in correct SUID/SGID bits for unprivileged write to SUID/SGID…
47 log_must zfs create -o mountpoint="$TESTDIR" $TESTPOOL/$TESTFS
49 # Make all the writes from suid_write_to_file.c sync
50 log_must zfs set sync=always "$TESTPOOL/$TESTFS"
55 # synchronously to force ZFS to write one out.
57 log_must dd if=/dev/zero of=$TESTDIR/sync \
66 # 3. Unprivileged write to a setuid file
82 log_must zdb -iv $TESTPOOL/$TESTFS
[all …]
/freebsd/sys/contrib/openzfs/cmd/zpool_influxdb/
H A DREADME.md6 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 Dudma_barrier.h14 * - 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 Dslog_replay_fs_001.ksh1 #!/bin/ksh -p
10 # or https://opensource.org/licenses/CDDL-1.0.
42 # "freeze" command is required to flush the in-flight transactions;
75 # synchronously to force ZFS to write one out.
77 log_must dd if=/dev/zero of=/$TESTPOOL/$TESTFS/sync \
86 oflag=sync,direct bs=4k count=1
105 log_must ln -s /$TESTPOOL/$TESTFS/c /$TESTPOOL/$TESTFS/d
118 log_must mkdir -p $TESTDIR
120 oflag=sync bs=1k count=8
125 oflag=sync bs=1k count=1
[all …]
/freebsd/usr.sbin/fifolog/fifolog_create/
H A Dfifolog.11 .\" 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/usr.bin/tip/libacu/
H A Dbiz31.c4 /*-
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 Dzfs_mount_remount.ksh1 #!/bin/ksh -p
10 # or https://opensource.org/licenses/CDDL-1.0.
36 # 2. Verify we can (re)mount the dataset readonly/read-write
38 # 4. Verify we can't remount it read-write
40 # encryption=on and sync=disabled (issue #7753)
41 # 6. Re-import the pool readonly
42 # 7. Verify we can't remount its filesystem read-write
52 [[ -d $MNTPSNAP ]] && log_must rmdir $MNTPSNAP
57 typeset RO="-t zfs -ur"
58 typeset RW="-t zfs -uw"
[all …]
/freebsd/sys/contrib/device-tree/Bindings/memory-controllers/
H A Dti,gpmc-child.yaml1 # 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 Domap-gpmc.txt7 - 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 Dnopwrite_sync.ksh23 # Verify that nopwrite works for sync writes
28 # 3. Use dd with the sync flag to test the sync write path.
37 datasetexists $origin && destroy_dataset $origin -R
38 log_must zfs create -o mountpoint=$TESTDIR $origin
41 log_assert "nopwrite works for sync writes"
45 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS oflag=sync \
51 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
55 log_pass "nopwrite works for sync writes"
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmap/
H A Dmmap_mixed.ksh1 #!/bin/ksh -p
10 # or https://opensource.org/licenses/CDDL-1.0.
36 # 2. Start a background buffered read/write fio to the file.
37 # 3. Start a background mmap read/write fio to the file.
44 log_must rm -f "$tmp_file"
61 log_must eval "fio --filename=$tmp_file --name=buffer-write \
62 --rw=randwrite --size=$size --bs=$bs --direct=0 --numjobs=1 \
63 --ioengine=sync --fallocate=none --group_reporting --minimal \
64 --runtime=$runtime --time_based --norandommap &"
67 log_must eval "fio --filename=$tmp_file --name=buffer-read \
[all …]
/freebsd/sys/contrib/device-tree/Bindings/arm/
H A Dl2c2x0.yaml1 # 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 …]
/freebsd/sys/contrib/device-tree/Bindings/cache/
H A Dl2c2x0.yaml1 # 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 …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/block_cloning/
H A Dblock_cloning_lwb_buffer_overflow.ksh1 #!/bin/ksh -p
10 # or https://opensource.org/licenses/CDDL-1.0.
33 # block write is split into two 68KB ones, trying to write maximum
39 # 2. Write maximum sizes TX_CLONE_RANGE record with 1022 block
41 # 3. Sync TXG
48 if is_linux && [[ $(linux_version) -lt $(linux_version "4.5") ]]; then
52 VDIR=$TEST_BASE_DIR/disk-bclone
59 rm -rf $VDIR
66 log_must rm -rf $VDIR
67 log_must mkdir -p $VDIR
[all …]

12345678910>>...37