diff options
author | Richard Braun <rbraun@sceen.net> | 2017-01-24 00:33:55 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-01-24 00:33:55 +0100 |
commit | 01d8174055a1fe4c5914fb9f122099bf6b1d63f4 (patch) | |
tree | fd77b7ec5fae42ea397fe080cb141e90afd64c5b /test | |
parent | 5548178e6c7355c250f2d938e7502040c55228a3 (diff) |
kern/thread: add the THREAD_KERNEL_PREFIX macro
This macro is used to build kernel thread names.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_llsync_defer.c | 6 | ||||
-rw-r--r-- | test/test_pmap_update_mp.c | 4 | ||||
-rw-r--r-- | test/test_sref_dirty_zeroes.c | 4 | ||||
-rw-r--r-- | test/test_sref_noref.c | 4 | ||||
-rw-r--r-- | test/test_vm_page_fill.c | 2 | ||||
-rw-r--r-- | test/test_xcall.c | 2 |
6 files changed, 11 insertions, 11 deletions
diff --git a/test/test_llsync_defer.c b/test/test_llsync_defer.c index 0cbe68d5..e4cca214 100644 --- a/test/test_llsync_defer.c +++ b/test/test_llsync_defer.c @@ -194,17 +194,17 @@ test_setup(void) kmem_cache_init(&test_pdsc_cache, "test_pdsc", sizeof(struct test_pdsc), 0, NULL, 0); - thread_attr_init(&attr, "x15_test_alloc"); + thread_attr_init(&attr, THREAD_KERNEL_PREFIX "test_alloc"); thread_attr_set_detached(&attr); error = thread_create(&thread, &attr, test_alloc, NULL); error_check(error, "thread_create"); - thread_attr_init(&attr,"x15_test_free"); + thread_attr_init(&attr, THREAD_KERNEL_PREFIX "test_free"); thread_attr_set_detached(&attr); error = thread_create(&thread, &attr, test_free, NULL); error_check(error, "thread_create"); - thread_attr_init(&attr, "x15_test_read"); + thread_attr_init(&attr, THREAD_KERNEL_PREFIX "test_read"); thread_attr_set_detached(&attr); error = thread_create(&thread, &attr, test_read, NULL); error_check(error, "thread_create"); diff --git a/test/test_pmap_update_mp.c b/test/test_pmap_update_mp.c index df20dd13..21882bf2 100644 --- a/test/test_pmap_update_mp.c +++ b/test/test_pmap_update_mp.c @@ -110,7 +110,7 @@ test_setup(void) cpumap_zero(cpumap); cpumap_set(cpumap, 0); - thread_attr_init(&attr, "x15_test_run1"); + thread_attr_init(&attr, THREAD_KERNEL_PREFIX "test_run1"); thread_attr_set_detached(&attr); thread_attr_set_cpumap(&attr, cpumap); error = thread_create(&thread, &attr, test_run1, NULL); @@ -118,7 +118,7 @@ test_setup(void) cpumap_zero(cpumap); cpumap_set(cpumap, 1); - thread_attr_init(&attr, "x15_test_run2"); + thread_attr_init(&attr, THREAD_KERNEL_PREFIX "test_run2"); thread_attr_set_detached(&attr); thread_attr_set_cpumap(&attr, cpumap); error = thread_create(&thread, &attr, test_run2, NULL); diff --git a/test/test_sref_dirty_zeroes.c b/test/test_sref_dirty_zeroes.c index e82d35d0..60802197 100644 --- a/test/test_sref_dirty_zeroes.c +++ b/test/test_sref_dirty_zeroes.c @@ -113,12 +113,12 @@ test_setup(void) sref_counter_init(&test_counter, test_noref); test_transient_ref = 0; - thread_attr_init(&attr, "x15_test_inc"); + thread_attr_init(&attr, THREAD_KERNEL_PREFIX "test_inc"); thread_attr_set_detached(&attr); error = thread_create(&thread, &attr, test_inc, NULL); error_check(error, "thread_create"); - thread_attr_init(&attr, "x15_test_dec"); + thread_attr_init(&attr, THREAD_KERNEL_PREFIX "test_dec"); thread_attr_set_detached(&attr); error = thread_create(&thread, &attr, test_dec, NULL); error_check(error, "thread_create"); diff --git a/test/test_sref_noref.c b/test/test_sref_noref.c index 2bcd462e..0895de4b 100644 --- a/test/test_sref_noref.c +++ b/test/test_sref_noref.c @@ -128,7 +128,7 @@ test_run(void *arg) } for (i = 0; i < nr_threads; i++) { - snprintf(name, sizeof(name), "x15_test_ref/%u", i); + snprintf(name, sizeof(name), THREAD_KERNEL_PREFIX "test_ref/%u", i); thread_attr_init(&attr, name); error = thread_create(&threads[i], &attr, test_ref, NULL); error_check(error, "thread_create"); @@ -177,7 +177,7 @@ test_setup(void) condition_init(&test_condition); mutex_init(&test_lock); - thread_attr_init(&attr, "x15_test_run"); + thread_attr_init(&attr, THREAD_KERNEL_PREFIX "test_run"); thread_attr_set_detached(&attr); error = thread_create(&thread, &attr, test_run, NULL); error_check(error, "thread_create"); diff --git a/test/test_vm_page_fill.c b/test/test_vm_page_fill.c index d20fd8ae..55a328b2 100644 --- a/test/test_vm_page_fill.c +++ b/test/test_vm_page_fill.c @@ -132,7 +132,7 @@ test_setup(void) cpumap_zero(&test_cpumap); cpumap_set(&test_cpumap, cpu_id()); - thread_attr_init(&attr, "x15_test_run"); + thread_attr_init(&attr, THREAD_KERNEL_PREFIX "test_run"); thread_attr_set_detached(&attr); thread_attr_set_cpumap(&attr, &test_cpumap); error = thread_create(&thread, &attr, test_run, NULL); diff --git a/test/test_xcall.c b/test/test_xcall.c index 262196d7..2d496de1 100644 --- a/test/test_xcall.c +++ b/test/test_xcall.c @@ -76,7 +76,7 @@ test_setup(void) cpumap_zero(cpumap); cpumap_set(cpumap, 0); - thread_attr_init(&attr, "x15_test_run"); + thread_attr_init(&attr, THREAD_KERNEL_PREFIX "test_run"); thread_attr_set_detached(&attr); thread_attr_set_cpumap(&attr, cpumap); error = thread_create(&thread, &attr, test_run, NULL); |