rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
os_util.h File Reference

Functions

void chVTSetAny (virtual_timer_t *vtp, systime_t time, vtfunc_t vtfunc, void *par)
 
void printHistogram (Logging *logging, histogram_s *histogram)
 This function knows how to print a histogram_s summary.
 

Function Documentation

◆ chVTSetAny()

void chVTSetAny ( virtual_timer_t *  vtp,
systime_t  time,
vtfunc_t  vtfunc,
void *  par 
)

Definition at line 27 of file os_util.cpp.

27 {
28 chibios_rt::CriticalSectionLocker csl;
29
30 chVTSetI(vtp, time, vtfunc, par);
31}

Referenced by runAndScheduleNext().

Here is the caller graph for this function:

◆ printHistogram()

void printHistogram ( Logging logging,
histogram_s histogram 
)

This function knows how to print a histogram_s summary.

Definition at line 150 of file efilib.cpp.

150 {
151#if EFI_HISTOGRAMS && ! EFI_UNIT_TEST
152 int report[5];
153 int len = hsReport(histogram, report);
154
155 logging->reset();
156 logging.append(PROTOCOL_MSG LOG_DELIMITER);
157 logging.appendPrintf("histogram %s *", histogram->name);
158 for (int i = 0; i < len; i++)
159 logging.appendPrintf("%d ", report[i]);
160 logging.appendPrintf("*");
161 logging.append(LOG_DELIMITER);
162 scheduleLogging(logging);
163#else
164 UNUSED(logging);
165 UNUSED(histogram);
166
167#endif /* EFI_HISTOGRAMS */
168}
void reset()
void appendPrintf(const char *fmt,...) __attribute__((format(printf
int hsReport(histogram_s *h, int *report)
Prepare histogram report.
UNUSED(samplingTimeSeconds)
void scheduleLogging(Logging *logging)
char name[16]
Definition histogram.h:28
Here is the call graph for this function:

Go to the source code of this file.