changes made for resource measurement for 'enc' command. (#41)

Reviewed-on: http://13.234.246.121:3000/Neominds/ossl35vx69/pulls/41
Co-authored-by: siddhant <siddhant.singh@neominds.in>
Co-committed-by: siddhant <siddhant.singh@neominds.in>
This commit is contained in:
2026-07-30 19:57:31 +05:30
committed by neelimap
parent b08ac23f82
commit 8a999ce0ab
4 changed files with 440 additions and 13 deletions
@@ -0,0 +1,40 @@
#ifndef SYS_CALL_STAT
#define SYS_CALL_STAT
#include <vxWorks.h>
#include <sys/fcntlcom.h>
#include <semLibCommon.h>
#include <private/semLibP.h>
#include <taskLibCommon.h>
#include "sysLib.h"
#include "SysCallStat.h"
#include <tickLib.h>
#include <stdio.h>
enum kernelAPI
{
openCall=0,
closeCall,
readCall,
writeCall,
sysCallMax,
};
typedef struct
{
unsigned int sysCallCount;
unsigned long int execTimeUsec;
} KRNL_API_STATS;
void displayStats();
void clearSysTableData();
void sysCallMeasurementTask();
void CaptureSysCallMetrics();
int measurementFlag;
TASK_ID sysCallTaskID;
static SEM_ID sysCallSemID;
UINT32 tsFreq;
#endif