Laelaps  2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
diagCpu.cxx File Reference

Perform Laelaps main CPU diagnostics. More...

#include <sys/utsname.h>
#include <unistd.h>
#include <termios.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "rnr/opts.h"
#include "rnr/pkg.h"
#include "Laelaps/laelaps.h"
#include "Laelaps/laeUtils.h"
#include "Laelaps/laeSysDev.h"
#include "laelaps_diag.h"

Go to the source code of this file.

Functions

static void trim (string &str)
 
static void tolower (string &str)
 
static string normalize (string str)
 
static bool parseCpuInfo (string &strCpuHw, string &strCpuRev, int &numCores)
 
static bool parseLsbRelease (string &strDistribId, string &strDistribRel, string &strDistribCode, string &strDistribDesc)
 
static bool parseEthMacAddr (string &strEthMacAddr)
 
static bool parseMmcCid (string &strMmcCid)
 
static DiagStats readInfo ()
 
DiagStats runCpuDiagnostics ()
 

Variables

static const char * SubSysName = "CPU"
 
static const char * ProdName = "Odroid"
 

Detailed Description

Perform Laelaps main CPU diagnostics.

LastChangedDate
2016-02-01 15:14:45 -0700 (Mon, 01 Feb 2016)
Rev
4289
Author
Robin Knight (robin.nosp@m..kni.nosp@m.ght@r.nosp@m.oadn.nosp@m.arrow.nosp@m.s.co.nosp@m.m)
Copyright
© 2015-2017. RoadNarrows LLC.
http://www.roadnarrows.com
All Rights Reserved

Definition in file diagCpu.cxx.