| /tools/testing/selftests/arm64/gcs/ |
| A D | gcs-locking.c | 56 unsigned long mode; in FIXTURE_VARIANT() local 94 variant->mode); in TEST_F() 103 unsigned long mode; in TEST_F() local 107 variant->mode); in TEST_F() 112 ASSERT_EQ(mode, variant->mode); in TEST_F() 126 unsigned long mode; in TEST_F() local 133 variant->mode); in TEST_F() 138 ASSERT_EQ(mode, 0); in TEST_F() 146 unsigned long mode; in TEST_F() local 155 ASSERT_EQ(mode, variant->mode); in TEST_F() [all …]
|
| /tools/perf/util/ |
| A D | demangle-java.c | 62 if (mode == MODE_PREFIX || mode == MODE_TYPE) { in __demangle_java_sym() 69 mode = MODE_CLASS; in __demangle_java_sym() 71 mode = MODE_CTYPE; in __demangle_java_sym() 104 if (mode != MODE_TYPE) in __demangle_java_sym() 109 if (mode != MODE_FUNC) in __demangle_java_sym() 112 mode = MODE_TYPE; in __demangle_java_sym() 115 if (mode != MODE_TYPE) in __demangle_java_sym() 121 if (mode != MODE_CLASS && mode != MODE_CTYPE) in __demangle_java_sym() 127 mode = MODE_FUNC; in __demangle_java_sym() 129 mode = MODE_TYPE; in __demangle_java_sym() [all …]
|
| A D | parse-branch-options.c | 10 { .name = n, .mode = (m) } 16 int mode; member 43 int parse_branch_str(const char *str, __u64 *mode) in parse_branch_str() argument 56 *mode = PERF_SAMPLE_BRANCH_ANY; in parse_branch_str() 81 *mode |= br->mode; in parse_branch_str() 90 if ((*mode & ~ONLY_PLM) == 0) { in parse_branch_str() 91 *mode = PERF_SAMPLE_BRANCH_ANY; in parse_branch_str() 101 __u64 *mode = (__u64 *)opt->value; in parse_branch_stack() local 109 if (*mode) { in parse_branch_stack() 114 return parse_branch_str(str, mode); in parse_branch_stack()
|
| A D | parse-regs-options.c | 15 uint64_t *mode = (uint64_t *)opt->value; in __parse_regs() local 27 if (*mode) in __parse_regs() 67 *mode |= r->mask; in __parse_regs() 78 if (*mode == 0) in __parse_regs() 79 *mode = mask; in __parse_regs()
|
| /tools/spi/ |
| A D | spidev_test.c | 39 static uint32_t mode; variable 273 mode |= SPI_LOOP; in parse_opts() 276 mode |= SPI_CPHA; in parse_opts() 279 mode |= SPI_CPOL; in parse_opts() 285 mode |= SPI_CS_HIGH; in parse_opts() 288 mode |= SPI_3WIRE; in parse_opts() 300 mode |= SPI_NO_CS; in parse_opts() 306 mode |= SPI_READY; in parse_opts() 312 mode |= SPI_TX_DUAL; in parse_opts() 463 request = mode; in main() [all …]
|
| /tools/include/nolibc/ |
| A D | fcntl.h | 22 int sys_openat(int dirfd, const char *path, int flags, mode_t mode) in sys_openat() argument 24 return my_syscall4(__NR_openat, dirfd, path, flags, mode); in sys_openat() 30 mode_t mode = 0; in openat() local 36 mode = va_arg(args, mode_t); in openat() 40 return __sysret(sys_openat(dirfd, path, flags, mode)); in openat() 48 int sys_open(const char *path, int flags, mode_t mode) in sys_open() argument 50 return my_syscall4(__NR_openat, AT_FDCWD, path, flags, mode); in sys_open() 56 mode_t mode = 0; in open() local 62 mode = va_arg(args, mode_t); in open() 66 return __sysret(sys_open(path, flags, mode)); in open()
|
| A D | types.h | 39 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) argument 40 #define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) argument 41 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) argument 42 #define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) argument 43 #define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFIFO) argument 44 #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) argument 45 #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK) argument
|
| /tools/perf/tests/shell/ |
| A D | annotate.sh | 38 mode=$1 39 echo "${mode} perf annotate test" 40 if [ "x${mode}" == "xBasic" ] 48 echo "${mode} annotate [Failed: perf record]" 54 if [ "x${mode}" == "xBasic" ] 64 echo "${mode} annotate [Failed: missing target symbol]" 73 echo "${mode} annotate [Failed: missing disasm output from default disassembler]" 79 if [ "x${mode}" == "xBasic" ] 88 echo "${mode} annotate [Failed: missing disasm output when specifying the target symbol]" 94 if [ "x${mode}" == "xBasic" ] [all …]
|
| /tools/testing/selftests/drivers/net/bonding/ |
| A D | mode-1-recovery-updelay.sh | 37 test_bond_recovery mode 1 miimon 100 updelay 0 38 test_bond_recovery mode 1 miimon 100 updelay 200 39 test_bond_recovery mode 1 miimon 100 updelay 500 40 test_bond_recovery mode 1 miimon 100 updelay 1000 41 test_bond_recovery mode 1 miimon 100 updelay 2000 42 test_bond_recovery mode 1 miimon 100 updelay 5000 43 test_bond_recovery mode 1 miimon 100 updelay 10000
|
| A D | mode-2-recovery-updelay.sh | 37 test_bond_recovery mode 2 miimon 100 updelay 0 38 test_bond_recovery mode 2 miimon 100 updelay 200 39 test_bond_recovery mode 2 miimon 100 updelay 500 40 test_bond_recovery mode 2 miimon 100 updelay 1000 41 test_bond_recovery mode 2 miimon 100 updelay 2000 42 test_bond_recovery mode 2 miimon 100 updelay 5000 43 test_bond_recovery mode 2 miimon 100 updelay 10000
|
| A D | bond_options.sh | 163 local mode=$1 167 log_test "prio" "$mode miimon primary_reselect $primary_reselect" 174 local mode=$1 185 local mode=$1 200 local mode modes="active-backup balance-tlb balance-alb" 207 for mode in $modes; do 208 prio_miimon $mode 295 local mode=$1 299 log_test "arp_validate" "$mode arp_ip_target arp_validate $val" 305 local mode=$1 [all …]
|
| /tools/testing/selftests/net/ |
| A D | ioam6.sh | 685 local mode 716 local mode 728 mode="$1" 803 local mode 811 encap ioam6 mode $mode trace prealloc ns 0 size 4 \ 834 local mode 842 encap ioam6 mode $mode trace prealloc type 0x800000 ns 0 \ 865 local mode 899 local mode 1124 encap ioam6 mode $mode trace prealloc \ [all …]
|
| /tools/testing/selftests/arm64/mte/ |
| A D | check_tags_inclusion.c | 22 static int verify_mte_pointer_validity(char *ptr, int mode) in verify_mte_pointer_validity() argument 30 ptr, ptr + BUFFER_SIZE, mode); in verify_mte_pointer_validity() 42 ptr, mode); in verify_mte_pointer_validity() 49 static int check_single_included_tags(int mem_type, int mode) in check_single_included_tags() argument 74 result = verify_mte_pointer_validity(ptr, mode); in check_single_included_tags() 106 result = verify_mte_pointer_validity(ptr, mode); in check_multiple_included_tags() 113 static int check_all_included_tags(int mem_type, int mode) in check_all_included_tags() argument 123 ret = mte_switch_mode(mode, MT_INCLUDE_TAG_MASK, false); in check_all_included_tags() 133 result = verify_mte_pointer_validity(ptr, mode); in check_all_included_tags() 139 static int check_none_included_tags(int mem_type, int mode) in check_none_included_tags() argument [all …]
|
| A D | check_hugetlb_options.c | 94 static int check_child_tag_inheritance(char *ptr, int size, int mode) in check_child_tag_inheritance() argument 107 mte_initialize_current_context(mode, (uintptr_t)ptr, size); in check_child_tag_inheritance() 135 static int check_mte_memory(char *ptr, int size, int mode, int tag_check) in check_mte_memory() argument 137 mte_initialize_current_context(mode, (uintptr_t)ptr, size); in check_mte_memory() 154 mte_switch_mode(mode, MTE_ALLOW_NON_ZERO_TAG, false); in check_hugetlb_memory_mapping() 159 mte_initialize_current_context(mode, (uintptr_t)map_ptr, map_size); in check_hugetlb_memory_mapping() 167 result = check_mte_memory(ptr, map_size, mode, tag_check); in check_hugetlb_memory_mapping() 183 mte_switch_mode(mode, MTE_ALLOW_NON_ZERO_TAG, false); in check_clear_prot_mte_flag() 197 result = check_mte_memory(map_ptr, map_size, mode, TAG_CHECK_ON); in check_clear_prot_mte_flag() 213 mte_switch_mode(mode, MTE_ALLOW_NON_ZERO_TAG, false); in check_child_hugetlb_memory_mapping() [all …]
|
| A D | check_child_memory.c | 29 static int check_child_tag_inheritance(char *ptr, int size, int mode) in check_child_tag_inheritance() argument 42 mte_initialize_current_context(mode, (uintptr_t)ptr, size); in check_child_tag_inheritance() 58 mte_initialize_current_context(mode, (uintptr_t)ptr, -UNDERFLOW); in check_child_tag_inheritance() 65 mte_initialize_current_context(mode, (uintptr_t)ptr, size + OVERFLOW); in check_child_tag_inheritance() 84 static int check_child_memory_mapping(int mem_type, int mode, int mapping) in check_child_memory_mapping() argument 91 mte_switch_mode(mode, MTE_ALLOW_NON_ZERO_TAG, false); in check_child_memory_mapping() 98 result = check_child_tag_inheritance(ptr, sizes[run], mode); in check_child_memory_mapping() 106 static int check_child_file_mapping(int mem_type, int mode, int mapping) in check_child_file_mapping() argument 112 mte_switch_mode(mode, MTE_ALLOW_NON_ZERO_TAG, false); in check_child_file_mapping() 125 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[run]); in check_child_file_mapping() [all …]
|
| A D | check_buffer_fill.c | 28 static int check_buffer_by_byte(int mem_type, int mode) in check_buffer_by_byte() argument 34 mte_switch_mode(mode, MTE_ALLOW_NON_ZERO_TAG, false); in check_buffer_by_byte() 41 mte_initialize_current_context(mode, (uintptr_t)ptr, sizes[i]); in check_buffer_by_byte() 63 static int check_buffer_underflow_by_byte(int mem_type, int mode, in check_buffer_underflow_by_byte() argument 71 mte_switch_mode(mode, MTE_ALLOW_NON_ZERO_TAG, false); in check_buffer_underflow_by_byte() 102 switch (mode) { in check_buffer_underflow_by_byte() 167 mte_switch_mode(mode, MTE_ALLOW_NON_ZERO_TAG, false); in check_buffer_overflow_by_byte() 202 switch (mode) { in check_buffer_overflow_by_byte() 336 static int check_buffer_by_block(int mem_type, int mode) in check_buffer_by_block() argument 340 mte_switch_mode(mode, MTE_ALLOW_NON_ZERO_TAG, false); in check_buffer_by_block() [all …]
|
| /tools/testing/selftests/net/forwarding/ |
| A D | tc_flower_port_range.sh | 82 local mode=$1; shift 106 $MZ $mode $h1 -c 1 -q -p 100 -a $smac -b $dmac -A $sip -B $dip \ 156 local mode="-4" 159 __test_port_range $proto $ip_proto $sip $dip $mode "$name" 168 local mode="-4" 171 __test_port_range $proto $ip_proto $sip $dip $mode "$name" 180 local mode="-6" 183 __test_port_range $proto $ip_proto $sip $dip $mode "$name" 192 local mode="-6" 195 __test_port_range $proto $ip_proto $sip $dip $mode "$name" [all …]
|
| A D | tc_flower_l2_miss.sh | 131 local mode=$1; shift 146 $MZ $mode $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q 157 $MZ $mode $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q 168 $MZ $mode $h1 -a own -b $dmac -t ip -A $sip -B $dip -c 1 -p 100 -q 188 local mode="-4" 191 test_l2_miss_multicast_common $proto $sip $dip $dmac $mode $name 200 local mode="-6" 203 test_l2_miss_multicast_common $proto $sip $dip $dmac $mode $name 249 local mode=$1; shift 274 local mode="-4" [all …]
|
| /tools/bpf/bpftool/ |
| A D | netlink_dumper.c | 15 const char *mode, in xdp_dump_prog_id() argument 23 NET_DUMP_STR("mode", " %s", mode); in xdp_dump_prog_id() 33 unsigned char mode; in do_xdp_dump_one() local 41 mode = libbpf_nla_getattr_u8(tb[IFLA_XDP_ATTACHED]); in do_xdp_dump_one() 42 if (mode == XDP_ATTACHED_NONE) in do_xdp_dump_one() 50 if (mode == XDP_ATTACHED_MULTI) { in do_xdp_dump_one() 60 } else if (mode == XDP_ATTACHED_DRV) { in do_xdp_dump_one() 62 } else if (mode == XDP_ATTACHED_SKB) { in do_xdp_dump_one() 64 } else if (mode == XDP_ATTACHED_HW) { in do_xdp_dump_one()
|
| /tools/power/cpupower/utils/ |
| A D | cpupower-set.c | 44 int mode:1; in cmd_set() member 51 char epp[30], mode[20]; in cmd_set() local 91 if (params.mode) in cmd_set() 93 if (sscanf(optarg, "%19s", mode) != 1) { in cmd_set() 97 params.mode = 1; in cmd_set() 119 if (params.mode) { in cmd_set() 120 ret = cpupower_set_amd_pstate_mode(mode); in cmd_set()
|
| /tools/testing/selftests/kvm/ |
| A D | dirty_log_test.c | 311 pages = vm_num_host_pages(vm->mode, pages); in dirty_ring_create_vm_done() 447 if (mode->supported) in log_mode_supported() 448 return mode->supported(); in log_mode_supported() 457 if (mode->create_vm_done) in log_mode_create_vm_done() 458 mode->create_vm_done(vm); in log_mode_create_vm_done() 467 TEST_ASSERT(mode->collect_dirty_pages != NULL, in log_mode_collect_dirty_pages() 476 if (mode->after_vcpu_run) in log_mode_after_vcpu_run() 477 mode->after_vcpu_run(vcpu); in log_mode_after_vcpu_run() 498 uint64_t step = vm_num_host_pages(mode, 1); in vm_dirty_log_verify() 620 vm = create_vm(mode, &vcpu, in run_test() [all …]
|
| /tools/power/cpupower/lib/ |
| A D | powercap.h | 42 int powercap_get_enabled(int *mode); 43 int powercap_set_enabled(int mode); 50 int powercap_zone_get_enabled(struct powercap_zone *zone, int *mode); 51 int powercap_zone_set_enabled(struct powercap_zone *zone, int mode);
|
| /tools/testing/selftests/drivers/net/hw/ |
| A D | ethtool_lib.sh | 34 mode="Advertised link modes" 36 mode="Supported link modes" 67 mode="Advertised link modes" 69 mode="Supported link modes" 74 sed -n '/'"$mode"':/,$p' | \
|
| /tools/perf/trace/beauty/ |
| A D | mode_t.c | 27 int printed = 0, mode = arg->val; in syscall_arg__scnprintf_mode_t() local 30 if ((mode & S_##n) == S_##n) { \ in syscall_arg__scnprintf_mode_t() 32 mode &= ~S_##n; \ in syscall_arg__scnprintf_mode_t() 65 if (mode) in syscall_arg__scnprintf_mode_t() 66 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", mode); in syscall_arg__scnprintf_mode_t()
|
| /tools/testing/selftests/drivers/sdsi/ |
| A D | sdsi_test.py | 29 with open(file, mode='rb') as f: 67 mode = os.stat(folder + "guid").st_mode & 0o777 68 assert mode == 0o444 # Read all 69 mode = os.stat(folder + "registers").st_mode & 0o777 70 assert mode == 0o400 # Read owner 71 mode = os.stat(folder + "provision_akc").st_mode & 0o777 72 assert mode == 0o200 # Read owner 73 mode = os.stat(folder + "provision_cap").st_mode & 0o777 74 assert mode == 0o200 # Read owner 75 mode = os.stat(folder + "state_certificate").st_mode & 0o777 [all …]
|