Update benchmark codes 00/307100/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 5 Mar 2024 01:13:45 +0000 (10:13 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 5 Mar 2024 01:14:36 +0000 (10:14 +0900)
The codes are generated using tidl 2.0.4 version.

Change-Id: I528eaa594df3ba2eb0508222db5ad1ffaeeae4d1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
benchmark/server/BenchmarkStub.cc
benchmark/server/BenchmarkStub.h
benchmark/tool/BenchmarkProxy.cc
benchmark/tool/BenchmarkProxy.h

index 45d16c88ae0327d04ea5772312c872c230ca8206..f1d55d2eed07c84083e260fcbe0532acf9f40065 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Generated by tidlc 1.9.1.
+ * Generated by tidlc 2.0.4.
  */
 
 #include <stdlib.h>
@@ -38,7 +38,7 @@
 #define _D(fmt, ...) dlog_print(DLOG_DEBUG, LOG_TAG, "%s: %s(%d) > " fmt, basename(const_cast<char*>(__FILE__)), __FUNCTION__, __LINE__, ##__VA_ARGS__)
 
 #ifndef TIDL_VERSION
-#define TIDL_VERSION "1.9.1"
+#define TIDL_VERSION "2.0.4"
 #endif
 
 namespace rpc_port {
@@ -171,7 +171,7 @@ int Benchmark::OnReceivedCB(const char* sender, const char* instance, rpc_port_h
   auto* cxt = static_cast<Benchmark*>(data);
   rpc_port_parcel_h p;
   rpc_port_parcel_h result;
-  rpc_port_parcel_h header;
+  rpc_port_parcel_header_h header;
   int seq_num = -1;
   int cmd;
   int ret;
@@ -204,7 +204,6 @@ int Benchmark::OnReceivedCB(const char* sender, const char* instance, rpc_port_h
 
   rpc_port_parcel_get_header(p, &header);
   rpc_port_parcel_header_get_seq_num(header, &seq_num);
-  _W("[Sequence] %d", seq_num);
 
   rpc_port_parcel_create(&result);
   rpc_port_parcel_get_header(result, &header);
@@ -219,11 +218,10 @@ int Benchmark::OnReceivedCB(const char* sender, const char* instance, rpc_port_h
       rpc_port_parcel_read_string(p, &param1_raw);
       std::string param1(param1_raw);
       free(param1_raw);
-      auto retVal = b->Test(param1);
+      auto retVal = b->Test(std::move(param1));
       rpc_port_parcel_write_int32(result, static_cast<int>(MethodId::__Result));
       rpc_port_parcel_write_int32(result, retVal);
-      ret = rpc_port_parcel_send(result, port);
-      _I("Parcel send result(%d)", ret);
+      rpc_port_parcel_send(result, port);
       break;
     }
 
index 8c72233fee31552a3b762f61ff12f8f9b1842c1d..ce6e03952fc00e2179974c2c7bf46fe61a10ede1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Generated by tidlc 1.9.1.
+ * Generated by tidlc 2.0.4.
  */
 
 #pragma once
index df7b61bc1c90107cb16bd7852fe648d4ebc1b396..740e37b89dd438909d732919ca9756cf6e7d9d5e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Generated by tidlc 1.9.1.
+ * Generated by tidlc 2.0.4.
  */
 
 #include <stdlib.h>
@@ -37,7 +37,7 @@
 #define _D(fmt, ...) dlog_print(DLOG_DEBUG, LOG_TAG, "%s: %s(%d) > " fmt, basename(const_cast<char*>(__FILE__)), __FUNCTION__, __LINE__, ##__VA_ARGS__)
 
 #ifndef TIDL_VERSION
-#define TIDL_VERSION "1.9.1"
+#define TIDL_VERSION "2.0.4"
 #endif
 
 namespace rpc_port {
@@ -239,7 +239,6 @@ int Benchmark::Test(std::string data) {
   rpc_port_parcel_header_set_tag(header_, TIDL_VERSION);
   int seq_num_ = -1;
   rpc_port_parcel_header_get_seq_num(header_, &seq_num_);
-  _W("[Version] \"%s\", [Sequence] %d", TIDL_VERSION, seq_num_);
   rpc_port_parcel_write_int32(p, static_cast<int>(MethodId::Test));
   rpc_port_parcel_write_string(p, data.c_str());
 
@@ -269,7 +268,6 @@ int Benchmark::Test(std::string data) {
     rpc_port_parcel_header_get_tag(header_, &tag_);
     std::unique_ptr<char, decltype(std::free)*> tag_auto_(tag_, std::free);
     if (tag_ && tag_[0] != '\0') {
-      _W("[Version] %s", tag_);
       int seq_num_received_ = -1;
       rpc_port_parcel_header_get_seq_num(header_, &seq_num_received_);
       if (seq_num_received_ != seq_num_) {
index 43edad5387c61a3779ff4fd444be213b87521be8..8f9376bbbffbb24b14820e8a9ff1ff489cdb2a46 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Generated by tidlc 1.9.1.
+ * Generated by tidlc 2.0.4.
  */
 
 #pragma once