ttrace was migrated from Tizen 2.4 repository.
Build environments is not suitable with ttrace.
Remove including tizen2.4 header and UTC related codes.
This patch only support to build armv7l arch.
Need more work to build other architectures.
(arch64, x86, x86_64, etc,.)
Change-Id: I6d98b5c0e4c006cf99c4a8341c1cf91eed9b7aa1
Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
#ifndef _CDBG_TIZEN_TRACE_H_
#define _CDBG_TIZEN_TRACE_H_
-#include <tizen.h>
-
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
*/
/**
-* @brief Enumeration for Trace Error.
-* @since_tizen 2.4
-*/
-typedef enum {
- TRACE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
- TRACE_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR /**< I/O error */
-} trace_error_e;
-
-/**
* @brief Writes a trace event to indicate that a synchronous event has begun.
*
* @since_tizen 2.4
#include <fcntl.h>
#include <unistd.h>
+#include <errno.h>
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/ipc.h>
if(errno == ENOENT){
g_trace_handle_fd = TRACE_FILE_NOT_EXIST;
}
- set_last_result(TRACE_ERROR_IO_ERROR);
return 0;
}
if(cur_enabled_tag == NULL) {