##// END OF EJS Templates
Switched to O3 with no inlining optim level for debug builds...
Switched to O3 with no inlining optim level for debug builds Debug builds are mostly used for gcov while it seems a bad idea(-O3), with O0 the FSW uses more than 100% CPU in normal mode so the treadoff is to switch to O3 without inlining, this preserves the 1 to 1 relation between code and gcov counters.

File last commit:

r384:c56e87012e2b No PWD scrub with...
r397:0c445dc7a949 R3++
Show More
lfr_cpu_usage_report.h
37 lines | 766 B | text/x-c | CLexer
/ header / lfr_cpu_usage_report.h
paul
cpu_load added to the housekeeping packets
r134 #ifndef LFR_CPU_USAGE_REPORT_H
#define LFR_CPU_USAGE_REPORT_H
paul
Many corrections done after Logiscope analysis
r166 #ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <rtems.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <inttypes.h>
#include <rtems/cpuuse.h>
#include <rtems/bspIo.h>
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
#include <rtems/score/timestamp.h>
#endif
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
extern Timestamp_Control CPU_usage_Uptime_at_last_reset;
#else
extern uint32_t CPU_usage_Ticks_at_last_reset;
#endif
paul
cpu_load added to the housekeeping packets
r134 unsigned char lfr_rtems_cpu_usage_report( void );
Fixed again CPU usage measurement...
r381 #define CONST_10 10
paul
Many corrections, mainly related to #807 Don_Enumeration
r318 #define CONST_100 100
Fixed again CPU usage measurement...
r381 #define CONST_255 255
paul
Many corrections, mainly related to #807 Don_Enumeration
r318 #define CONST_1000 1000
paul
cpu_load added to the housekeeping packets
r134 #endif // LFR_CPU_USAGE_REPORT_H