Changeset e9a1c99 in rtems
- Timestamp:
- 11/27/13 23:56:53 (10 years ago)
- Branches:
- 4.11, 5, master
- Children:
- c625a800
- Parents:
- a9051de9
- git-author:
- Daniel Ramirez <javamonn@…> (11/27/13 23:56:53)
- git-committer:
- Gedare Bloom <gedare@…> (11/28/13 01:50:10)
- Location:
- testsuites/psxtmtests
- Files:
-
- 4 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/psxtmtests/Makefile.am
ra9051de9 re9a1c99 44 44 SUBDIRS += psxtmthread03 45 45 SUBDIRS += psxtmthread05 46 SUBDIRS += psxtmthread06 46 47 endif 47 48 -
testsuites/psxtmtests/configure.ac
ra9051de9 re9a1c99 118 118 psxtmthread03/Makefile 119 119 psxtmthread05/Makefile 120 psxtmthread06/Makefile 120 121 ]) 121 122 AC_OUTPUT -
testsuites/psxtmtests/psxtmtests_plan.csv
ra9051de9 re9a1c99 37 37 "pthread_setschedparam - no thread switch","psxtmthread04","psxtmtest_single w/multiple timings","No" 38 38 "pthread_setschedparam - lower own priority, preempt","psxtmthread05","psxtmtest_single","Yes" 39 "pthread_setschedparam - raise other priority, preempt","psxtmthread06","psxtmtest_single"," No"39 "pthread_setschedparam - raise other priority, preempt","psxtmthread06","psxtmtest_single","Yes" 40 40 ,,, 41 41 "pthread_once",,, -
testsuites/psxtmtests/psxtmthread05/init.c
ra9051de9 re9a1c99 3 3 * On-Line Applications Research Corporation (OAR). 4 4 * COPYRIGHT (c) 2013. 5 * Chirayu Desai (chirayudesai1@gmail.com).6 5 * 7 6 * The license and distribution terms for this file may be … … 38 37 /* make test_thread equal to POSIX_Init() */ 39 38 pthread_getschedparam(pthread_self(), &policy, ¶m); 39 40 40 pthread_setschedparam(thread_ID, policy, ¶m); 41 41 /* At this point, we've switched to test_thread */ 42 42 43 43 /* Back from test_thread, switch to test_thread again */ 44 param.sched_priority = sched_get_priority_m ax(policy) - 1;44 param.sched_priority = sched_get_priority_min(policy); 45 45 46 46 benchmark_timer_initialize(); 47 pthread_setschedparam(thread_ID, policy, ¶m); 47 //lower own priority to minimun, scheduler forces an involuntary context switch 48 pthread_setschedparam(pthread_self(), policy, ¶m); 48 49 } 49 50 … … 53 54 { 54 55 long end_time; 55 56 /* switch to POSIX_Init */57 56 sched_yield(); 58 57 59 58 end_time = benchmark_timer_read(); 60 61 59 put_time( 62 60 "pthread_setschedparam - lower own priority, preempt",
Note: See TracChangeset
for help on using the changeset viewer.