/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/trace_data/ |
D | demo_trace_data_db.cpp | 309 const int32_t outLen, in AddColumnsToJsonArray() argument 313 int32_t retSnprintf = snprintf_s(resValue + pos, outLen - pos, 1, "%s", "{\"columns\":["); in AddColumnsToJsonArray() 320 …snprintf_s(resValue + pos, outLen - pos, 1, "%s%s%s", "\"", sqlite3_column_name(stmtSql, i), "\","… in AddColumnsToJsonArray() 327 retSnprintf = snprintf_s(resValue + pos, outLen - pos, 1, "],\"values\":["); in AddColumnsToJsonArray() 336 const int32_t outLen, in AddRowsToJsonArray() argument 347 if (pos + row.size() + strlen(",]}\r\n") >= size_t(outLen)) { in AddRowsToJsonArray() 348 int32_t retSnprintf = snprintf_s(resValue + pos, outLen - pos, 1, "]}\r\n"); in AddRowsToJsonArray() 355 int32_t retSnprintf = snprintf_s(resValue + pos, outLen - pos, 1, "%s%s", row.c_str(), ","); in AddRowsToJsonArray() 364 int32_t retSnprintf = snprintf_s(resValue + pos, outLen - pos, 1, "]}\r\n"); in AddRowsToJsonArray() 371 int32_t DemoTraceDataDB::DemoSearchDatabase(const std::string &sql, uint8_t *out, int32_t outLen) in DemoSearchDatabase() argument [all …]
|
D | demo_trace_data_db.h | 44 const int32_t outLen, 49 const int32_t outLen, 53 int32_t DemoSearchDatabase(const std::string &sql, uint8_t *out, int32_t outLen);
|
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/rpc/ |
D | demo_rpc_server.cpp | 80 …32_t DemoRpcServer::DemoWasmSqlQuery(const uint8_t *data, size_t len, uint8_t *out, int32_t outLen) in DemoWasmSqlQuery() argument 84 TS_LOGI("WASM RPC DemoSqlQuery outlen(%d) demoSql(%zu:%s)", outLen, len, demoSql.c_str()); in DemoWasmSqlQuery() 85 int32_t ret = demoTs_->SearchDatabase(demoSql, out, outLen); in DemoWasmSqlQuery()
|
D | demo_rpc_server.h | 36 int32_t DemoWasmSqlQuery(const uint8_t *data, size_t len, uint8_t *out, int32_t outLen);
|
/developtools/smartperf_host/trace_streamer/src/trace_data/ |
D | trace_data_db.cpp | 528 int32_t TraceDataDB::SearchDatabase(const std::string &sql, uint8_t *out, int32_t outLen) in SearchDatabase() argument 541 int32_t retSnprintf = snprintf_s(res, outLen, snprintfInfo.size(), snprintfInfo.data()); in SearchDatabase() 550 auto returnvalue = HandleColumnNames(stmt, res, outLen, pos, colCount); in SearchDatabase() 555 return HandleRowData(stmt, res, outLen, pos, colCount); in SearchDatabase() 557 int32_t TraceDataDB::HandleColumnNames(sqlite3_stmt *stmt, char *res, int32_t outLen, int32_t pos, … in HandleColumnNames() argument 560 …int32_t retSnprintf = snprintf_s(res + pos, outLen - pos, snprintfInfo.size(), "%s", snprintfInfo.… in HandleColumnNames() 567 …retSnprintf = snprintf_s(res + pos, outLen - pos, snprintfInfo.size(), "%s", snprintfInfo.c_str()); in HandleColumnNames() 575 retSnprintf = snprintf_s(res + pos, outLen - pos, snprintfInfo.size(), snprintfInfo.data()); in HandleColumnNames() 582 int32_t TraceDataDB::HandleRowData(sqlite3_stmt *stmt, char *res, int32_t outLen, int32_t pos, int3… in HandleRowData() argument 592 if (pos + row.size() + strlen(",]}\r\n") >= size_t(outLen)) { in HandleRowData() [all …]
|
D | trace_data_db.h | 60 int32_t SearchDatabase(const std::string &sql, uint8_t *out, int32_t outLen); 83 …int32_t HandleColumnNames(sqlite3_stmt *stmt, char *res, int32_t outLen, int32_t pos, int32_t colC… 84 …int32_t HandleRowData(sqlite3_stmt *stmt, char *res, int32_t outLen, int32_t pos, int32_t colCount…
|
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/trace_streamer/ |
D | trace_streamer_selector.cpp | 87 int32_t TraceStreamerSelector::SearchDatabase(const std::string &sql, uint8_t *out, int32_t outLen) in SearchDatabase() argument 89 return traceDataCache_->DemoSearchDatabase(sql, out, outLen); in SearchDatabase()
|
D | trace_streamer_selector.h | 38 int32_t SearchDatabase(const std::string &sql, uint8_t *out, int32_t outLen);
|
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/sdk/ |
D | wasm_func.cpp | 131 …IVE int32_t TraceStreamerSqlQuery(const uint8_t *sql, int32_t sqlLen, uint8_t *out, int32_t outLen) in TraceStreamerSqlQuery() argument 133 return g_demoWasmTraceStreamer.DemoWasmSqlQuery(sql, sqlLen, out, outLen); in TraceStreamerSqlQuery()
|
/developtools/smartperf_host/trace_streamer/src/rpc/ |
D | wasm_func.h | 44 int32_t TraceStreamerSqlQuery(const uint8_t *sql, int32_t sqlLen, uint8_t *out, int32_t outLen);
|
D | wasm_func.cpp | 278 …IVE int32_t TraceStreamerSqlQuery(const uint8_t *sql, int32_t sqlLen, uint8_t *out, int32_t outLen) in TraceStreamerSqlQuery() argument 280 return g_wasmTraceStreamer.WasmSqlQuery(sql, sqlLen, out, outLen); in TraceStreamerSqlQuery()
|
D | rpc_server.h | 47 int32_t WasmSqlQuery(const uint8_t *data, size_t len, uint8_t *out, int32_t outLen);
|
D | rpc_server.cpp | 602 int32_t RpcServer::WasmSqlQuery(const uint8_t *data, size_t len, uint8_t *out, int32_t outLen) in WasmSqlQuery() argument 606 TS_LOGI("WASM RPC SqlQuery outlen(%d) sql(%zu:%s)", outLen, len, sql.c_str()); in WasmSqlQuery() 608 int32_t ret = ts_->SearchDatabase(sql, out, outLen); in WasmSqlQuery()
|
/developtools/smartperf_host/trace_streamer/src/trace_streamer/ |
D | trace_streamer_selector.h | 47 int32_t SearchDatabase(const std::string &sql, uint8_t *out, int32_t outLen);
|
D | trace_streamer_selector.cpp | 456 int32_t TraceStreamerSelector::SearchDatabase(const std::string &sql, uint8_t *out, int32_t outLen) in SearchDatabase() argument 458 return traceDataCache_->SearchDatabase(sql, out, outLen); in SearchDatabase()
|
/developtools/syscap_codec/interfaces/inner_api/ |
D | syscap_interface.c | 266 static int SetOsSysCapBitMap(uint8_t *out, uint16_t outLen, const uint16_t *index, uint16_t indexLe… in SetOsSysCapBitMap() argument 270 if (outLen != OS_SYSCAP_BYTES) { in SetOsSysCapBitMap()
|
/developtools/syscap_codec/src/ |
D | syscap_tool.c | 276 static int SetOsSysCapBitMap(uint8_t *out, uint16_t outLen, const uint16_t *index, uint16_t indexLe… in SetOsSysCapBitMap() argument 280 if (outLen != BYTES_OF_OS_SYSCAP) { in SetOsSysCapBitMap()
|