Changeset 429 for EcnlProtoTool/trunk/asp3_dcre/syssvc/tHistogramAdapter.c
- Timestamp:
- Jul 3, 2020, 7:19:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/syssvc/tHistogramAdapter.c
r321 r429 1 1 /* 2 * TOPPERS/ASP Kernel 3 * Toyohashi Open Platform for Embedded Real-Time Systems/ 4 * Advanced Standard Profile Kernel 2 * TOPPERS Software 3 * Toyohashi Open Platform for Embedded Real-Time Systems 5 4 * 6 * Copyright (C) 2016 by Embedded and Real-Time Systems Laboratory5 * Copyright (C) 2016-2018 by Embedded and Real-Time Systems Laboratory 7 6 * Graduate School of Information Science, Nagoya Univ., JAPAN 8 7 * … … 48 47 49 48 /* 49 * 実行時間分布計測IDの範囲の判定 50 */ 51 #define VALID_HISTID(histid) (1 <= histid && histid <= N_CP_cHistogram) 52 53 /* 50 54 * 実行時間分布計測の初期化(サービスコール) 51 55 */ 52 void 56 ER 53 57 init_hist(ID histid) 54 58 { 55 assert(1 <= histid && histid <= N_CP_cHistogram); 56 return(cHistogram_initialize(histid - 1)); 59 ER ercd; 60 61 if (!VALID_HISTID(histid)) { 62 ercd = E_ID; 63 } 64 else { 65 ercd = cHistogram_initialize(histid - 1); 66 } 67 return(ercd); 57 68 } 58 69 … … 60 71 * 実行時間計測の開始 61 72 */ 62 void 73 ER 63 74 begin_measure(ID histid) 64 75 { 65 assert(1 <= histid && histid <= N_CP_cHistogram); 66 return(cHistogram_beginMeasure(histid - 1)); 76 ER ercd; 77 78 if (!VALID_HISTID(histid)) { 79 ercd = E_ID; 80 } 81 else { 82 ercd = cHistogram_beginMeasure(histid - 1); 83 } 84 return(ercd); 67 85 } 68 86 … … 70 88 * 実行時間計測の終了 71 89 */ 72 void 90 ER 73 91 end_measure(ID histid) 74 92 { 75 assert(1 <= histid && histid <= N_CP_cHistogram); 76 return(cHistogram_endMeasure(histid - 1)); 93 ER ercd; 94 95 if (!VALID_HISTID(histid)) { 96 ercd = E_ID; 97 } 98 else { 99 ercd = cHistogram_endMeasure(histid - 1); 100 } 101 return(ercd); 77 102 } 78 103 … … 80 105 * 実行時間分布計測の表示 81 106 */ 82 void 107 ER 83 108 print_hist(ID histid) 84 109 { 85 assert(1 <= histid && histid <= N_CP_cHistogram); 86 return(cHistogram_print(histid - 1)); 110 ER ercd; 111 112 if (!VALID_HISTID(histid)) { 113 ercd = E_ID; 114 } 115 else { 116 ercd = cHistogram_print(histid - 1); 117 } 118 return(ercd); 87 119 }
Note:
See TracChangeset
for help on using the changeset viewer.