Changeset 11b285d in mainline for kernel/test
- Timestamp:
- 2018-05-13T15:19:32Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ad896eb
- Parents:
- 13db2044
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 14:59:01)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-13 15:19:32)
- Location:
- kernel/test
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/cht/cht1.c
r13db2044 r11b285d 110 110 111 111 for (int i = 0; i < val_cnt; ++i) 112 v[i] = malloc(sizeof(val_t), 0);112 v[i] = nfmalloc(sizeof(val_t)); 113 113 114 114 size_t key[] = { 1, 1, 1, 11, 12, 13 }; … … 316 316 TPRINTF("I{"); 317 317 for (size_t i = 0; i < work->wave_elems; ++i) { 318 stress_t *s = malloc(sizeof(stress_t) , FRAME_ATOMIC);318 stress_t *s = malloc(sizeof(stress_t)); 319 319 if (!s) { 320 320 TPRINTF("[out-of-mem]\n"); … … 473 473 474 474 TPRINTF("Alloc and init table items. \n"); 475 void *p = malloc(size , FRAME_ATOMIC);475 void *p = malloc(size); 476 476 if (!p) { 477 477 TPRINTF("Failed to alloc items\n"); -
kernel/test/mm/falloc1.c
r13db2044 r11b285d 47 47 48 48 uintptr_t *frames = (uintptr_t *) 49 malloc(MAX_FRAMES * sizeof(uintptr_t) , FRAME_ATOMIC);49 malloc(MAX_FRAMES * sizeof(uintptr_t)); 50 50 if (frames == NULL) 51 51 return "Unable to allocate frames"; -
kernel/test/mm/falloc2.c
r13db2044 r11b285d 53 53 54 54 uintptr_t *frames = (uintptr_t *) 55 malloc(MAX_FRAMES * sizeof(uintptr_t) , FRAME_ATOMIC);55 malloc(MAX_FRAMES * sizeof(uintptr_t)); 56 56 if (frames == NULL) { 57 57 TPRINTF("Thread #%" PRIu64 " (cpu%u): " -
kernel/test/synch/rcu1.c
r13db2044 r11b285d 251 251 { 252 252 for (int i = 0; i < nop_updater_iters; i += 2) { 253 rcu_item_t *a = malloc(sizeof(rcu_item_t) , FRAME_ATOMIC);254 rcu_item_t *b = malloc(sizeof(rcu_item_t) , FRAME_ATOMIC);253 rcu_item_t *a = malloc(sizeof(rcu_item_t)); 254 rcu_item_t *b = malloc(sizeof(rcu_item_t)); 255 255 256 256 if (a && b) { … … 315 315 rcu_read_lock(); 316 316 317 item_w_cookie_t *item = malloc(sizeof(item_w_cookie_t) , FRAME_ATOMIC);317 item_w_cookie_t *item = malloc(sizeof(item_w_cookie_t)); 318 318 319 319 if (item) { … … 420 420 /* Updater */ 421 421 for (size_t i = 0; i < work->update_cnt; ++i) { 422 seq_item_t *a = malloc(sizeof(seq_item_t) , FRAME_ATOMIC);423 seq_item_t *b = malloc(sizeof(seq_item_t) , FRAME_ATOMIC);422 seq_item_t *a = malloc(sizeof(seq_item_t)); 423 seq_item_t *b = malloc(sizeof(seq_item_t)); 424 424 425 425 if (a && b) { … … 523 523 TPRINTF("\nReader exits thread with rcu_lock\n"); 524 524 525 exited_t *p = malloc(sizeof(exited_t) , FRAME_ATOMIC);525 exited_t *p = malloc(sizeof(exited_t)); 526 526 if (!p) { 527 527 TPRINTF("[out-of-mem]\n"); … … 686 686 static bool do_one_reader_preempt(void (*f)(void *), const char *err) 687 687 { 688 preempt_t *p = malloc(sizeof(preempt_t) , FRAME_ATOMIC);688 preempt_t *p = malloc(sizeof(preempt_t)); 689 689 if (!p) { 690 690 TPRINTF("[out-of-mem]\n"); … … 777 777 TPRINTF("\nSynchronize with long reader\n"); 778 778 779 synch_t *synch = malloc(sizeof(synch_t) , FRAME_ATOMIC);779 synch_t *synch = malloc(sizeof(synch_t)); 780 780 781 781 if (!synch) { … … 828 828 TPRINTF("\nrcu_barrier: Wait for outstanding rcu callbacks to complete\n"); 829 829 830 barrier_t *barrier = malloc(sizeof(barrier_t) , FRAME_ATOMIC);830 barrier_t *barrier = malloc(sizeof(barrier_t)); 831 831 832 832 if (!barrier) { … … 886 886 887 887 for (size_t i = 0; i < s->iters; ++i) { 888 rcu_item_t *item = malloc(sizeof(rcu_item_t) , FRAME_ATOMIC);888 rcu_item_t *item = malloc(sizeof(rcu_item_t)); 889 889 890 890 if (item) { -
kernel/test/synch/workq-test-core.h
r13db2044 r11b285d 72 72 static test_work_t *create_child(test_work_t *work) 73 73 { 74 test_work_t *child = malloc(sizeof(test_work_t), 0);74 test_work_t *child = nfmalloc(sizeof(test_work_t)); 75 75 assert(child); 76 76 if (child) { … … 152 152 } 153 153 154 test_work_t *work = malloc(sizeof(test_work_t), 0);154 test_work_t *work = nfmalloc(sizeof(test_work_t)); 155 155 156 156 work->master = true;
Note:
See TracChangeset
for help on using the changeset viewer.