1
|
|
2
|
<html>
|
3
|
|
4
|
<head>
|
5
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
6
|
<title>Head</title>
|
7
|
<style media="screen" type="text/css">
|
8
|
|
9
|
body
|
10
|
{
|
11
|
color: #000000;
|
12
|
background-color: #FFFFFF;
|
13
|
}
|
14
|
|
15
|
/* Link formats: use maroon w/underlines */
|
16
|
a:link
|
17
|
{
|
18
|
color: navy;
|
19
|
text-decoration: underline;
|
20
|
}
|
21
|
a:visited
|
22
|
{
|
23
|
color: maroon;
|
24
|
text-decoration: underline;
|
25
|
}
|
26
|
a:active
|
27
|
{
|
28
|
color: navy;
|
29
|
text-decoration: underline;
|
30
|
}
|
31
|
|
32
|
/*** TD formats ***/
|
33
|
td
|
34
|
{
|
35
|
font-family: sans-serif;
|
36
|
}
|
37
|
td.title
|
38
|
{
|
39
|
text-align: center;
|
40
|
padding-bottom: 10px;
|
41
|
font-size: 20pt;
|
42
|
font-weight: bold;
|
43
|
}
|
44
|
|
45
|
/* TD Header Information */
|
46
|
td.headerName
|
47
|
{
|
48
|
text-align: right;
|
49
|
color: black;
|
50
|
padding-right: 6px;
|
51
|
font-weight: bold;
|
52
|
vertical-align: top;
|
53
|
white-space: nowrap;
|
54
|
}
|
55
|
td.headerValue
|
56
|
{
|
57
|
text-align: left;
|
58
|
color: blue;
|
59
|
font-weight: bold;
|
60
|
white-space: nowrap;
|
61
|
}
|
62
|
td.headerTableEntry
|
63
|
{
|
64
|
text-align: right;
|
65
|
color: black;
|
66
|
font-weight: bold;
|
67
|
white-space: nowrap;
|
68
|
padding-left: 12px;
|
69
|
padding-right: 4px;
|
70
|
background-color: LightBlue;
|
71
|
}
|
72
|
td.headerValueLeg
|
73
|
{
|
74
|
text-align: left;
|
75
|
color: black;
|
76
|
font-size: 80%;
|
77
|
white-space: nowrap;
|
78
|
padding-left: 10px;
|
79
|
padding-right: 10px;
|
80
|
padding-top: 2px;
|
81
|
}
|
82
|
|
83
|
/* Color of horizontal ruler */
|
84
|
td.hr
|
85
|
{
|
86
|
background-color: navy;
|
87
|
height:3px;
|
88
|
}
|
89
|
/* Footer format */
|
90
|
td.footer
|
91
|
{
|
92
|
text-align: center;
|
93
|
padding-top: 3px;
|
94
|
font-family: sans-serif;
|
95
|
}
|
96
|
|
97
|
/* Coverage Table */
|
98
|
|
99
|
td.coverTableHead
|
100
|
{
|
101
|
text-align: center;
|
102
|
color: white;
|
103
|
background-color: SteelBlue;
|
104
|
font-family: sans-serif;
|
105
|
font-size: 120%;
|
106
|
white-space: nowrap;
|
107
|
padding-left: 4px;
|
108
|
padding-right: 4px;
|
109
|
}
|
110
|
td.coverFile
|
111
|
{
|
112
|
text-align: left;
|
113
|
padding-left: 10px;
|
114
|
padding-right: 20px;
|
115
|
color: black;
|
116
|
background-color: LightBlue;
|
117
|
font-family: monospace;
|
118
|
font-weight: bold;
|
119
|
font-size: 110%;
|
120
|
}
|
121
|
td.coverBar
|
122
|
{
|
123
|
padding-left: 10px;
|
124
|
padding-right: 10px;
|
125
|
background-color: LightBlue;
|
126
|
}
|
127
|
td.coverBarOutline
|
128
|
{
|
129
|
background-color: white;
|
130
|
}
|
131
|
td.coverValue
|
132
|
{
|
133
|
padding-top: 2px;
|
134
|
text-align: right;
|
135
|
padding-left: 10px;
|
136
|
padding-right: 10px;
|
137
|
font-family: sans-serif;
|
138
|
white-space: nowrap;
|
139
|
font-weight: bold;
|
140
|
}
|
141
|
|
142
|
/* Link Details */
|
143
|
a.detail:link
|
144
|
{
|
145
|
color: #B8D0FF;
|
146
|
font-size:80%;
|
147
|
}
|
148
|
a.detail:visited
|
149
|
{
|
150
|
color: #B8D0FF;
|
151
|
font-size:80%;
|
152
|
}
|
153
|
a.detail:active
|
154
|
{
|
155
|
color: #FFFFFF;
|
156
|
font-size:80%;
|
157
|
}
|
158
|
|
159
|
.graphcont{
|
160
|
color:#000;
|
161
|
font-weight:700;
|
162
|
float:left
|
163
|
}
|
164
|
|
165
|
.graph{
|
166
|
float:left;
|
167
|
background-color: white;
|
168
|
position:relative;
|
169
|
width:280px;
|
170
|
padding:0
|
171
|
}
|
172
|
|
173
|
.graph .bar{
|
174
|
display:block;
|
175
|
position:relative;
|
176
|
border:black 1px solid;
|
177
|
text-align:center;
|
178
|
color:#fff;
|
179
|
height:10px;
|
180
|
font-family:Arial,Helvetica,sans-serif;
|
181
|
font-size:12px;
|
182
|
line-height:1.9em
|
183
|
}
|
184
|
|
185
|
.graph .bar span{
|
186
|
position:absolute;
|
187
|
left:1em
|
188
|
}
|
189
|
|
190
|
td.coveredLine,
|
191
|
span.coveredLine
|
192
|
{
|
193
|
background-color: LightGreen!important;
|
194
|
}
|
195
|
|
196
|
td.uncoveredLine,
|
197
|
span.uncoveredLine
|
198
|
{
|
199
|
background-color: LightPink!important;
|
200
|
}
|
201
|
|
202
|
.linebranch, .linecount
|
203
|
{
|
204
|
border-right: 1px gray solid;
|
205
|
background-color: lightgray;
|
206
|
}
|
207
|
|
208
|
span.takenBranch
|
209
|
{
|
210
|
color: Green!important;
|
211
|
cursor: help;
|
212
|
}
|
213
|
|
214
|
span.notTakenBranch
|
215
|
{
|
216
|
color: Red!important;
|
217
|
cursor: help;
|
218
|
}
|
219
|
|
220
|
.src
|
221
|
{
|
222
|
padding-left: 12px;
|
223
|
}
|
224
|
|
225
|
.srcHeader,
|
226
|
span.takenBranch,
|
227
|
span.notTakenBranch
|
228
|
{
|
229
|
font-family: monospace;
|
230
|
font-weight: bold;
|
231
|
}
|
232
|
|
233
|
pre
|
234
|
{
|
235
|
height : 15px;
|
236
|
margin-top: 0;
|
237
|
margin-bottom: 0;
|
238
|
}
|
239
|
|
240
|
.lineno
|
241
|
{
|
242
|
background-color: #EFE383;
|
243
|
border-right: 1px solid #BBB15F;
|
244
|
}
|
245
|
|
246
|
</style>
|
247
|
</head>
|
248
|
|
249
|
<body>
|
250
|
|
251
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
252
|
<tr><td class="title">GCC Code Coverage Report</td></tr>
|
253
|
<tr><td class="hr"></td></tr>
|
254
|
|
255
|
<tr>
|
256
|
<td width="100%">
|
257
|
<table cellpadding="1" border="0" width="100%">
|
258
|
<tr>
|
259
|
<td width="10%" class="headerName">Directory:</td>
|
260
|
<td width="35%" class="headerValue">./</td>
|
261
|
<td width="5%"></td>
|
262
|
<td width="15%"></td>
|
263
|
<td width="10%" class="headerValue" style="text-align:right;">Exec</td>
|
264
|
<td width="10%" class="headerValue" style="text-align:right;">Total</td>
|
265
|
<td width="15%" class="headerValue" style="text-align:right;">Coverage</td>
|
266
|
</tr>
|
267
|
<tr>
|
268
|
<td class="headerName">File:</td>
|
269
|
<td class="headerValue">src/lfr_cpu_usage_report.c</td>
|
270
|
<td></td>
|
271
|
<td class="headerName">Lines:</td>
|
272
|
<td class="headerTableEntry">17</td>
|
273
|
<td class="headerTableEntry">17</td>
|
274
|
<td class="headerTableEntry" style="background-color:LightGreen">100.0 %</td>
|
275
|
</tr>
|
276
|
<tr>
|
277
|
<td class="headerName">Date:</td>
|
278
|
<td class="headerValue">2018-11-13 15:31:29</td>
|
279
|
<td></td>
|
280
|
<td class="headerName">Branches:</td>
|
281
|
<td class="headerTableEntry">11</td>
|
282
|
<td class="headerTableEntry">12</td>
|
283
|
<td class="headerTableEntry" style="background-color:LightGreen">91.7 %</td>
|
284
|
</tr>
|
285
|
</table>
|
286
|
</td>
|
287
|
</tr>
|
288
|
|
289
|
<tr><td class="hr"></td></tr>
|
290
|
</table>
|
291
|
|
292
|
<br>
|
293
|
<table cellspacing="0" cellpadding="1">
|
294
|
<tr>
|
295
|
<td width="5%" align="right" class="srcHeader">Line</td>
|
296
|
<td width="5%" align="right" class="srcHeader">Branch</td>
|
297
|
<td width="5%" align="right" class="srcHeader">Exec</td>
|
298
|
<td width="75%" align="left" class="srcHeader src">Source</td>
|
299
|
</tr>
|
300
|
|
301
|
|
302
|
<tr>
|
303
|
<td align="right" class="lineno"><pre>1</pre></td>
|
304
|
<td align="right" class="linebranch"></td>
|
305
|
<td align="right" class="linecount "><pre></pre></td>
|
306
|
<td align="left" class="src "><pre>/*</pre></td>
|
307
|
</tr>
|
308
|
|
309
|
<tr>
|
310
|
<td align="right" class="lineno"><pre>2</pre></td>
|
311
|
<td align="right" class="linebranch"></td>
|
312
|
<td align="right" class="linecount "><pre></pre></td>
|
313
|
<td align="left" class="src "><pre> * CPU Usage Reporter</pre></td>
|
314
|
</tr>
|
315
|
|
316
|
<tr>
|
317
|
<td align="right" class="lineno"><pre>3</pre></td>
|
318
|
<td align="right" class="linebranch"></td>
|
319
|
<td align="right" class="linecount "><pre></pre></td>
|
320
|
<td align="left" class="src "><pre> *</pre></td>
|
321
|
</tr>
|
322
|
|
323
|
<tr>
|
324
|
<td align="right" class="lineno"><pre>4</pre></td>
|
325
|
<td align="right" class="linebranch"></td>
|
326
|
<td align="right" class="linecount "><pre></pre></td>
|
327
|
<td align="left" class="src "><pre> * COPYRIGHT (c) 1989-2009</pre></td>
|
328
|
</tr>
|
329
|
|
330
|
<tr>
|
331
|
<td align="right" class="lineno"><pre>5</pre></td>
|
332
|
<td align="right" class="linebranch"></td>
|
333
|
<td align="right" class="linecount "><pre></pre></td>
|
334
|
<td align="left" class="src "><pre> * On-Line Applications Research Corporation (OAR).</pre></td>
|
335
|
</tr>
|
336
|
|
337
|
<tr>
|
338
|
<td align="right" class="lineno"><pre>6</pre></td>
|
339
|
<td align="right" class="linebranch"></td>
|
340
|
<td align="right" class="linecount "><pre></pre></td>
|
341
|
<td align="left" class="src "><pre> *</pre></td>
|
342
|
</tr>
|
343
|
|
344
|
<tr>
|
345
|
<td align="right" class="lineno"><pre>7</pre></td>
|
346
|
<td align="right" class="linebranch"></td>
|
347
|
<td align="right" class="linecount "><pre></pre></td>
|
348
|
<td align="left" class="src "><pre> * The license and distribution terms for this file may be</pre></td>
|
349
|
</tr>
|
350
|
|
351
|
<tr>
|
352
|
<td align="right" class="lineno"><pre>8</pre></td>
|
353
|
<td align="right" class="linebranch"></td>
|
354
|
<td align="right" class="linecount "><pre></pre></td>
|
355
|
<td align="left" class="src "><pre> * found in the file LICENSE in this distribution or at</pre></td>
|
356
|
</tr>
|
357
|
|
358
|
<tr>
|
359
|
<td align="right" class="lineno"><pre>9</pre></td>
|
360
|
<td align="right" class="linebranch"></td>
|
361
|
<td align="right" class="linecount "><pre></pre></td>
|
362
|
<td align="left" class="src "><pre> * http://www.rtems.com/license/LICENSE.</pre></td>
|
363
|
</tr>
|
364
|
|
365
|
<tr>
|
366
|
<td align="right" class="lineno"><pre>10</pre></td>
|
367
|
<td align="right" class="linebranch"></td>
|
368
|
<td align="right" class="linecount "><pre></pre></td>
|
369
|
<td align="left" class="src "><pre> *</pre></td>
|
370
|
</tr>
|
371
|
|
372
|
<tr>
|
373
|
<td align="right" class="lineno"><pre>11</pre></td>
|
374
|
<td align="right" class="linebranch"></td>
|
375
|
<td align="right" class="linecount "><pre></pre></td>
|
376
|
<td align="left" class="src "><pre> * $Id$</pre></td>
|
377
|
</tr>
|
378
|
|
379
|
<tr>
|
380
|
<td align="right" class="lineno"><pre>12</pre></td>
|
381
|
<td align="right" class="linebranch"></td>
|
382
|
<td align="right" class="linecount "><pre></pre></td>
|
383
|
<td align="left" class="src "><pre> */</pre></td>
|
384
|
</tr>
|
385
|
|
386
|
<tr>
|
387
|
<td align="right" class="lineno"><pre>13</pre></td>
|
388
|
<td align="right" class="linebranch"></td>
|
389
|
<td align="right" class="linecount "><pre></pre></td>
|
390
|
<td align="left" class="src "><pre></pre></td>
|
391
|
</tr>
|
392
|
|
393
|
<tr>
|
394
|
<td align="right" class="lineno"><pre>14</pre></td>
|
395
|
<td align="right" class="linebranch"></td>
|
396
|
<td align="right" class="linecount "><pre></pre></td>
|
397
|
<td align="left" class="src "><pre>#include "lfr_cpu_usage_report.h"</pre></td>
|
398
|
</tr>
|
399
|
|
400
|
<tr>
|
401
|
<td align="right" class="lineno"><pre>15</pre></td>
|
402
|
<td align="right" class="linebranch"></td>
|
403
|
<td align="right" class="linecount "><pre></pre></td>
|
404
|
<td align="left" class="src "><pre>#include "fsw_params.h"</pre></td>
|
405
|
</tr>
|
406
|
|
407
|
<tr>
|
408
|
<td align="right" class="lineno"><pre>16</pre></td>
|
409
|
<td align="right" class="linebranch"></td>
|
410
|
<td align="right" class="linecount "><pre></pre></td>
|
411
|
<td align="left" class="src "><pre></pre></td>
|
412
|
</tr>
|
413
|
|
414
|
<tr>
|
415
|
<td align="right" class="lineno"><pre>17</pre></td>
|
416
|
<td align="right" class="linebranch"></td>
|
417
|
<td align="right" class="linecount "><pre></pre></td>
|
418
|
<td align="left" class="src "><pre>extern rtems_id Task_id[];</pre></td>
|
419
|
</tr>
|
420
|
|
421
|
<tr>
|
422
|
<td align="right" class="lineno"><pre>18</pre></td>
|
423
|
<td align="right" class="linebranch"></td>
|
424
|
<td align="right" class="linecount "><pre></pre></td>
|
425
|
<td align="left" class="src "><pre></pre></td>
|
426
|
</tr>
|
427
|
|
428
|
<tr>
|
429
|
<td align="right" class="lineno"><pre>19</pre></td>
|
430
|
<td align="right" class="linebranch"></td>
|
431
|
<td align="right" class="linecount coveredLine"><pre>151</pre></td>
|
432
|
<td align="left" class="src coveredLine"><pre>unsigned char lfr_rtems_cpu_usage_report( void )</pre></td>
|
433
|
</tr>
|
434
|
|
435
|
<tr>
|
436
|
<td align="right" class="lineno"><pre>20</pre></td>
|
437
|
<td align="right" class="linebranch"></td>
|
438
|
<td align="right" class="linecount "><pre></pre></td>
|
439
|
<td align="left" class="src "><pre>{</pre></td>
|
440
|
</tr>
|
441
|
|
442
|
<tr>
|
443
|
<td align="right" class="lineno"><pre>21</pre></td>
|
444
|
<td align="right" class="linebranch"></td>
|
445
|
<td align="right" class="linecount "><pre></pre></td>
|
446
|
<td align="left" class="src "><pre> uint32_t api_index;</pre></td>
|
447
|
</tr>
|
448
|
|
449
|
<tr>
|
450
|
<td align="right" class="lineno"><pre>22</pre></td>
|
451
|
<td align="right" class="linebranch"></td>
|
452
|
<td align="right" class="linecount "><pre></pre></td>
|
453
|
<td align="left" class="src "><pre> uint32_t information_index;</pre></td>
|
454
|
</tr>
|
455
|
|
456
|
<tr>
|
457
|
<td align="right" class="lineno"><pre>23</pre></td>
|
458
|
<td align="right" class="linebranch"></td>
|
459
|
<td align="right" class="linecount "><pre></pre></td>
|
460
|
<td align="left" class="src "><pre> Thread_Control *the_thread;</pre></td>
|
461
|
</tr>
|
462
|
|
463
|
<tr>
|
464
|
<td align="right" class="lineno"><pre>24</pre></td>
|
465
|
<td align="right" class="linebranch"></td>
|
466
|
<td align="right" class="linecount "><pre></pre></td>
|
467
|
<td align="left" class="src "><pre> Objects_Information *information;</pre></td>
|
468
|
</tr>
|
469
|
|
470
|
<tr>
|
471
|
<td align="right" class="lineno"><pre>25</pre></td>
|
472
|
<td align="right" class="linebranch"></td>
|
473
|
<td align="right" class="linecount "><pre></pre></td>
|
474
|
<td align="left" class="src "><pre> uint32_t ival;</pre></td>
|
475
|
</tr>
|
476
|
|
477
|
<tr>
|
478
|
<td align="right" class="lineno"><pre>26</pre></td>
|
479
|
<td align="right" class="linebranch"></td>
|
480
|
<td align="right" class="linecount "><pre></pre></td>
|
481
|
<td align="left" class="src "><pre> uint32_t fval;</pre></td>
|
482
|
</tr>
|
483
|
|
484
|
<tr>
|
485
|
<td align="right" class="lineno"><pre>27</pre></td>
|
486
|
<td align="right" class="linebranch"></td>
|
487
|
<td align="right" class="linecount "><pre></pre></td>
|
488
|
<td align="left" class="src "><pre>#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__</pre></td>
|
489
|
</tr>
|
490
|
|
491
|
<tr>
|
492
|
<td align="right" class="lineno"><pre>28</pre></td>
|
493
|
<td align="right" class="linebranch"></td>
|
494
|
<td align="right" class="linecount "><pre></pre></td>
|
495
|
<td align="left" class="src "><pre> Timestamp_Control uptime;</pre></td>
|
496
|
</tr>
|
497
|
|
498
|
<tr>
|
499
|
<td align="right" class="lineno"><pre>29</pre></td>
|
500
|
<td align="right" class="linebranch"></td>
|
501
|
<td align="right" class="linecount "><pre></pre></td>
|
502
|
<td align="left" class="src "><pre> Timestamp_Control total;</pre></td>
|
503
|
</tr>
|
504
|
|
505
|
<tr>
|
506
|
<td align="right" class="lineno"><pre>30</pre></td>
|
507
|
<td align="right" class="linebranch"></td>
|
508
|
<td align="right" class="linecount "><pre></pre></td>
|
509
|
<td align="left" class="src "><pre> Timestamp_Control ran;</pre></td>
|
510
|
</tr>
|
511
|
|
512
|
<tr>
|
513
|
<td align="right" class="lineno"><pre>31</pre></td>
|
514
|
<td align="right" class="linebranch"></td>
|
515
|
<td align="right" class="linecount "><pre></pre></td>
|
516
|
<td align="left" class="src "><pre></pre></td>
|
517
|
</tr>
|
518
|
|
519
|
<tr>
|
520
|
<td align="right" class="lineno"><pre>32</pre></td>
|
521
|
<td align="right" class="linebranch"></td>
|
522
|
<td align="right" class="linecount "><pre></pre></td>
|
523
|
<td align="left" class="src "><pre>#else</pre></td>
|
524
|
</tr>
|
525
|
|
526
|
<tr>
|
527
|
<td align="right" class="lineno"><pre>33</pre></td>
|
528
|
<td align="right" class="linebranch"></td>
|
529
|
<td align="right" class="linecount "><pre></pre></td>
|
530
|
<td align="left" class="src "><pre> #error "Can't compute CPU usage using ticks on LFR"</pre></td>
|
531
|
</tr>
|
532
|
|
533
|
<tr>
|
534
|
<td align="right" class="lineno"><pre>34</pre></td>
|
535
|
<td align="right" class="linebranch"></td>
|
536
|
<td align="right" class="linecount "><pre></pre></td>
|
537
|
<td align="left" class="src "><pre>#endif</pre></td>
|
538
|
</tr>
|
539
|
|
540
|
<tr>
|
541
|
<td align="right" class="lineno"><pre>35</pre></td>
|
542
|
<td align="right" class="linebranch"></td>
|
543
|
<td align="right" class="linecount "><pre></pre></td>
|
544
|
<td align="left" class="src "><pre></pre></td>
|
545
|
</tr>
|
546
|
|
547
|
<tr>
|
548
|
<td align="right" class="lineno"><pre>36</pre></td>
|
549
|
<td align="right" class="linebranch"></td>
|
550
|
<td align="right" class="linecount "><pre></pre></td>
|
551
|
<td align="left" class="src "><pre> unsigned char cpu_load;</pre></td>
|
552
|
</tr>
|
553
|
|
554
|
<tr>
|
555
|
<td align="right" class="lineno"><pre>37</pre></td>
|
556
|
<td align="right" class="linebranch"></td>
|
557
|
<td align="right" class="linecount "><pre></pre></td>
|
558
|
<td align="left" class="src "><pre></pre></td>
|
559
|
</tr>
|
560
|
|
561
|
<tr>
|
562
|
<td align="right" class="lineno"><pre>38</pre></td>
|
563
|
<td align="right" class="linebranch"></td>
|
564
|
<td align="right" class="linecount coveredLine"><pre>151</pre></td>
|
565
|
<td align="left" class="src coveredLine"><pre> ival = 0;</pre></td>
|
566
|
</tr>
|
567
|
|
568
|
<tr>
|
569
|
<td align="right" class="lineno"><pre>39</pre></td>
|
570
|
<td align="right" class="linebranch"></td>
|
571
|
<td align="right" class="linecount coveredLine"><pre>151</pre></td>
|
572
|
<td align="left" class="src coveredLine"><pre> cpu_load = 0;</pre></td>
|
573
|
</tr>
|
574
|
|
575
|
<tr>
|
576
|
<td align="right" class="lineno"><pre>40</pre></td>
|
577
|
<td align="right" class="linebranch"></td>
|
578
|
<td align="right" class="linecount "><pre></pre></td>
|
579
|
<td align="left" class="src "><pre></pre></td>
|
580
|
</tr>
|
581
|
|
582
|
<tr>
|
583
|
<td align="right" class="lineno"><pre>41</pre></td>
|
584
|
<td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 604 times">✓</span><span class="takenBranch" title="Branch 1 taken 151 times">✓</span></td>
|
585
|
<td align="right" class="linecount coveredLine"><pre>755</pre></td>
|
586
|
<td align="left" class="src coveredLine"><pre> for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ )</pre></td>
|
587
|
</tr>
|
588
|
|
589
|
<tr>
|
590
|
<td align="right" class="lineno"><pre>42</pre></td>
|
591
|
<td align="right" class="linebranch"></td>
|
592
|
<td align="right" class="linecount "><pre></pre></td>
|
593
|
<td align="left" class="src "><pre> {</pre></td>
|
594
|
</tr>
|
595
|
|
596
|
<tr>
|
597
|
<td align="right" class="lineno"><pre>43</pre></td>
|
598
|
<td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 453 times">✓</span><span class="takenBranch" title="Branch 1 taken 151 times">✓</span></td>
|
599
|
<td align="right" class="linecount coveredLine"><pre>604</pre></td>
|
600
|
<td align="left" class="src coveredLine"><pre> if ( !_Objects_Information_table[ api_index ] ) { }</pre></td>
|
601
|
</tr>
|
602
|
|
603
|
<tr>
|
604
|
<td align="right" class="lineno"><pre>44</pre></td>
|
605
|
<td align="right" class="linebranch"></td>
|
606
|
<td align="right" class="linecount "><pre></pre></td>
|
607
|
<td align="left" class="src "><pre> else</pre></td>
|
608
|
</tr>
|
609
|
|
610
|
<tr>
|
611
|
<td align="right" class="lineno"><pre>45</pre></td>
|
612
|
<td align="right" class="linebranch"></td>
|
613
|
<td align="right" class="linecount "><pre></pre></td>
|
614
|
<td align="left" class="src "><pre> {</pre></td>
|
615
|
</tr>
|
616
|
|
617
|
<tr>
|
618
|
<td align="right" class="lineno"><pre>46</pre></td>
|
619
|
<td align="right" class="linebranch"></td>
|
620
|
<td align="right" class="linecount coveredLine"><pre>453</pre></td>
|
621
|
<td align="left" class="src coveredLine"><pre> information = _Objects_Information_table[ api_index ][ 1 ];</pre></td>
|
622
|
</tr>
|
623
|
|
624
|
<tr>
|
625
|
<td align="right" class="lineno"><pre>47</pre></td>
|
626
|
<td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 453 times">✓</span><span class="notTakenBranch" title="Branch 1 not taken">✗</span></td>
|
627
|
<td align="right" class="linecount coveredLine"><pre>453</pre></td>
|
628
|
<td align="left" class="src coveredLine"><pre> if ( information != NULL )</pre></td>
|
629
|
</tr>
|
630
|
|
631
|
<tr>
|
632
|
<td align="right" class="lineno"><pre>48</pre></td>
|
633
|
<td align="right" class="linebranch"></td>
|
634
|
<td align="right" class="linecount "><pre></pre></td>
|
635
|
<td align="left" class="src "><pre> {</pre></td>
|
636
|
</tr>
|
637
|
|
638
|
<tr>
|
639
|
<td align="right" class="lineno"><pre>49</pre></td>
|
640
|
<td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 3624 times">✓</span><span class="takenBranch" title="Branch 1 taken 453 times">✓</span></td>
|
641
|
<td align="right" class="linecount coveredLine"><pre>4077</pre></td>
|
642
|
<td align="left" class="src coveredLine"><pre> for(information_index=1;information_index<=information->maximum;information_index++)</pre></td>
|
643
|
</tr>
|
644
|
|
645
|
<tr>
|
646
|
<td align="right" class="lineno"><pre>50</pre></td>
|
647
|
<td align="right" class="linebranch"></td>
|
648
|
<td align="right" class="linecount "><pre></pre></td>
|
649
|
<td align="left" class="src "><pre> {</pre></td>
|
650
|
</tr>
|
651
|
|
652
|
<tr>
|
653
|
<td align="right" class="lineno"><pre>51</pre></td>
|
654
|
<td align="right" class="linebranch"></td>
|
655
|
<td align="right" class="linecount coveredLine"><pre>3624</pre></td>
|
656
|
<td align="left" class="src coveredLine"><pre> the_thread = (Thread_Control *)information->local_table[ information_index ];</pre></td>
|
657
|
</tr>
|
658
|
|
659
|
<tr>
|
660
|
<td align="right" class="lineno"><pre>52</pre></td>
|
661
|
<td align="right" class="linebranch"></td>
|
662
|
<td align="right" class="linecount "><pre></pre></td>
|
663
|
<td align="left" class="src "><pre></pre></td>
|
664
|
</tr>
|
665
|
|
666
|
<tr>
|
667
|
<td align="right" class="lineno"><pre>53</pre></td>
|
668
|
<td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 3473 times">✓</span><span class="takenBranch" title="Branch 1 taken 151 times">✓</span></td>
|
669
|
<td align="right" class="linecount coveredLine"><pre>3624</pre></td>
|
670
|
<td align="left" class="src coveredLine"><pre> if ( the_thread == NULL) { }</pre></td>
|
671
|
</tr>
|
672
|
|
673
|
<tr>
|
674
|
<td align="right" class="lineno"><pre>54</pre></td>
|
675
|
<td align="right" class="linebranch"><span class="takenBranch" title="Branch 0 taken 151 times">✓</span><span class="takenBranch" title="Branch 1 taken 3322 times">✓</span></td>
|
676
|
<td align="right" class="linecount coveredLine"><pre>3473</pre></td>
|
677
|
<td align="left" class="src coveredLine"><pre> else if(the_thread->Object.id == Task_id[TASKID_SCRB]) // Only measure scrubbing task load, CPU load is 100%-Scrubbing</pre></td>
|
678
|
</tr>
|
679
|
|
680
|
<tr>
|
681
|
<td align="right" class="lineno"><pre>55</pre></td>
|
682
|
<td align="right" class="linebranch"></td>
|
683
|
<td align="right" class="linecount "><pre></pre></td>
|
684
|
<td align="left" class="src "><pre> {</pre></td>
|
685
|
</tr>
|
686
|
|
687
|
<tr>
|
688
|
<td align="right" class="lineno"><pre>56</pre></td>
|
689
|
<td align="right" class="linebranch"></td>
|
690
|
<td align="right" class="linecount coveredLine"><pre>151</pre></td>
|
691
|
<td align="left" class="src coveredLine"><pre> _TOD_Get_uptime( &uptime );</pre></td>
|
692
|
</tr>
|
693
|
|
694
|
<tr>
|
695
|
<td align="right" class="lineno"><pre>57</pre></td>
|
696
|
<td align="right" class="linebranch"></td>
|
697
|
<td align="right" class="linecount coveredLine"><pre>151</pre></td>
|
698
|
<td align="left" class="src coveredLine"><pre> _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );</pre></td>
|
699
|
</tr>
|
700
|
|
701
|
<tr>
|
702
|
<td align="right" class="lineno"><pre>58</pre></td>
|
703
|
<td align="right" class="linebranch"></td>
|
704
|
<td align="right" class="linecount coveredLine"><pre>151</pre></td>
|
705
|
<td align="left" class="src coveredLine"><pre> ran = the_thread->cpu_time_used;</pre></td>
|
706
|
</tr>
|
707
|
|
708
|
<tr>
|
709
|
<td align="right" class="lineno"><pre>59</pre></td>
|
710
|
<td align="right" class="linebranch"></td>
|
711
|
<td align="right" class="linecount coveredLine"><pre>151</pre></td>
|
712
|
<td align="left" class="src coveredLine"><pre> _Timestamp_Divide( &ran, &total, &ival, &fval);</pre></td>
|
713
|
</tr>
|
714
|
|
715
|
<tr>
|
716
|
<td align="right" class="lineno"><pre>60</pre></td>
|
717
|
<td align="right" class="linebranch"></td>
|
718
|
<td align="right" class="linecount coveredLine"><pre>151</pre></td>
|
719
|
<td align="left" class="src coveredLine"><pre> cpu_load = (unsigned char) (CONST_255 - ((((ival*CONST_10) + (fval/CONST_100))*CONST_256)/CONST_1000));</pre></td>
|
720
|
</tr>
|
721
|
|
722
|
<tr>
|
723
|
<td align="right" class="lineno"><pre>61</pre></td>
|
724
|
<td align="right" class="linebranch"></td>
|
725
|
<td align="right" class="linecount "><pre></pre></td>
|
726
|
<td align="left" class="src "><pre> }</pre></td>
|
727
|
</tr>
|
728
|
|
729
|
<tr>
|
730
|
<td align="right" class="lineno"><pre>62</pre></td>
|
731
|
<td align="right" class="linebranch"></td>
|
732
|
<td align="right" class="linecount "><pre></pre></td>
|
733
|
<td align="left" class="src "><pre> }</pre></td>
|
734
|
</tr>
|
735
|
|
736
|
<tr>
|
737
|
<td align="right" class="lineno"><pre>63</pre></td>
|
738
|
<td align="right" class="linebranch"></td>
|
739
|
<td align="right" class="linecount "><pre></pre></td>
|
740
|
<td align="left" class="src "><pre> }</pre></td>
|
741
|
</tr>
|
742
|
|
743
|
<tr>
|
744
|
<td align="right" class="lineno"><pre>64</pre></td>
|
745
|
<td align="right" class="linebranch"></td>
|
746
|
<td align="right" class="linecount "><pre></pre></td>
|
747
|
<td align="left" class="src "><pre> }</pre></td>
|
748
|
</tr>
|
749
|
|
750
|
<tr>
|
751
|
<td align="right" class="lineno"><pre>65</pre></td>
|
752
|
<td align="right" class="linebranch"></td>
|
753
|
<td align="right" class="linecount "><pre></pre></td>
|
754
|
<td align="left" class="src "><pre> }</pre></td>
|
755
|
</tr>
|
756
|
|
757
|
<tr>
|
758
|
<td align="right" class="lineno"><pre>66</pre></td>
|
759
|
<td align="right" class="linebranch"></td>
|
760
|
<td align="right" class="linecount coveredLine"><pre>151</pre></td>
|
761
|
<td align="left" class="src coveredLine"><pre> return cpu_load;</pre></td>
|
762
|
</tr>
|
763
|
|
764
|
<tr>
|
765
|
<td align="right" class="lineno"><pre>67</pre></td>
|
766
|
<td align="right" class="linebranch"></td>
|
767
|
<td align="right" class="linecount "><pre></pre></td>
|
768
|
<td align="left" class="src "><pre>}</pre></td>
|
769
|
</tr>
|
770
|
|
771
|
<tr>
|
772
|
<td align="right" class="lineno"><pre>68</pre></td>
|
773
|
<td align="right" class="linebranch"></td>
|
774
|
<td align="right" class="linecount "><pre></pre></td>
|
775
|
<td align="left" class="src "><pre></pre></td>
|
776
|
</tr>
|
777
|
|
778
|
<tr>
|
779
|
<td align="right" class="lineno"><pre>69</pre></td>
|
780
|
<td align="right" class="linebranch"></td>
|
781
|
<td align="right" class="linecount "><pre></pre></td>
|
782
|
<td align="left" class="src "><pre></pre></td>
|
783
|
</tr>
|
784
|
|
785
|
</table>
|
786
|
<br>
|
787
|
|
788
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
789
|
<tr><td class="hr"><td></tr>
|
790
|
<tr><td class="footer">Generated by: <a href="http://gcovr.com">GCOVR (Version 4.1)</a></td></tr>
|
791
|
</table>
|
792
|
<br>
|
793
|
|
794
|
</body>
|
795
|
|
796
|
</html>
|
797
|
|