ha/service-mgmt/sm-common/src/sm_debug_thread.h
Erich Cordoba 44f220a3b8 Remove version from sm-common folder
The sm-common component had the 1.0.0 version in the folder name, this
change removes that version and updates the centos_pkg_dirs.

Story: 2006623
Task: 36828

Change-Id: I0e998a3e2482bc06f3a91f9494a3e5d21faa28e7
Signed-off-by: Erich Cordoba <erich.cordoba.malibran@intel.com>
2019-09-26 12:00:43 -05:00

60 lines
1.2 KiB
C

//
// Copyright (c) 2014 Wind River Systems, Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
#ifndef __SM_DEBUG_THREAD_H__
#define __SM_DEBUG_THREAD_H__
#include <stdint.h>
#include "sm_types.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum
{
SM_DEBUG_THREAD_MSG_LOG,
SM_DEBUG_THREAD_MSG_SCHED_LOG,
} SmDebugThreadMsgTypeT;
#define SM_DEBUG_THREAD_LOG_MAX_CHARS 512
typedef struct
{
uint64_t seqnum;
struct timespec ts_mono;
struct timespec ts_real;
char data[SM_DEBUG_THREAD_LOG_MAX_CHARS];
} SmDebugThreadMsgLogT;
typedef struct
{
SmDebugThreadMsgTypeT type;
union
{
SmDebugThreadMsgLogT log;
} u;
} SmDebugThreadMsgT;
// ****************************************************************************
// Debug Thread - Start
// ====================
extern SmErrorT sm_debug_thread_start( int server_fd );
// ****************************************************************************
// ****************************************************************************
// Debug Thread - Stop
// ===================
extern SmErrorT sm_debug_thread_stop( void );
// ****************************************************************************
#ifdef __cplusplus
}
#endif
#endif // __SM_DEBUG_THREAD_H__