Home
last modified time | relevance | path

Searched refs:outLen (Results 1 – 17 of 17) sorted by relevance

/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/trace_data/
Ddemo_trace_data_db.cpp309 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 …]
Ddemo_trace_data_db.h44 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/
Ddemo_rpc_server.cpp80 …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()
Ddemo_rpc_server.h36 int32_t DemoWasmSqlQuery(const uint8_t *data, size_t len, uint8_t *out, int32_t outLen);
/developtools/smartperf_host/trace_streamer/src/trace_data/
Dtrace_data_db.cpp528 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 …]
Dtrace_data_db.h60 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/
Dtrace_streamer_selector.cpp87 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()
Dtrace_streamer_selector.h38 int32_t SearchDatabase(const std::string &sql, uint8_t *out, int32_t outLen);
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/sdk/
Dwasm_func.cpp131 …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/
Dwasm_func.h44 int32_t TraceStreamerSqlQuery(const uint8_t *sql, int32_t sqlLen, uint8_t *out, int32_t outLen);
Dwasm_func.cpp278 …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()
Drpc_server.h47 int32_t WasmSqlQuery(const uint8_t *data, size_t len, uint8_t *out, int32_t outLen);
Drpc_server.cpp602 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/
Dtrace_streamer_selector.h47 int32_t SearchDatabase(const std::string &sql, uint8_t *out, int32_t outLen);
Dtrace_streamer_selector.cpp456 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/
Dsyscap_interface.c266 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/
Dsyscap_tool.c276 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()