Changeset 305 for asp3_wo_tecs/trunk/test
- Timestamp:
- Jun 26, 2017, 6:45:41 PM (7 years ago)
- Location:
- asp3_wo_tecs/trunk/test
- Files:
-
- 4 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_wo_tecs/trunk/test/bit_kernel.c
r302 r305 4 4 * Advanced Standard Profile Kernel 5 5 * 6 * Copyright (C) 2005-201 5by Embedded and Real-Time Systems Laboratory6 * Copyright (C) 2005-2016 by Embedded and Real-Time Systems Laboratory 7 7 * Graduate School of Information Science, Nagoya Univ., JAPAN 8 8 * … … 51 51 * ã®è²¬ä»»ãè² ããªãï¼ 52 52 * 53 * $Id: bit_kernel.c 456 2015-08-16 06:11:51Z ertl-hiro $53 * $Id: bit_kernel.c 554 2016-01-17 13:21:59Z ertl-hiro $ 54 54 */ 55 55 … … 167 167 #endif /* PRIMAP_BIT */ 168 168 169 Inline bool_t 170 primap_empty(void) 171 { 172 #ifndef PRIMAP_LEVEL_2 173 return(ready_primap == 0U); 174 #else /* PRIMAP_LEVEL_2 */ 175 return(ready_primap1 == 0U); 176 #endif /* PRIMAP_LEVEL_2 */ 177 } 178 179 Inline uint16_t 180 primap_extract_bit(uint_t pri) 181 { 182 #ifndef PRIMAP_LEVEL_2 183 return(ready_primap & PRIMAP_BIT(pri)); 184 #else /* PRIMAP_LEVEL_2 */ 185 return(ready_primap2[pri / TBIT_PRIMAP] & PRIMAP_BIT(pri % TBIT_PRIMAP)); 186 #endif /* PRIMAP_LEVEL_2 */ 187 } 188 169 189 static ER 170 190 bit_schedcb(void) … … 178 198 */ 179 199 if (enadsp) { 180 if ( ready_primap == 0U) {200 if (primap_empty()) { 181 201 if (p_schedtsk != NULL) { 182 202 return(E_SYS_LINENO); … … 189 209 } 190 210 } 211 212 #ifdef PRIMAP_LEVEL_2 213 /* 214 * ready_primap1ã¨ready_primap2ã®æ´åæ§ã®æ¤æ» 215 */ 216 for (pri = 0; pri < TNUM_TPRI; pri += TBIT_PRIMAP) { 217 if (ready_primap2[pri / TBIT_PRIMAP] == 0U) { 218 if ((ready_primap1 & PRIMAP_BIT(pri / TBIT_PRIMAP)) != 0U) { 219 return(E_SYS_LINENO); 220 } 221 } 222 else { 223 if ((ready_primap1 & PRIMAP_BIT(pri / TBIT_PRIMAP)) == 0U) { 224 return(E_SYS_LINENO); 225 } 226 } 227 } 228 #endif /* PRIMAP_LEVEL_2 */ 191 229 192 230 /* … … 196 234 p_queue = ready_queue[pri].p_next; 197 235 if (p_queue == &ready_queue[pri]) { 198 if ( (ready_primap & PRIMAP_BIT(pri)) != 0U) {236 if (primap_extract_bit(pri) != 0U) { 199 237 return(E_SYS_LINENO); 200 238 } 201 239 } 202 240 else { 203 if ( (ready_primap & PRIMAP_BIT(pri)) == 0U) {241 if (primap_extract_bit(pri) == 0U) { 204 242 return(E_SYS_LINENO); 205 243 } -
asp3_wo_tecs/trunk/test/perf0.c
r302 r305 50 50 * ã®è²¬ä»»ãè² ããªãï¼ 51 51 * 52 * $Id: perf0.c 50 6 2016-01-12 01:46:49Z ertl-hiro $52 * $Id: perf0.c 509 2016-01-12 06:06:14Z ertl-hiro $ 53 53 */ 54 54 … … 71 71 */ 72 72 #define NO_MEASURE 10000U /* è¨æ¸¬åæ° */ 73 #define MAX_TIME 1000U /* å®è¡æéåå¸ãè¨é²ããæ大æé */74 75 /*76 * å®è¡æéåå¸ãè¨é²ããã¡ã¢ãªé å77 */78 static uint_t histarea1[MAX_TIME + 1];79 73 80 74 /* … … 86 80 87 81 syslog_0(LOG_NOTICE, "Performance evaluation program (0)"); 88 init_hist(1 , MAX_TIME, histarea1);82 init_hist(1); 89 83 90 84 for (i = 0; i < NO_MEASURE; i++) { -
asp3_wo_tecs/trunk/test/perf1.c
r302 r305 50 50 * ã®è²¬ä»»ãè² ããªãï¼ 51 51 * 52 * $Id: perf1.c 50 6 2016-01-12 01:46:49Z ertl-hiro $52 * $Id: perf1.c 509 2016-01-12 06:06:14Z ertl-hiro $ 53 53 */ 54 54 … … 71 71 */ 72 72 #define NO_MEASURE 10000U /* è¨æ¸¬åæ° */ 73 #define MAX_TIME 1000U /* å®è¡æéåå¸ãè¨é²ããæ大æé */74 75 /*76 * å®è¡æéåå¸ãè¨é²ããã¡ã¢ãªé å77 */78 static uint_t histarea1[MAX_TIME + 1];79 static uint_t histarea2[MAX_TIME + 1];80 73 81 74 /* … … 121 114 { 122 115 syslog_0(LOG_NOTICE, "Performance evaluation program (1)"); 123 init_hist(1 , MAX_TIME, histarea1);124 init_hist(2 , MAX_TIME, histarea2);116 init_hist(1); 117 init_hist(2); 125 118 126 119 act_tsk(TASK1); -
asp3_wo_tecs/trunk/test/perf2.c
r302 r305 50 50 * ã®è²¬ä»»ãè² ããªãï¼ 51 51 * 52 * $Id: perf2.c 50 6 2016-01-12 01:46:49Z ertl-hiro $52 * $Id: perf2.c 509 2016-01-12 06:06:14Z ertl-hiro $ 53 53 */ 54 54 … … 73 73 */ 74 74 #define NO_MEASURE 10000U /* è¨æ¸¬åæ° */ 75 #define MAX_TIME 1000U /* å®è¡æéåå¸ãè¨é²ããæ大æé */76 77 /*78 * å®è¡æéåå¸ãè¨é²ããã¡ã¢ãªé å79 */80 static uint_t histarea1[MAX_TIME + 1];81 82 75 /* 83 76 * è¨æ¸¬ã«ã¼ãã³ … … 91 84 92 85 ini_pdq(PDQ1); 93 init_hist(1 , MAX_TIME, histarea1);86 init_hist(1); 94 87 95 88 for (i = 0; i < n; i++) { -
asp3_wo_tecs/trunk/test/perf3.c
r302 r305 50 50 * ã®è²¬ä»»ãè² ããªãï¼ 51 51 * 52 * $Id: perf3.c 50 6 2016-01-12 01:46:49Z ertl-hiro $52 * $Id: perf3.c 509 2016-01-12 06:06:14Z ertl-hiro $ 53 53 */ 54 54 … … 73 73 */ 74 74 #define NO_MEASURE 10000U /* è¨æ¸¬åæ° */ 75 #define MAX_TIME 1000U /* å®è¡æéåå¸ãè¨é²ããæ大æé */76 77 /*78 * å®è¡æéåå¸ãè¨é²ããã¡ã¢ãªé å79 */80 static uint_t histarea1[MAX_TIME + 1];81 75 82 76 /* … … 109 103 uint_t i, j; 110 104 111 init_hist(1 , MAX_TIME, histarea1);105 init_hist(1); 112 106 113 107 for (i = 0; i < NO_MEASURE; i++) { -
asp3_wo_tecs/trunk/test/perf4.c
r302 r305 50 50 * ã®è²¬ä»»ãè² ããªãï¼ 51 51 * 52 * $Id: perf4.c 50 6 2016-01-12 01:46:49Z ertl-hiro $52 * $Id: perf4.c 509 2016-01-12 06:06:14Z ertl-hiro $ 53 53 */ 54 54 … … 100 100 */ 101 101 #define NO_MEASURE 10000U /* è¨æ¸¬åæ° */ 102 #define MAX_TIME 1000U /* å®è¡æéåå¸ãè¨é²ããæ大æé */103 104 /*105 * å®è¡æéåå¸ãè¨é²ããã¡ã¢ãªé å106 */107 static uint_t histarea1[MAX_TIME + 1];108 static uint_t histarea2[MAX_TIME + 1];109 static uint_t histarea3[MAX_TIME + 1];110 102 111 103 /* … … 174 166 175 167 syslog_0(LOG_NOTICE, "Performance evaluation program (4)"); 176 init_hist(1 , MAX_TIME, histarea1);177 init_hist(2 , MAX_TIME, histarea2);178 init_hist(3 , MAX_TIME, histarea3);168 init_hist(1); 169 init_hist(2); 170 init_hist(3); 179 171 180 172 /* -
asp3_wo_tecs/trunk/test/perf5.c
r302 r305 3 3 * Toyohashi Open Platform for Embedded Real-Time Systems 4 4 * 5 * Copyright (C) 201 6 by Embedded and Real-Time Systems Laboratory5 * Copyright (C) 2015,2016 by Embedded and Real-Time Systems Laboratory 6 6 * Graduate School of Information Science, Nagoya Univ., JAPAN 7 7 * … … 50 50 * ã®è²¬ä»»ãè² ããªãï¼ 51 51 * 52 * $Id: perf5.c 5 06 2016-01-12 01:46:49Z ertl-hiro $52 * $Id: perf5.c 544 2016-01-16 05:34:11Z ertl-hiro $ 53 53 */ 54 54 … … 71 71 */ 72 72 #define NO_MEASURE 10000U /* è¨æ¸¬åæ° */ 73 #define MAX_TIME 1000U /* å®è¡æéåå¸ãè¨é²ããæ大æé */74 75 /*76 * å®è¡æéåå¸ãè¨é²ããã¡ã¢ãªé å77 */78 static uint_t histarea1[MAX_TIME + 1];79 static uint_t histarea2[MAX_TIME + 1];80 static uint_t histarea3[MAX_TIME + 1];81 static uint_t histarea4[MAX_TIME + 1];82 static uint_t histarea5[MAX_TIME + 1];83 static uint_t histarea6[MAX_TIME + 1];84 73 85 74 /* … … 123 112 124 113 syslog_0(LOG_NOTICE, "Performance evaluation program (5)"); 125 init_hist(1 , MAX_TIME, histarea1);126 init_hist(2 , MAX_TIME, histarea2);127 init_hist(3 , MAX_TIME, histarea3);128 init_hist(4 , MAX_TIME, histarea4);129 init_hist(5 , MAX_TIME, histarea5);130 init_hist(6 , MAX_TIME, histarea6);114 init_hist(1); 115 init_hist(2); 116 init_hist(3); 117 init_hist(4); 118 init_hist(5); 119 init_hist(6); 131 120 132 121 /* -
asp3_wo_tecs/trunk/test/test_flg1.c
r304 r305 50 50 * ã®è²¬ä»»ãè² ããªãï¼ 51 51 * 52 * $Id: test_flg1.c 5 79 2016-02-03 07:29:11Z ertl-hiro $52 * $Id: test_flg1.c 599 2016-02-07 03:33:35Z ertl-hiro $ 53 53 */ 54 54 … … 169 169 * TASK3: ä½åªå 170 170 度ã¿ã¹ã¯ 171 * TASK4: ä¸åªå172 度ã¿ã¹ã¯173 * TASK5: ä¸åªå174 度ã¿ã¹ã¯175 171 * ALM1: ã¢ã©ã¼ã ãã³ãã© 176 172 * FLG1: TA_NULLå±æ§ï¼åæããããã¿ã¼ã³0x00 … … 191 187 * 2: loc_cpu() 192 188 * set_flg(FLG1, 0x01) -> E_CTX ... (A-1) 193 * wai_flg(FLG1)194 189 * wai_flg(FLG1, 0x01, TWF_ORW, &flgptn) -> E_CTX ... (D-2) 195 190 * unl_cpu() … … 343 338 #include "syssvc/test_svc.h" 344 339 #include "kernel_cfg.h" 345 #include "test_ sem1.h"340 #include "test_flg1.h" 346 341 347 342 /* DO NOT DELETE THIS LINE -- gentest depends on it. */ -
asp3_wo_tecs/trunk/test/test_flg1.h
r304 r305 3 3 * Toyohashi Open Platform for Embedded Real-Time Systems 4 4 * 5 * Copyright (C) 20 08-2014by Embedded and Real-Time Systems Laboratory5 * Copyright (C) 2015-2016 by Embedded and Real-Time Systems Laboratory 6 6 * Graduate School of Information Science, Nagoya Univ., JAPAN 7 7 * … … 50 50 * ã®è²¬ä»»ãè² ããªãï¼ 51 51 * 52 * $Id: test_flg1.h 5 79 2016-02-03 07:29:11Z ertl-hiro $52 * $Id: test_flg1.h 599 2016-02-07 03:33:35Z ertl-hiro $ 53 53 */ 54 54 55 55 /* 56 * ã »ããã©æ©è½ã®ãã¹ã(1)56 * ã¤ãã³ããã©ã°æ©è½ã®ãã¹ã(1) 57 57 */ 58 58 -
asp3_wo_tecs/trunk/test/test_raster2.c
r302 r305 50 50 * ã®è²¬ä»»ãè² ããªãï¼ 51 51 * 52 * $Id: test_raster2.c 310 2015-02-08 13:46:46Z ertl-hiro $52 * $Id: test_raster2.c 603 2016-02-07 12:42:10Z ertl-hiro $ 53 53 */ 54 54 … … 124 124 ã«ï¼»NGKI1178ï¼½ 125 125 * ASPã«ã¼ãã«ã«é©ç¨ãããªãè¦æ±ï¼ 126 * ï¼»NGKI3 485][NGKI3490][NGKI3497ï¼½126 * ï¼»NGKI3764][NGKI3765][NGKI3497ï¼½ 127 127 * 128 128 * ã使ç¨ãªã½ã¼ã¹ã
Note:
See TracChangeset
for help on using the changeset viewer.