ttrace: Resolve build break 66/39766/1
authorjoon.c.baek <joon.c.baek@samsung.com>
Fri, 22 May 2015 04:53:44 +0000 (13:53 +0900)
committerjoon.c.baek <joon.c.baek@samsung.com>
Fri, 22 May 2015 05:05:24 +0000 (14:05 +0900)
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>
include/trace.h
src/ttrace.c

index 36771140014d51174b8096382ab89fbf31ac0d1b..5a60ce1ab82e835a536790aaf4083bc0276a8628 100644 (file)
@@ -23,8 +23,6 @@
 #ifndef _CDBG_TIZEN_TRACE_H_
 #define _CDBG_TIZEN_TRACE_H_
 
-#include <tizen.h>
-
 #ifdef __cplusplus
 extern "C" {
 #endif /* __cplusplus */
@@ -35,15 +33,6 @@ extern "C" {
  *
  */
 
-/**
-* @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.
  *
index a6533f65701c75d5ce6573df7437fd24e40572a1..5ff728719fc9055120669393f9ae369ab9ad7a2c 100644 (file)
@@ -40,6 +40,7 @@
 
 #include <fcntl.h>
 #include <unistd.h>
+#include <errno.h>
 #include <sys/types.h>
 #include <sys/syscall.h>
 #include <sys/ipc.h>
@@ -67,7 +68,6 @@ static unsigned int traceInit() {
                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) {