Skip to content

linux_sysmon.c implementation pasted into the test file #456

@thnkslprpt

Description

@thnkslprpt

Checklist

  • I reviewed the Contributing Guide.
  • I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.

Describe the bug
We mistakenly pasted the implementation file in to the test file...

Code snips

void UtTest_Setup(void)
{
ADD_TEST(Test_Nominal);
ADD_TEST(Test_Non_Reducible);
ADD_TEST(Test_Reducible_1);
ADD_TEST(Test_Reducible_2);
ADD_TEST(Test_Rollover);
ADD_TEST(Test_Get_Timebase);
}
/***********************************************************************
* Copyright (c) 2017, United States government as represented by the
* administrator of the National Aeronautics and Space Administration.
* All rights reserved. This software was created at NASA Glenn
* Research Center pursuant to government contracts.
*
* \file linux_sysmon.c
*
***********************************************************************/
/*
* NOTE: This relies on the Linux Kernel sched stats via the /proc filesystem.
* Documented here: https://docs.kernel.org/scheduler/sched-stats.html
*/
/************************************************************************
* Includes
************************************************************************/
#include <fcntl.h>
#include <ctype.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <pthread.h>
#include <stdint.h>
#include <poll.h>
#include "cfe_psp.h"
#include "cfe_psp_module.h"
#include "osapi-clock.h"
#include "iodriver_impl.h"
#include "iodriver_analog_io.h"
/********************************************************************
* Local Defines
********************************************************************/
#define LINUX_SYSMON_AGGREGATE_SUBSYS 0
#define LINUX_SYSMON_CPULOAD_SUBSYS 1
#define LINUX_SYSMON_AGGR_CPULOAD_SUBCH 0

Expected behavior
Remove.

Reporter Info
Avi Weiss   @thnkslprpt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions