| /linux/tools/testing/selftests/mm/ |
| H A D | ksm_tests.c | 1 // SPDX-License-Identifier: GPL-2.0 133 printf("usage: ksm_tests [-h] <test type> [-a prot] [-p page_count] [-l timeout]\n" in print_help() 134 "[-z use_zero_pages] [-m merge_across_nodes] [-s size]\n"); in print_help() 137 " -M (page merging)\n" in print_help() 138 " -Z (zero pages merging)\n" in print_help() 139 " -N (merging of pages in different NUMA nodes)\n" in print_help() 140 " -U (page unmerging)\n" in print_help() 141 " -P evaluate merging time and speed.\n" in print_help() 143 " must be provided using -s option\n" in print_help() 144 " -H evaluate merging time and speed of area allocated mostly with huge pages\n" in print_help() [all …]
|
| /linux/net/ipv4/ |
| H A D | inetpeer.c | 2 * INETPEER - A storage for permanent information about peers 28 * We keep one entry for each peer IP address. The nodes contains long-living 33 * time has been passed since its last use. The less-recently-used entry can 34 * also be removed if the pool is overloaded i.e. if the total amount of 35 * entries is greater-or-equal than the threshold. 59 bp->rb_root = RB_ROOT; in inet_peer_base_init() 60 seqlock_init(&bp->lock); in inet_peer_base_init() 61 bp->total = 0; in inet_peer_base_init() 87 /* Called with rcu_read_lock() or base->lock held */ 100 pp = &base->rb_root.rb_node; in lookup() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-pci-devices-aer | 2 -------------------------- 15 Contact: linux-pci@vger.kernel.org, rajatja@google.com 20 total of all the errors in the file. Sample output:: 27 Replay Timer Timeout 0 28 Advisory Non-Fatal 0 36 Contact: linux-pci@vger.kernel.org, rajatja@google.com 41 total of all the errors in the file. Sample output:: 49 Completion Timeout 0 66 Contact: linux-pci@vger.kernel.org, rajatja@google.com 71 actual total of all the errors in the file. Sample output:: [all …]
|
| /linux/fs/ceph/ |
| H A D | quota.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * quota.c - CephFS quota 5 * Copyright (C) 2017-2018 SUSE 15 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(inode->i_sb); in ceph_adjust_quota_realms_count() 17 atomic64_inc(&mdsc->quotarealms_count); in ceph_adjust_quota_realms_count() 19 atomic64_dec(&mdsc->quotarealms_count); in ceph_adjust_quota_realms_count() 24 struct super_block *sb = inode->i_sb; in ceph_has_realms_with_quotas() 26 struct inode *root = d_inode(sb->s_root); in ceph_has_realms_with_quotas() 28 if (atomic64_read(&mdsc->quotarealms_count) > 0) in ceph_has_realms_with_quotas() 34 if (ceph_vino_is_reserved(ceph_inode(inode)->i_vino)) in ceph_has_realms_with_quotas() [all …]
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | nf_queue.c | 1 // SPDX-License-Identifier: GPL-2.0 24 unsigned int timeout; member 34 …printf("Usage: %s [-c|-v [-vv] ] [-o] [-t timeout] [-q queue_num] [-Qdst_queue ] [ -d ms_delay ] [… in help() 42 /* skip unsupported attribute in user-space */ in parse_attr_cb() 89 id = ntohl(ph->packet_id); in queue_cb() 93 ntohs(ph->hw_protocol), ph->hook); in queue_cb() 95 if (ph->hook >= 5) { in queue_cb() 96 fprintf(stderr, "Unknown hook %d\n", ph->hook); in queue_cb() 115 queue_stats[ph->hook]++; in queue_cb() 131 nlh->nlmsg_type = (NFNL_SUBSYS_QUEUE << 8) | NFQNL_MSG_CONFIG; in nfq_build_cfg_request() [all …]
|
| H A D | nft_zones_many.sh | 19 checktool "nft --version" "run test without nft tool" 20 checktool "socat -V" "run test without socat tool" 26 if conntrack -V > /dev/null 2>&1; then 33 ip netns exec "$ns1" nft -f /dev/stdin<<EOF 41 type filter hook output priority -64000; policy accept; 46 if [ "$?" -ne 0 ];then 51 ip netns exec "$ns1" sysctl -q net.netfilter.nf_conntrack_udp_timeout=3600 56 echo -n "$i : $i" 57 if [ "$i" -lt "$max_zones" ]; then 63 ) | ip netns exec "$ns1" nft -f /dev/stdin [all …]
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | mptcp_inq.c | 1 // SPDX-License-Identifier: GPL-2.0 52 fprintf(stderr, "Usage: mptcp_inq [-6] [ -t tcp|mptcp ] [ -r tcp|mptcp]\n"); in die_usage() 87 hints->ai_protocol = IPPROTO_TCP; in xgetaddrinfo() 102 int sock = -1; in sock_listen_mptcp() 117 for (a = addr; a; a = a->ai_next) { in sock_listen_mptcp() 118 sock = socket(a->ai_family, a->ai_socktype, proto_rx); in sock_listen_mptcp() 122 if (-1 == setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &one, in sock_listen_mptcp() 126 if (bind(sock, a->ai_addr, a->ai_addrlen) == 0) in sock_listen_mptcp() 131 sock = -1; in sock_listen_mptcp() 153 int sock = -1; in sock_connect_mptcp() [all …]
|
| /linux/tools/testing/selftests/kselftest/ |
| H A D | runner.sh | 2 # SPDX-License-Identifier: GPL-2.0 12 # "timeout" how many seconds to let each test run before running 13 # over our soft timeout limit. 16 # There isn't a shell-agnostic way to find the path of a sourced file, 18 if [ -z "$BASE_DIR" ]; then 23 TR_CMD=$(command -v tr) 25 # If Perl is unavailable, we must fall back to line-at-a-time prefixing 29 if [ ! -x /usr/bin/perl ]; then 30 sed -e 's/^/# /' 39 if [ -x /usr/bin/timeout ] ; then [all …]
|
| /linux/lib/kunit/ |
| H A D | test.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <kunit/test-bug.h> 23 #include "device-impl.h" 24 #include "hooks-impl.h" 25 #include "string-stream.h" 26 #include "try-catch-impl.h" 39 if (!current->kunit_test) in __kunit_fail_current_test_impl() 42 kunit_set_failure(current->kunit_test); in __kunit_fail_current_test_impl() 49 buffer = kunit_kmalloc(current->kunit_test, len, GFP_KERNEL); in __kunit_fail_current_test_impl() 57 kunit_err(current->kunit_test, "%s:%d: %s", file, line, buffer); in __kunit_fail_current_test_impl() [all …]
|
| /linux/drivers/accessibility/speakup/ |
| H A D | speakup_dtlk.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 1998-99 Kirk Reiser. 52 [CAPS_STOP_ID] = { CAPS_STOP, .u.s = {"\x01-35p" } }, 175 int timeout = SPK_XMITR_TIMEOUT; in spk_out() local 178 if (!--timeout) in spk_out() 183 timeout = SPK_XMITR_TIMEOUT; in spk_out() 185 if (!--timeout) in spk_out() 204 jiffy_delta_val = jiffy_delta->u.n.value; in do_catch_up() 212 synth->flush(synth); in do_catch_up() 221 delay_time_val = delay_time->u.n.value; in do_catch_up() [all …]
|
| /linux/fs/orangefs/ |
| H A D | xattr.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * See COPYING in top-level directory. 14 #include "orangefs-kernel.h" 15 #include "orangefs-bufmap.h" 71 h = &orangefs_inode->xattr_cache[xattr_key(key)]; in find_cached_xattr() 75 /* if (!time_before(jiffies, cx->timeout)) { in find_cached_xattr() 76 hlist_del(&cx->node); in find_cached_xattr() 80 if (!strcmp(cx->key, key)) in find_cached_xattr() 88 * file into a user-specified buffer. Note that the getxattr 101 ssize_t ret = -ENOMEM; in orangefs_inode_getxattr() [all …]
|
| /linux/include/rdma/ |
| H A D | rdmavt_qp.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright(c) 2016 - 2020 Intel Corporation. 13 #include <rdma/rvt-abi.h> 55 #define RVT_AIP_QP_MAX (u32)(RVT_AIP_QP_BASE + RVT_AIP_QPN_MAX - 1) 60 * RVT_S_SIGNAL_REQ_WR - set if QP send WRs contain completion signaled 61 * RVT_S_BUSY - send tasklet is processing the QP 62 * RVT_S_TIMER - the RC retry timer is active 63 * RVT_S_ACK_PENDING - an ACK is waiting to be sent after RDMA read/atomics 64 * RVT_S_WAIT_FENCE - waiting for all prior RDMA read or atomic SWQEs 66 * RVT_S_WAIT_RDMAR - waiting for a RDMA read or atomic SWQE to complete [all …]
|
| /linux/include/uapi/linux/ |
| H A D | auto_dev-ioctl.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 54 __u64 timeout; member 84 * When sending a path size must account for the total length 92 __u32 size; /* total size of data passed in 105 struct args_timeout timeout; member 118 in->ver_major = AUTOFS_DEV_IOCTL_VERSION_MAJOR; in init_autofs_dev_ioctl() 119 in->ver_minor = AUTOFS_DEV_IOCTL_VERSION_MINOR; in init_autofs_dev_ioctl() 120 in->size = AUTOFS_DEV_IOCTL_SIZE; in init_autofs_dev_ioctl() 121 in->ioctlfd = -1; in init_autofs_dev_ioctl() 144 /* Expiry timeout */
|
| /linux/include/media/i2c/ |
| H A D | lm3646.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 8 * Ldd-Mlp <ldd-mlp@list.ti.com> 14 #include <media/v4l2-subdev.h> 20 /* TOTAL FLASH Brightness Max 28 ((((a) - LM3646_TOTAL_FLASH_BRT_MIN) / LM3646_TOTAL_FLASH_BRT_STEP))) 30 /* TOTAL TORCH Brightness Max 38 ((((a) - LM3646_TOTAL_TORCH_BRT_MIN) / LM3646_TOTAL_TORCH_BRT_STEP))) 48 ((((a) - LM3646_LED1_FLASH_BRT_MIN) / LM3646_LED1_FLASH_BRT_STEP))+1) 58 ((((a) - LM3646_LED1_TORCH_BRT_MIN) / LM3646_LED1_TORCH_BRT_STEP))+1) 60 /* FLASH TIMEOUT DURATION [all …]
|
| /linux/lib/ |
| H A D | test_objpool.c | 1 // SPDX-License-Identifier: GPL-2.0 61 /* per-cpu worker */ 90 atomic_long_add(size, &test->data.kmalloc.alloc); in ot_kzalloc() 98 atomic_long_add(size, &test->data.kmalloc.free); in ot_kfree() 106 pr_info("memory allocation summary for %s\n", test->name); in ot_mem_report() 108 alloc = atomic_long_read(&test->data.kmalloc.alloc); in ot_mem_report() 109 free = atomic_long_read(&test->data.kmalloc.free); in ot_mem_report() 110 pr_info(" kmalloc: %lu - %lu = %lu\n", alloc, free, alloc - free); in ot_mem_report() 112 alloc = atomic_long_read(&test->data.vmalloc.alloc); in ot_mem_report() 113 free = atomic_long_read(&test->data.vmalloc.free); in ot_mem_report() [all …]
|
| /linux/include/linux/sunrpc/ |
| H A D | xprt.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 30 #define RPC_MAXCWND(xprt) ((xprt)->max_reqs << RPC_CWNDSHIFT) 31 #define RPCXPRT_CONGESTED(xprt) ((xprt)->cong >= (xprt)->cwnd) 58 * This is the user-visible part 70 int rq_cong; /* has incremented xprt->cong */ 90 size_t rq_xmit_bytes_sent; /* total bytes sent */ 91 size_t rq_reply_bytes_recvd; /* total reply bytes */ 97 unsigned long rq_majortimeo; /* major timeout alarm */ 98 unsigned long rq_minortimeo; /* minor timeout alarm */ 99 unsigned long rq_timeout; /* Current timeout value */ [all …]
|
| /linux/tools/testing/selftests/alsa/ |
| H A D | global-timer.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * (which is set by `timeout` parameter). 21 static void bind_to_timer(int device, int subdevice, int timeout) in bind_to_timer() argument 51 end = time(NULL) + timeout; in bind_to_timer() 59 * Waiting for the timeout to elapse. Can't use sleep here, as it gets in bind_to_timer() 69 int device, subdevice, timeout; in main() local 72 perror("Usage: %s <device> <subdevice> <timeout>"); in main() 80 timeout = atoi(argv[3]); in main() 82 bind_to_timer(device, subdevice, timeout); in main() 84 printf("Total ticks count: %d\n", ticked); in main()
|
| /linux/drivers/char/tpm/ |
| H A D | tpm1-cmd.c | 1 // SPDX-License-Identifier: GPL-2.0 282 * tpm1_calc_ordinal_duration() - calculate the maximum command duration 304 duration = chip->duration[duration_idx]; in tpm1_calc_ordinal_duration() 315 * tpm1_startup() - turn on the TPM 329 dev_info(&chip->dev, "starting up the TPM manually\n"); in tpm1_startup() 350 sizeof(cap.timeout)); in tpm1_get_timeouts() 357 sizeof(cap.timeout)); in tpm1_get_timeouts() 361 dev_err(&chip->dev, "A TPM error (%zd) occurred attempting to determine the timeouts\n", in tpm1_get_timeouts() 366 timeout_old[0] = jiffies_to_usecs(chip->timeout_a); in tpm1_get_timeouts() 367 timeout_old[1] = jiffies_to_usecs(chip->timeout_b); in tpm1_get_timeouts() [all …]
|
| /linux/drivers/char/ |
| H A D | dtlk.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* -*- linux-c -*- 3 * dtlk.c - DoubleTalk PC driver for Linux 8 * 2000-03-18 Jim Van Zandt: Fix polling. 20 The DoubleTalk PC contains four voice synthesizers: text-to-speech 40 This driver was written for use with the text-to-speech 57 #include <linux/errno.h> /* for -EBUSY */ 133 /* printk("DoubleTalk PC - dtlk_read()\n"); */ in dtlk_read() 136 return -EINVAL; in dtlk_read() 143 return -EFAULT; in dtlk_read() [all …]
|
| /linux/net/can/j1939/ |
| H A D | j1939-priv.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 // Copyright (c) 2010-2011 EIA Electronics, 4 // Copyright (c) 2017-2019 Pengutronix, 5 // Marc Kleine-Budde <kernel@pengutronix.de> 6 // Copyright (c) 2017-2019 Pengutronix, 15 /* Timeout to receive the abort signal over loop back. In case CAN 16 * bus is open, the timeout should be triggered. 178 BUILD_BUG_ON(sizeof(struct j1939_sk_buff_cb) > sizeof(skb->cb)); in j1939_skb_to_cb() 180 return (struct j1939_sk_buff_cb *)skb->cb; in j1939_skb_to_cb() 247 * 'total' & 'block' are never changed, [all …]
|
| /linux/kernel/ |
| H A D | hung_task.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * kernel/hung_task.c - kernel thread for detecting tasks stuck in D state 37 * Total number of tasks detected as hung since boot: 46 * the RCU grace period. So it needs to be upper-bound. 51 * Zero means infinite timeout - no checking done: 103 static bool task_is_hung(struct task_struct *t, unsigned long timeout) in task_is_hung() argument 105 unsigned long switch_count = t->nvcsw + t->nivcsw; in task_is_hung() 106 unsigned int state = READ_ONCE(t->__state); in task_is_hung() 109 * skip the TASK_KILLABLE tasks -- these can be killed in task_is_hung() 110 * skip the TASK_IDLE tasks -- those are genuinely idle in task_is_hung() [all …]
|
| /linux/drivers/mmc/host/ |
| H A D | owl-mmc.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 #include <linux/dma-direction.h> 15 #include <linux/dma-mapping.h> 18 #include <linux/mmc/slot-gpio.h> 140 spin_lock(&owl_host->lock); in owl_irq_handler() 142 state = readl(owl_host->base + OWL_REG_SD_STATE); in owl_irq_handler() 144 state = readl(owl_host->base + OWL_REG_SD_STATE); in owl_irq_handler() 146 writel(state, owl_host->base + OWL_REG_SD_STATE); in owl_irq_handler() 147 complete(&owl_host->sdc_complete); in owl_irq_handler() 150 spin_unlock(&owl_host->lock); in owl_irq_handler() [all …]
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | ringbuf.c | 1 // SPDX-License-Identifier: GPL-2.0 51 switch (s->seq) { in process_sample() 53 CHECK(s->value != 333, "sample1_value", "exp %ld, got %ld\n", in process_sample() 54 333L, s->value); in process_sample() 57 CHECK(s->value != 777, "sample2_value", "exp %ld, got %ld\n", in process_sample() 58 777L, s->value); in process_sample() 59 return -EDONE; in process_sample() 72 skel->bs in trigger_samples() 84 long timeout = (long)input; poll_thread() local [all...] |
| /linux/include/net/bluetooth/ |
| H A D | coredump.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 15 /* struct hci_devcoredump - Devcoredump state 19 * @timeout: Indicates a timeout for collecting the devcoredump 21 * @alloc_size: Total size of the dump 28 * @dump_timeout: Devcoredump timeout work 45 unsigned long timeout; member 85 return -EOPNOTSUPP; in hci_devcd_register() 90 return -EOPNOTSUPP; in hci_devcd_init() 95 return -EOPNOTSUPP; in hci_devcd_append() 101 return -EOPNOTSUPP; in hci_devcd_append_pattern() [all …]
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | Kconfig.profile | 2 int "Default timeout for requests (ms)" 5 Configures the default timeout after which any user submissions will 10 misbehaving applications causing total rendering failure in unrelated 13 May be 0 to disable the timeout. 16 int "Timeout for unsignaled foreign fences (ms, jiffy granularity)" 21 make forward progress. This value specifies the timeout used for an 24 May be 0 to disable the timeout, and rely on the foreign fence being 35 that complements the runtime-pm autosuspend and provides a lower 46 check the health of the GPU and undertake regular house-keeping of 56 int "Preempt timeout (ms, jiffy granularity)" [all …]
|