Home
last modified time | relevance | path

Searched refs:fail (Results 1 – 25 of 179) sorted by relevance

12345678

/tools/testing/selftests/ftrace/test.d/preemptirq/
Dirqsoff_tracer.tc8 fail() {
36 modprobe $MOD test_mode=preempt delay=500000 || fail
37 rmmod $MOD || fail
38 modprobe $MOD test_mode=preempt delay=500000 || fail
39 rmmod $MOD || fail
40 modprobe $MOD test_mode=preempt delay=500000 || fail
41 rmmod $MOD || fail
46 grep -q "tracer: preemptoff" trace || fail
49 grep -E -q "5.....us : <stack trace>" trace || fail
52 grep -E -q "latency: 5..... us" trace || fail
[all …]
/tools/testing/selftests/exec/
Dexecveat.c169 int fail = 0; in check_execveat_pathmax() local
211 fail += check_execveat(fd, "", AT_EMPTY_PATH); in check_execveat_pathmax()
215 fail++; in check_execveat_pathmax()
230 fail += check_execveat_invoked_rc(root_dfd, longpath + 1, 0, in check_execveat_pathmax()
234 fail += check_execveat(root_dfd, longpath + 1, 0); in check_execveat_pathmax()
237 return fail; in check_execveat_pathmax()
242 int fail = 0; in run_tests() local
280 fail += check_execveat(subdir_dfd, "../execveat", 0); in run_tests()
281 fail += check_execveat(dot_dfd, "execveat", 0); in run_tests()
282 fail += check_execveat(dot_dfd_path, "execveat", 0); in run_tests()
[all …]
/tools/testing/selftests/net/
Dnetns-name.sh19 fail() { function
29 ip -netns $NS link add name $DEV type dummy || fail
31 fail "Can't perform a netns move"
32 ip -netns $test_ns link show dev $DEV >> /dev/null || fail "Device not found after move"
33 ip -netns $test_ns link del $DEV || fail
39 ip -netns $NS link add name $DEV type dummy || fail
41 fail "Performed a netns move with a name conflict"
42 ip -netns $test_ns link show dev $DEV >> /dev/null || fail "Device not found after move"
43 ip -netns $NS link del $DEV || fail
44 ip -netns $test_ns link del $DEV || fail
[all …]
Dbpf_offload.py85 def fail(cond, msg): function
99 def cmd(cmd, shell=True, include_stderr=False, background=False, fail=True): argument
112 return cmd_result(proc, include_stderr=include_stderr, fail=fail)
114 def cmd_result(proc, include_stderr=False, fail=False): argument
131 if proc.returncode != 0 and fail:
146 def tool(name, args, flags, JSON=True, ns="", fail=True, include_stderr=False): argument
158 fail=fail, include_stderr=True)
161 fail=fail, include_stderr=False)
173 def bpftool(args, JSON=True, ns="", fail=True, include_stderr=False): argument
175 fail=fail, include_stderr=include_stderr)
[all …]
Dnetns-sysctl.sh15 fail() { function
25 fail "$sc isn't writable in the init netns!"
29 fail "Can't write $sc in init netns!"
33 fail "Value for $sc mismatch!"
37 fail "$sc is writable in a netns!"
/tools/testing/selftests/user_events/
Duser_events_selftests.h19 static inline bool tracefs_enabled(char **message, bool *fail, bool *umount) in tracefs_enabled() argument
25 *fail = false; in tracefs_enabled()
42 *fail = true; in tracefs_enabled()
53 *fail = true; in tracefs_enabled()
60 static inline bool user_events_enabled(char **message, bool *fail, bool *umount) in user_events_enabled() argument
66 *fail = false; in user_events_enabled()
71 *fail = true; in user_events_enabled()
75 if (!tracefs_enabled(message, fail, umount)) in user_events_enabled()
89 *fail = true; in user_events_enabled()
99 bool fail; \
[all …]
/tools/testing/selftests/ftrace/test.d/ftrace/
Dfunc_traceonoff_triggers.tc16 fail() { # mesg
35 fail "Found junk in trace"
48 fail "Nothing found in trace"
77 fail "Did not find traceoff trigger"
85 fail "Tracing is not stopped"
90 fail "Tracing is not off"
98 fail "Tracing file is still changing"
105 fail "Tracing is still happeing"
112 fail "traceoff trigger still exists"
117 fail "Tracing is started again"
[all …]
Dfunc_set_ftrace_file.tc15 fail() { # mesg
75 fail "Expected only $ALL_FUNCS"
80 fail "Expected $ALL_FUNCS and $FUNC1:traceoff:unlimited"
85 fail "Expected $FUNC1 and $FUNC1:traceoff:unlimited"
90 fail "Expected $FUNC1 $FUNC2 and $FUNC1:traceoff:unlimited"
95 fail "Expected $FUNC1 $FUNC2 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited"
100 fail "Expected $FUNC1 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited"
105 fail "Expected $ALL_FUNCS $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited"
111 fail "Expected $ALL_FUNCS"
116 fail "Expected $FUNC1"
[all …]
Dfgraph-filter-stack.tc15 fail() { # msg
28 fail "can not enable schedule filter"
46 fail "Graph filtering not working with stack tracer?"
52 fail "No schedule traces found?"
63 fail "Graph filtering not working after stack tracer disabled?"
68 fail "No schedule traces found?"
/tools/testing/selftests/bpf/prog_tests/
Dtest_tunnel.c105 SYS(fail, "ip netns add at_ns0"); in config_device()
106 SYS(fail, "ip link add veth0 address " MAC_VETH1 " type veth peer name veth1"); in config_device()
107 SYS(fail, "ip link set veth0 netns at_ns0"); in config_device()
108 SYS(fail, "ip addr add " IP4_ADDR1_VETH1 "/24 dev veth1"); in config_device()
109 SYS(fail, "ip link set dev veth1 up mtu 1500"); in config_device()
110 SYS(fail, "ip netns exec at_ns0 ip addr add " IP4_ADDR_VETH0 "/24 dev veth0"); in config_device()
111 SYS(fail, "ip netns exec at_ns0 ip link set dev veth0 up mtu 1500"); in config_device()
114 fail: in config_device()
129 SYS(fail, "ip netns exec at_ns0 ip link add dev %s type vxlan external gbp dstport 4789", in add_vxlan_tunnel()
131 SYS(fail, "ip netns exec at_ns0 ip link set dev %s address %s up", in add_vxlan_tunnel()
[all …]
Dxfrm_info.c114 SYS(fail, "ip netns add " NS0); in config_underlay()
115 SYS(fail, "ip netns add " NS1); in config_underlay()
116 SYS(fail, "ip netns add " NS2); in config_underlay()
119 SYS(fail, "ip link add veth01 netns " NS0 " type veth peer name veth10 netns " NS1); in config_underlay()
120 SYS(fail, "ip -net " NS0 " addr add " IP4_ADDR_VETH01 "/24 dev veth01"); in config_underlay()
121 SYS(fail, "ip -net " NS0 " link set dev veth01 up"); in config_underlay()
122 SYS(fail, "ip -net " NS1 " addr add " IP4_ADDR_VETH10 "/24 dev veth10"); in config_underlay()
123 SYS(fail, "ip -net " NS1 " link set dev veth10 up"); in config_underlay()
126 SYS(fail, "ip link add veth02 netns " NS0 " type veth peer name veth20 netns " NS2); in config_underlay()
127 SYS(fail, "ip -net " NS0 " addr add " IP4_ADDR_VETH02 "/24 dev veth02"); in config_underlay()
[all …]
Dvrf_socket_lookup.c76 goto fail; in make_socket()
79 fail: in make_socket()
96 goto fail; in make_server()
100 fail: in make_server()
148 SYS(fail, "ip netns add " NS0); in setup()
149 SYS(fail, "ip netns add " NS1); in setup()
152 SYS(fail, "ip link add veth01 netns " NS0 " type veth peer name veth10" in setup()
154 SYS(fail, "ip -net " NS0 " addr add " IP4_ADDR_VETH01 "/24 dev veth01"); in setup()
155 SYS(fail, "ip -net " NS0 " link set dev veth01 up"); in setup()
156 SYS(fail, "ip -net " NS1 " addr add " IP4_ADDR_VETH10 "/24 dev veth10"); in setup()
[all …]
Dfib_lookup.c151 SYS(fail, "ip link add veth1 type veth peer name veth2"); in setup_netns()
152 SYS(fail, "ip link set dev veth1 up"); in setup_netns()
153 SYS(fail, "ip link set dev veth2 up"); in setup_netns()
157 goto fail; in setup_netns()
161 goto fail; in setup_netns()
163 SYS(fail, "ip addr add %s/64 dev veth1 nodad", IPV6_IFACE_ADDR); in setup_netns()
164 SYS(fail, "ip neigh add %s dev veth1 nud failed", IPV6_NUD_FAILED_ADDR); in setup_netns()
165 SYS(fail, "ip neigh add %s dev veth1 lladdr %s nud stale", IPV6_NUD_STALE_ADDR, DMAC); in setup_netns()
167 SYS(fail, "ip addr add %s/24 dev veth1", IPV4_IFACE_ADDR); in setup_netns()
168 SYS(fail, "ip neigh add %s dev veth1 nud failed", IPV4_NUD_FAILED_ADDR); in setup_netns()
[all …]
Dcrypto_sanity.c99 SYS(fail, "ip netns add %s", NS_TEST); in test_crypto_sanity()
100 SYS(fail, "ip -net %s -6 addr add %s/128 dev lo nodad", NS_TEST, IPV6_IFACE_ADDR); in test_crypto_sanity()
101 SYS(fail, "ip -net %s link set dev lo up", NS_TEST); in test_crypto_sanity()
105 goto fail; in test_crypto_sanity()
109 goto fail; in test_crypto_sanity()
113 goto fail; in test_crypto_sanity()
122 goto fail; in test_crypto_sanity()
127 goto fail; in test_crypto_sanity()
130 goto fail; in test_crypto_sanity()
134 goto fail; in test_crypto_sanity()
[all …]
Ddecap_sanity.c31 SYS(fail, "ip netns add %s", NS_TEST); in test_decap_sanity()
32 SYS(fail, "ip -net %s -6 addr add %s/128 dev lo nodad", NS_TEST, IPV6_IFACE_ADDR); in test_decap_sanity()
33 SYS(fail, "ip -net %s link set dev lo up", NS_TEST); in test_decap_sanity()
37 goto fail; in test_decap_sanity()
41 goto fail; in test_decap_sanity()
45 goto fail; in test_decap_sanity()
50 goto fail; in test_decap_sanity()
56 goto fail; in test_decap_sanity()
59 goto fail; in test_decap_sanity()
63 goto fail; in test_decap_sanity()
[all …]
Dtc_redirect.c210 SYS(fail, "ip link add src type veth peer name src_fwd"); in netns_setup_links_and_routes()
211 SYS(fail, "ip link add dst type veth peer name dst_fwd"); in netns_setup_links_and_routes()
213 SYS(fail, "ip link set dst_fwd address " MAC_DST_FWD); in netns_setup_links_and_routes()
214 SYS(fail, "ip link set dst address " MAC_DST); in netns_setup_links_and_routes()
218 goto fail; in netns_setup_links_and_routes()
221 goto fail; in netns_setup_links_and_routes()
225 goto fail; in netns_setup_links_and_routes()
228 goto fail; in netns_setup_links_and_routes()
232 goto fail; in netns_setup_links_and_routes()
236 goto fail; in netns_setup_links_and_routes()
[all …]
Dlwt_reroute.c165 SYS(fail, "ip link add link_err type dummy"); in setup()
166 SYS(fail, "ip link set lo up"); in setup()
167 SYS(fail, "ip addr add dev lo " LOCAL_SRC "/32"); in setup()
168 SYS(fail, "ip link set link_err up"); in setup()
169 SYS(fail, "ip link set %s up", tun_dev); in setup()
171 SYS(fail, "ip route add %s dev link_err encap bpf xmit obj %s sec lwt_xmit", in setup()
174 SYS(fail, "ip rule add pref 100 from all fwmark %d lookup 100", in setup()
176 SYS(fail, "ip route add t 100 default dev %s", tun_dev); in setup()
180 fail: in setup()
228 goto fail; in test_lwt_reroute_qdisc_dropped()
[all …]
/tools/testing/selftests/proc/
Dproc-self-map-files-001.c36 static void fail(const char *fmt, unsigned long a, unsigned long b) in fail() function
66 fail("/proc/self/map_files/ %lx-%lx", a, b); in main()
67 fail("/proc/self/map_files/%lx -%lx", a, b); in main()
68 fail("/proc/self/map_files/%lx- %lx", a, b); in main()
69 fail("/proc/self/map_files/%lx-%lx ", a, b); in main()
70 fail("/proc/self/map_files/0%lx-%lx", a, b); in main()
71 fail("/proc/self/map_files/%lx-0%lx", a, b); in main()
73 fail("/proc/self/map_files/100000000%lx-%lx", a, b); in main()
74 fail("/proc/self/map_files/%lx-100000000%lx", a, b); in main()
76 fail("/proc/self/map_files/10000000000000000%lx-%lx", a, b); in main()
[all …]
Dproc-self-map-files-002.c36 static void fail(const char *fmt, unsigned long a, unsigned long b) in fail() function
78 fail("/proc/self/map_files/ %lx-%lx", a, b); in main()
79 fail("/proc/self/map_files/%lx -%lx", a, b); in main()
80 fail("/proc/self/map_files/%lx- %lx", a, b); in main()
81 fail("/proc/self/map_files/%lx-%lx ", a, b); in main()
82 fail("/proc/self/map_files/0%lx-%lx", a, b); in main()
83 fail("/proc/self/map_files/%lx-0%lx", a, b); in main()
85 fail("/proc/self/map_files/100000000%lx-%lx", a, b); in main()
86 fail("/proc/self/map_files/%lx-100000000%lx", a, b); in main()
88 fail("/proc/self/map_files/10000000000000000%lx-%lx", a, b); in main()
[all …]
/tools/testing/selftests/gpio/
Dgpio-sim.sh9 fail() { function
35 fail "Unable to remove the hog"
39 fail "Unable to remove the line"
46 rmdir $CONFIGFS_DIR/$CHIP || fail "Unable to remove the chip"
67 echo $LABEL > $CONFIGFS_DIR/$CHIP/$BANK/label || fail "Unable to set the chip label"
76 fail "Unable to set the number of lines"
87 echo $NAME > $LINE_DIR/name || fail "Unable to set the line name"
93 echo 1 > $CONFIGFS_DIR/$CHIP/live || fail "Unable to enable the chip"
99 echo 0 > $CONFIGFS_DIR/$CHIP/live || fail "Unable to disable the chip"
114 fail "unable to read the chip name from configfs"
[all …]
/tools/testing/selftests/bpf/
Dwith_addr.sh16 fail() { function
22 ip -6 addr add "${V6_INNER}" dev lo || fail 'failed to setup v6 address'
23 ip -4 addr add "${V4_INNER}" dev lo || fail 'failed to setup v4 address'
27 || fail 'failed to add sit'
29 || fail 'failed to bring sit device up'
31 || fail 'failed to setup v6 SIT address'
33 || fail 'failed to setup v4 SIT address'
/tools/testing/selftests/ftrace/test.d/trigger/
Dtrigger-multihist.tc7 fail() { #msg
18 fail "hist trigger on sched_process_fork did not work"
20 fail "hist trigger on sched_process_fork did not work"
23 fail "string key on sched_process_fork did not work"
32 fail "named event on sched_process_fork did not work"
39 fail "named event on sched_process_fork did not work"
42 test $diffs -eq 0 || fail "Same name histograms are not same"
Dtrigger-hist.tc7 fail() { #msg
17 fail "hist trigger on sched_process_fork did not work"
19 fail "hist trigger on sched_process_fork did not work"
28 fail "compound keys on sched_process_fork did not work"
38 fail "string key on sched_process_fork did not work"
47 fail "sym modifier on kmalloc call_site did not work"
56 fail "sym-offset modifier on kmalloc call_site did not work"
74 fail "sort param on sched_process_fork did not work"
/tools/testing/selftests/powerpc/signal/
Dsignal_tm.c26 static sig_atomic_t fail; variable
31 fail = 2; in signal_handler()
38 fail = 1; in signal_handler()
89 i, fail, rc, ret); in test_signal_tm()
92 while(!signaled && !fail) in test_signal_tm()
96 i, fail, rc, ret); in test_signal_tm()
97 FAIL_IF(fail); /* For the line number */ in test_signal_tm()
/tools/testing/selftests/arm64/fp/
Dzt-ptrace.c125 bool fail = false; in ptrace_za_disabled_read_zt() local
135 fail = true; in ptrace_za_disabled_read_zt()
142 fail = true; in ptrace_za_disabled_read_zt()
148 fail = true; in ptrace_za_disabled_read_zt()
152 ksft_test_result(!fail, "ptrace_za_disabled_read_zt\n"); in ptrace_za_disabled_read_zt()
161 bool fail = false; in ptrace_set_get_zt() local
168 fail = true; in ptrace_set_get_zt()
174 fail = true; in ptrace_set_get_zt()
181 fail = true; in ptrace_set_get_zt()
185 ksft_test_result(!fail, "ptrace_set_get_zt\n"); in ptrace_set_get_zt()
[all …]

12345678