YaGL: Better logging in yagl_thread
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Mon, 8 Oct 2012 16:08:34 +0000 (20:08 +0400)
committerEvgeny Voevodin <e.voevodin@samsung.com>
Tue, 30 Oct 2012 07:32:00 +0000 (11:32 +0400)
hw/yagl_thread.c
hw/yagl_version.h

index f5e6cd997baee8a4d23099e1cc659e3cf5978606..a23fbe1efa3aead2e14a3bb2e3203f07aca31c69 100644 (file)
@@ -55,6 +55,8 @@ static void *yagl_thread_func(void* arg)
 
         current_buff = ts->current_out_buff;
 
+        YAGL_LOG_TRACE("batch started");
+
         /*
          * current_buff is:
          *  (yagl_api_id) api_id
@@ -91,10 +93,6 @@ static void *yagl_thread_func(void* arg)
 
             func_id = yagl_marshal_get_func_id(&current_buff);
 
-            YAGL_LOG_TRACE("calling (api = %u, func = %u)",
-                           api_id,
-                           func_id);
-
             if ((api_id <= 0) || (api_id > YAGL_NUM_APIS)) {
                 YAGL_LOG_CRITICAL("target-host protocol error, bad api_id - %u", api_id);
 
@@ -153,6 +151,8 @@ static void *yagl_thread_func(void* arg)
 #endif
         }
 
+        YAGL_LOG_TRACE("batch ended");
+
         tmp = ts->current_in_buff;
 
         yagl_stats_batch(num_calls,
@@ -225,8 +225,6 @@ void yagl_thread_call(struct yagl_thread_state *ts,
                       uint8_t *out_buff,
                       uint8_t *in_buff)
 {
-    YAGL_LOG_FUNC_ENTER_TS(ts, yagl_thread_call, NULL);
-
     assert(cpu_single_env);
 
     ts->current_out_buff = out_buff;
@@ -237,6 +235,4 @@ void yagl_thread_call(struct yagl_thread_state *ts,
 
     yagl_event_set(&ts->call_event);
     yagl_event_wait(&ts->call_processed_event);
-
-    YAGL_LOG_FUNC_EXIT(NULL);
 }
index b1cba8577bdfd896210bba50f0bceaa9e0798192..f09f339890fbdee2c179a5d354d934647a97a59a 100644 (file)
@@ -6,6 +6,6 @@
 /*
  * Whenever protocol changes be sure to bump this.
  */
-#define YAGL_VERSION 10
+#define YAGL_VERSION 11
 
 #endif