aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-04-07 15:08:19 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-04-07 15:08:19 -0400
commit49a695ba723224875df50e327bd7b0b65dd9a56b (patch)
tree02372931e3e751106ca16bae14567d990bf22ad8 /tools
parent299f89d53e61c0b17479cc7d6f3b5382d5e83f28 (diff)
parentc1b25a17d24925b0961c319cfc3fd7e1dc778914 (diff)
Merge tag 'powerpc-4.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc updates from Michael Ellerman: "Notable changes: - Support for 4PB user address space on 64-bit, opt-in via mmap(). - Removal of POWER4 support, which was accidentally broken in 2016 and no one noticed, and blocked use of some modern instructions. - Workarounds so that the hypervisor can enable Transactional Memory on Power9. - A series to disable the DAWR (Data Address Watchpoint Register) on Power9. - More information displayed in the meltdown/spectre_v1/v2 sysfs files. - A vpermxor (Power8 Altivec) implementation for the raid6 Q Syndrome. - A big series to make the allocation of our pacas (per cpu area), kernel page tables, and per-cpu stacks NUMA aware when using the Radix MMU on Power9. And as usual many fixes, reworks and cleanups. Thanks to: Aaro Koskinen, Alexandre Belloni, Alexey Kardashevskiy, Alistair Popple, Andy Shevchenko, Aneesh Kumar K.V, Anshuman Khandual, Balbir Singh, Benjamin Herrenschmidt, Christophe Leroy, Christophe Lombard, Cyril Bur, Daniel Axtens, Dave Young, Finn Thain, Frederic Barrat, Gustavo Romero, Horia Geantă, Jonathan Neuschäfer, Kees Cook, Larry Finger, Laurent Dufour, Laurent Vivier, Logan Gunthorpe, Madhavan Srinivasan, Mark Greer, Mark Hairgrove, Markus Elfring, Mathieu Malaterre, Matt Brown, Matt Evans, Mauricio Faria de Oliveira, Michael Neuling, Naveen N. Rao, Nicholas Piggin, Paul Mackerras, Philippe Bergheaud, Ram Pai, Rob Herring, Sam Bobroff, Segher Boessenkool, Simon Guo, Simon Horman, Stewart Smith, Sukadev Bhattiprolu, Suraj Jitindar Singh, Thiago Jung Bauermann, Vaibhav Jain, Vaidyanathan Srinivasan, Vasant Hegde, Wei Yongjun" * tag 'powerpc-4.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (207 commits) powerpc/64s/idle: Fix restore of AMOR on POWER9 after deep sleep powerpc/64s: Fix POWER9 DD2.2 and above in cputable features powerpc/64s: Fix pkey support in dt_cpu_ftrs, add CPU_FTR_PKEY bit powerpc/64s: Fix dt_cpu_ftrs to have restore_cpu clear unwanted LPCR bits Revert "powerpc/64s/idle: POWER9 ESL=0 stop avoid save/restore overhead" powerpc: iomap.c: introduce io{read|write}64_{lo_hi|hi_lo} powerpc: io.h: move iomap.h include so that it can use readq/writeq defs cxl: Fix possible deadlock when processing page faults from cxllib powerpc/hw_breakpoint: Only disable hw breakpoint if cpu supports it powerpc/mm/radix: Update command line parsing for disable_radix powerpc/mm/radix: Parse disable_radix commandline correctly. powerpc/mm/hugetlb: initialize the pagetable cache correctly for hugetlb powerpc/mm/radix: Update pte fragment count from 16 to 256 on radix powerpc/mm/keys: Update documentation and remove unnecessary check powerpc/64s/idle: POWER9 ESL=0 stop avoid save/restore overhead powerpc/64s/idle: Consolidate power9_offline_stop()/power9_idle_stop() powerpc/powernv: Always stop secondaries before reboot/shutdown powerpc: hard disable irqs in smp_send_stop loop powerpc: use NMI IPI for smp_send_stop powerpc/powernv: Fix SMT4 forcing idle code ...
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/powerpc/benchmarks/.gitignore2
-rw-r--r--tools/testing/selftests/powerpc/benchmarks/Makefile7
-rw-r--r--tools/testing/selftests/powerpc/benchmarks/exec_target.c13
-rw-r--r--tools/testing/selftests/powerpc/benchmarks/fork.c325
-rw-r--r--tools/testing/selftests/powerpc/copyloops/Makefile4
-rw-r--r--tools/testing/selftests/powerpc/tm/Makefile2
-rw-r--r--tools/testing/selftests/powerpc/tm/tm-sigreturn.c92
-rw-r--r--tools/testing/selftests/powerpc/tm/tm-unavailable.c24
8 files changed, 457 insertions, 12 deletions
diff --git a/tools/testing/selftests/powerpc/benchmarks/.gitignore b/tools/testing/selftests/powerpc/benchmarks/.gitignore
index 04dc1e6ef2ce..9161679b1e1a 100644
--- a/tools/testing/selftests/powerpc/benchmarks/.gitignore
+++ b/tools/testing/selftests/powerpc/benchmarks/.gitignore
@@ -1,5 +1,7 @@
1gettimeofday 1gettimeofday
2context_switch 2context_switch
3fork
4exec_target
3mmap_bench 5mmap_bench
4futex_bench 6futex_bench
5null_syscall 7null_syscall
diff --git a/tools/testing/selftests/powerpc/benchmarks/Makefile b/tools/testing/selftests/powerpc/benchmarks/Makefile
index a35058e3766c..b4d7432a0ecd 100644
--- a/tools/testing/selftests/powerpc/benchmarks/Makefile
+++ b/tools/testing/selftests/powerpc/benchmarks/Makefile
@@ -1,5 +1,6 @@
1# SPDX-License-Identifier: GPL-2.0 1# SPDX-License-Identifier: GPL-2.0
2TEST_GEN_PROGS := gettimeofday context_switch mmap_bench futex_bench null_syscall 2TEST_GEN_PROGS := gettimeofday context_switch fork mmap_bench futex_bench null_syscall
3TEST_GEN_FILES := exec_target
3 4
4CFLAGS += -O2 5CFLAGS += -O2
5 6
@@ -10,3 +11,7 @@ $(TEST_GEN_PROGS): ../harness.c
10$(OUTPUT)/context_switch: ../utils.c 11$(OUTPUT)/context_switch: ../utils.c
11$(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec 12$(OUTPUT)/context_switch: CFLAGS += -maltivec -mvsx -mabi=altivec
12$(OUTPUT)/context_switch: LDLIBS += -lpthread 13$(OUTPUT)/context_switch: LDLIBS += -lpthread
14
15$(OUTPUT)/fork: LDLIBS += -lpthread
16
17$(OUTPUT)/exec_target: CFLAGS += -static -nostartfiles
diff --git a/tools/testing/selftests/powerpc/benchmarks/exec_target.c b/tools/testing/selftests/powerpc/benchmarks/exec_target.c
new file mode 100644
index 000000000000..3c9c144192be
--- /dev/null
+++ b/tools/testing/selftests/powerpc/benchmarks/exec_target.c
@@ -0,0 +1,13 @@
1// SPDX-License-Identifier: GPL-2.0+
2
3/*
4 * Part of fork context switch microbenchmark.
5 *
6 * Copyright 2018, Anton Blanchard, IBM Corp.
7 */
8
9void _exit(int);
10void _start(void)
11{
12 _exit(0);
13}
diff --git a/tools/testing/selftests/powerpc/benchmarks/fork.c b/tools/testing/selftests/powerpc/benchmarks/fork.c
new file mode 100644
index 000000000000..d312e638cb37
--- /dev/null
+++ b/tools/testing/selftests/powerpc/benchmarks/fork.c
@@ -0,0 +1,325 @@
1// SPDX-License-Identifier: GPL-2.0+
2
3/*
4 * Context switch microbenchmark.
5 *
6 * Copyright 2018, Anton Blanchard, IBM Corp.
7 */
8
9#define _GNU_SOURCE
10#include <assert.h>
11#include <errno.h>
12#include <getopt.h>
13#include <limits.h>
14#include <linux/futex.h>
15#include <pthread.h>
16#include <sched.h>
17#include <signal.h>
18#include <stdio.h>
19#include <stdlib.h>
20#include <string.h>
21#include <sys/shm.h>
22#include <sys/syscall.h>
23#include <sys/time.h>
24#include <sys/types.h>
25#include <sys/wait.h>
26#include <unistd.h>
27
28static unsigned int timeout = 30;
29
30static void set_cpu(int cpu)
31{
32 cpu_set_t cpuset;
33
34 if (cpu == -1)
35 return;
36
37 CPU_ZERO(&cpuset);
38 CPU_SET(cpu, &cpuset);
39
40 if (sched_setaffinity(0, sizeof(cpuset), &cpuset)) {
41 perror("sched_setaffinity");
42 exit(1);
43 }
44}
45
46static void start_process_on(void *(*fn)(void *), void *arg, int cpu)
47{
48 int pid;
49
50 pid = fork();
51 if (pid == -1) {
52 perror("fork");
53 exit(1);
54 }
55
56 if (pid)
57 return;
58
59 set_cpu(cpu);
60
61 fn(arg);
62
63 exit(0);
64}
65
66static int cpu;
67static int do_fork = 0;
68static int do_vfork = 0;
69static int do_exec = 0;
70static char *exec_file;
71static int exec_target = 0;
72static unsigned long iterations;
73static unsigned long iterations_prev;
74
75static void run_exec(void)
76{
77 char *const argv[] = { "./exec_target", NULL };
78
79 if (execve("./exec_target", argv, NULL) == -1) {
80 perror("execve");
81 exit(1);
82 }
83}
84
85static void bench_fork(void)
86{
87 while (1) {
88 pid_t pid = fork();
89 if (pid == -1) {
90 perror("fork");
91 exit(1);
92 }
93 if (pid == 0) {
94 if (do_exec)
95 run_exec();
96 _exit(0);
97 }
98 pid = waitpid(pid, NULL, 0);
99 if (pid == -1) {
100 perror("waitpid");
101 exit(1);
102 }
103 iterations++;
104 }
105}
106
107static void bench_vfork(void)
108{
109 while (1) {
110 pid_t pid = vfork();
111 if (pid == -1) {
112 perror("fork");
113 exit(1);
114 }
115 if (pid == 0) {
116 if (do_exec)
117 run_exec();
118 _exit(0);
119 }
120 pid = waitpid(pid, NULL, 0);
121 if (pid == -1) {
122 perror("waitpid");
123 exit(1);
124 }
125 iterations++;
126 }
127}
128
129static void *null_fn(void *arg)
130{
131 pthread_exit(NULL);
132}
133
134static void bench_thread(void)
135{
136 pthread_t tid;
137 cpu_set_t cpuset;
138 pthread_attr_t attr;
139 int rc;
140
141 rc = pthread_attr_init(&attr);
142 if (rc) {
143 errno = rc;
144 perror("pthread_attr_init");
145 exit(1);
146 }
147
148 if (cpu != -1) {
149 CPU_ZERO(&cpuset);
150 CPU_SET(cpu, &cpuset);
151
152 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset);
153 if (rc) {
154 errno = rc;
155 perror("pthread_attr_setaffinity_np");
156 exit(1);
157 }
158 }
159
160 while (1) {
161 rc = pthread_create(&tid, &attr, null_fn, NULL);
162 if (rc) {
163 errno = rc;
164 perror("pthread_create");
165 exit(1);
166 }
167 rc = pthread_join(tid, NULL);
168 if (rc) {
169 errno = rc;
170 perror("pthread_join");
171 exit(1);
172 }
173 iterations++;
174 }
175}
176
177static void sigalrm_handler(int junk)
178{
179 unsigned long i = iterations;
180
181 printf("%ld\n", i - iterations_prev);
182 iterations_prev = i;
183
184 if (--timeout == 0)
185 kill(0, SIGUSR1);
186
187 alarm(1);
188}
189
190static void sigusr1_handler(int junk)
191{
192 exit(0);
193}
194
195static void *bench_proc(void *arg)
196{
197 signal(SIGALRM, sigalrm_handler);
198 alarm(1);
199
200 if (do_fork)
201 bench_fork();
202 else if (do_vfork)
203 bench_vfork();
204 else
205 bench_thread();
206
207 return NULL;
208}
209
210static struct option options[] = {
211 { "fork", no_argument, &do_fork, 1 },
212 { "vfork", no_argument, &do_vfork, 1 },
213 { "exec", no_argument, &do_exec, 1 },
214 { "timeout", required_argument, 0, 's' },
215 { "exec-target", no_argument, &exec_target, 1 },
216 { NULL },
217};
218
219static void usage(void)
220{
221 fprintf(stderr, "Usage: fork <options> CPU\n\n");
222 fprintf(stderr, "\t\t--fork\tUse fork() (default threads)\n");
223 fprintf(stderr, "\t\t--vfork\tUse vfork() (default threads)\n");
224 fprintf(stderr, "\t\t--exec\tAlso exec() (default no exec)\n");
225 fprintf(stderr, "\t\t--timeout=X\tDuration in seconds to run (default 30)\n");
226 fprintf(stderr, "\t\t--exec-target\tInternal option for exec workload\n");
227}
228
229int main(int argc, char *argv[])
230{
231 signed char c;
232
233 while (1) {
234 int option_index = 0;
235
236 c = getopt_long(argc, argv, "", options, &option_index);
237
238 if (c == -1)
239 break;
240
241 switch (c) {
242 case 0:
243 if (options[option_index].flag != 0)
244 break;
245
246 usage();
247 exit(1);
248 break;
249
250 case 's':
251 timeout = atoi(optarg);
252 break;
253
254 default:
255 usage();
256 exit(1);
257 }
258 }
259
260 if (do_fork && do_vfork) {
261 usage();
262 exit(1);
263 }
264 if (do_exec && !do_fork && !do_vfork) {
265 usage();
266 exit(1);
267 }
268
269 if (do_exec) {
270 char *dirname = strdup(argv[0]);
271 int i;
272 i = strlen(dirname) - 1;
273 while (i) {
274 if (dirname[i] == '/') {
275 dirname[i] = '\0';
276 if (chdir(dirname) == -1) {
277 perror("chdir");
278 exit(1);
279 }
280 break;
281 }
282 i--;
283 }
284 }
285
286 if (exec_target) {
287 exit(0);
288 }
289
290 if (((argc - optind) != 1)) {
291 cpu = -1;
292 } else {
293 cpu = atoi(argv[optind++]);
294 }
295
296 if (do_exec)
297 exec_file = argv[0];
298
299 set_cpu(cpu);
300
301 printf("Using ");
302 if (do_fork)
303 printf("fork");
304 else if (do_vfork)
305 printf("vfork");
306 else
307 printf("clone");
308
309 if (do_exec)
310 printf(" + exec");
311
312 printf(" on cpu %d\n", cpu);
313
314 /* Create a new process group so we can signal everyone for exit */
315 setpgid(getpid(), getpid());
316
317 signal(SIGUSR1, sigusr1_handler);
318
319 start_process_on(bench_proc, NULL, cpu);
320
321 while (1)
322 sleep(3600);
323
324 return 0;
325}
diff --git a/tools/testing/selftests/powerpc/copyloops/Makefile b/tools/testing/selftests/powerpc/copyloops/Makefile
index ac4a52e19e59..eedce3366f64 100644
--- a/tools/testing/selftests/powerpc/copyloops/Makefile
+++ b/tools/testing/selftests/powerpc/copyloops/Makefile
@@ -5,8 +5,8 @@ CFLAGS += -I$(CURDIR)
5CFLAGS += -D SELFTEST 5CFLAGS += -D SELFTEST
6CFLAGS += -maltivec 6CFLAGS += -maltivec
7 7
8# Use our CFLAGS for the implicit .S rule 8# Use our CFLAGS for the implicit .S rule & set the asm machine type
9ASFLAGS = $(CFLAGS) 9ASFLAGS = $(CFLAGS) -Wa,-mpower4
10 10
11TEST_GEN_PROGS := copyuser_64 copyuser_power7 memcpy_64 memcpy_power7 11TEST_GEN_PROGS := copyuser_64 copyuser_power7 memcpy_64 memcpy_power7
12EXTRA_SOURCES := validate.c ../harness.c 12EXTRA_SOURCES := validate.c ../harness.c
diff --git a/tools/testing/selftests/powerpc/tm/Makefile b/tools/testing/selftests/powerpc/tm/Makefile
index 5c72ff978f27..c0e45d2dde25 100644
--- a/tools/testing/selftests/powerpc/tm/Makefile
+++ b/tools/testing/selftests/powerpc/tm/Makefile
@@ -4,7 +4,7 @@ SIGNAL_CONTEXT_CHK_TESTS := tm-signal-context-chk-gpr tm-signal-context-chk-fpu
4 4
5TEST_GEN_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \ 5TEST_GEN_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \
6 tm-vmxcopy tm-fork tm-tar tm-tmspr tm-vmx-unavail tm-unavailable tm-trap \ 6 tm-vmxcopy tm-fork tm-tar tm-tmspr tm-vmx-unavail tm-unavailable tm-trap \
7 $(SIGNAL_CONTEXT_CHK_TESTS) 7 $(SIGNAL_CONTEXT_CHK_TESTS) tm-sigreturn
8 8
9include ../../lib.mk 9include ../../lib.mk
10 10
diff --git a/tools/testing/selftests/powerpc/tm/tm-sigreturn.c b/tools/testing/selftests/powerpc/tm/tm-sigreturn.c
new file mode 100644
index 000000000000..85d63449243b
--- /dev/null
+++ b/tools/testing/selftests/powerpc/tm/tm-sigreturn.c
@@ -0,0 +1,92 @@
1// SPDX-License-Identifier: GPL-2.0
2
3/*
4 * Copyright 2015, Laurent Dufour, IBM Corp.
5 *
6 * Test the kernel's signal returning code to check reclaim is done if the
7 * sigreturn() is called while in a transaction (suspended since active is
8 * already dropped trough the system call path).
9 *
10 * The kernel must discard the transaction when entering sigreturn, since
11 * restoring the potential TM SPRS from the signal frame is requiring to not be
12 * in a transaction.
13 */
14
15#include <signal.h>
16#include <stdio.h>
17#include <stdlib.h>
18#include <string.h>
19#include <sys/types.h>
20#include <sys/wait.h>
21#include <unistd.h>
22
23#include "tm.h"
24#include "utils.h"
25
26
27void handler(int sig)
28{
29 uint64_t ret;
30
31 asm __volatile__(
32 "li 3,1 ;"
33 "tbegin. ;"
34 "beq 1f ;"
35 "li 3,0 ;"
36 "tsuspend. ;"
37 "1: ;"
38 "std%X[ret] 3, %[ret] ;"
39 : [ret] "=m"(ret)
40 :
41 : "memory", "3", "cr0");
42
43 if (ret)
44 exit(1);
45
46 /*
47 * We return from the signal handle while in a suspended transaction
48 */
49}
50
51
52int tm_sigreturn(void)
53{
54 struct sigaction sa;
55 uint64_t ret = 0;
56
57 SKIP_IF(!have_htm());
58
59 memset(&sa, 0, sizeof(sa));
60 sa.sa_handler = handler;
61 sigemptyset(&sa.sa_mask);
62
63 if (sigaction(SIGSEGV, &sa, NULL))
64 exit(1);
65
66 asm __volatile__(
67 "tbegin. ;"
68 "beq 1f ;"
69 "li 3,0 ;"
70 "std 3,0(3) ;" /* trigger SEGV */
71 "li 3,1 ;"
72 "std%X[ret] 3,%[ret] ;"
73 "tend. ;"
74 "b 2f ;"
75 "1: ;"
76 "li 3,2 ;"
77 "std%X[ret] 3,%[ret] ;"
78 "2: ;"
79 : [ret] "=m"(ret)
80 :
81 : "memory", "3", "cr0");
82
83 if (ret != 2)
84 exit(1);
85
86 exit(0);
87}
88
89int main(void)
90{
91 return test_harness(tm_sigreturn, "tm_sigreturn");
92}
diff --git a/tools/testing/selftests/powerpc/tm/tm-unavailable.c b/tools/testing/selftests/powerpc/tm/tm-unavailable.c
index e6a0fad2bfd0..156c8e750259 100644
--- a/tools/testing/selftests/powerpc/tm/tm-unavailable.c
+++ b/tools/testing/selftests/powerpc/tm/tm-unavailable.c
@@ -80,7 +80,7 @@ bool is_failure(uint64_t condition_reg)
80 return ((condition_reg >> 28) & 0xa) == 0xa; 80 return ((condition_reg >> 28) & 0xa) == 0xa;
81} 81}
82 82
83void *ping(void *input) 83void *tm_una_ping(void *input)
84{ 84{
85 85
86 /* 86 /*
@@ -280,7 +280,7 @@ void *ping(void *input)
280} 280}
281 281
282/* Thread to force context switch */ 282/* Thread to force context switch */
283void *pong(void *not_used) 283void *tm_una_pong(void *not_used)
284{ 284{
285 /* Wait thread get its name "pong". */ 285 /* Wait thread get its name "pong". */
286 if (DEBUG) 286 if (DEBUG)
@@ -311,11 +311,11 @@ void test_fp_vec(int fp, int vec, pthread_attr_t *attr)
311 do { 311 do {
312 int rc; 312 int rc;
313 313
314 /* Bind 'ping' to CPU 0, as specified in 'attr'. */ 314 /* Bind to CPU 0, as specified in 'attr'. */
315 rc = pthread_create(&t0, attr, ping, (void *) &flags); 315 rc = pthread_create(&t0, attr, tm_una_ping, (void *) &flags);
316 if (rc) 316 if (rc)
317 pr_err(rc, "pthread_create()"); 317 pr_err(rc, "pthread_create()");
318 rc = pthread_setname_np(t0, "ping"); 318 rc = pthread_setname_np(t0, "tm_una_ping");
319 if (rc) 319 if (rc)
320 pr_warn(rc, "pthread_setname_np"); 320 pr_warn(rc, "pthread_setname_np");
321 rc = pthread_join(t0, &ret_value); 321 rc = pthread_join(t0, &ret_value);
@@ -333,13 +333,15 @@ void test_fp_vec(int fp, int vec, pthread_attr_t *attr)
333 } 333 }
334} 334}
335 335
336int main(int argc, char **argv) 336int tm_unavailable_test(void)
337{ 337{
338 int rc, exception; /* FP = 0, VEC = 1, VSX = 2 */ 338 int rc, exception; /* FP = 0, VEC = 1, VSX = 2 */
339 pthread_t t1; 339 pthread_t t1;
340 pthread_attr_t attr; 340 pthread_attr_t attr;
341 cpu_set_t cpuset; 341 cpu_set_t cpuset;
342 342
343 SKIP_IF(!have_htm());
344
343 /* Set only CPU 0 in the mask. Both threads will be bound to CPU 0. */ 345 /* Set only CPU 0 in the mask. Both threads will be bound to CPU 0. */
344 CPU_ZERO(&cpuset); 346 CPU_ZERO(&cpuset);
345 CPU_SET(0, &cpuset); 347 CPU_SET(0, &cpuset);
@@ -354,12 +356,12 @@ int main(int argc, char **argv)
354 if (rc) 356 if (rc)
355 pr_err(rc, "pthread_attr_setaffinity_np()"); 357 pr_err(rc, "pthread_attr_setaffinity_np()");
356 358
357 rc = pthread_create(&t1, &attr /* Bind 'pong' to CPU 0 */, pong, NULL); 359 rc = pthread_create(&t1, &attr /* Bind to CPU 0 */, tm_una_pong, NULL);
358 if (rc) 360 if (rc)
359 pr_err(rc, "pthread_create()"); 361 pr_err(rc, "pthread_create()");
360 362
361 /* Name it for systemtap convenience */ 363 /* Name it for systemtap convenience */
362 rc = pthread_setname_np(t1, "pong"); 364 rc = pthread_setname_np(t1, "tm_una_pong");
363 if (rc) 365 if (rc)
364 pr_warn(rc, "pthread_create()"); 366 pr_warn(rc, "pthread_create()");
365 367
@@ -394,3 +396,9 @@ int main(int argc, char **argv)
394 exit(0); 396 exit(0);
395 } 397 }
396} 398}
399
400int main(int argc, char **argv)
401{
402 test_harness_set_timeout(220);
403 return test_harness(tm_unavailable_test, "tm_unavailable_test");
404}