Home
last modified time | relevance | path

Searched refs:query (Results 1 – 8 of 8) sorted by relevance

/tools/perf/scripts/python/
Dexport-to-sqlite.py160 query = QSqlQuery(db) variable
162 do_query(query, 'PRAGMA journal_mode = OFF')
163 do_query(query, 'BEGIN TRANSACTION')
165 do_query(query, 'CREATE TABLE selected_events ('
168 do_query(query, 'CREATE TABLE machines ('
172 do_query(query, 'CREATE TABLE threads ('
178 do_query(query, 'CREATE TABLE comms ('
184 do_query(query, 'CREATE TABLE comm_threads ('
188 do_query(query, 'CREATE TABLE dsos ('
194 do_query(query, 'CREATE TABLE symbols ('
[all …]
Dexport-to-postgresql.py323 query = QSqlQuery(db) variable
327 do_query(query, 'CREATE DATABASE ' + dbname)
331 query.finish()
332 query.clear()
338 query = QSqlQuery(db) variable
339 do_query(query, 'SET client_min_messages TO WARNING')
341 do_query(query, 'CREATE TABLE selected_events ('
344 do_query(query, 'CREATE TABLE machines ('
348 do_query(query, 'CREATE TABLE threads ('
354 do_query(query, 'CREATE TABLE comms ('
[all …]
Dexported-sql-viewer.py173 def QueryExec(query, stmt): argument
174 ret = query.exec_(stmt)
176 raise Exception("Query failed: " + query.lastError().text())
521 query = QSqlQuery(self.glb.db)
526 …QueryExec(query, "SELECT call_path_id, name, short_name, COUNT(calls.id), SUM(return_time - call_t…
536 while query.next():
538 insn_cnt = int(query.value(5))
539 cyc_cnt = int(query.value(6))
540 branch_count = int(query.value(7))
544 branch_count = int(query.value(5))
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dtp_attach_query.c10 struct perf_event_query_bpf *query; in test_tp_attach_query() local
36 query = malloc(sizeof(*query) + sizeof(__u32) * num_progs); in test_tp_attach_query()
67 query->ids_len = num_progs; in test_tp_attach_query()
68 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in test_tp_attach_query()
69 if (CHECK(err || query->prog_cnt != 0, in test_tp_attach_query()
72 err, errno, query->prog_cnt)) in test_tp_attach_query()
83 query->ids_len = 0; in test_tp_attach_query()
84 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in test_tp_attach_query()
85 if (CHECK(err || query->prog_cnt != 2, in test_tp_attach_query()
88 err, errno, query->prog_cnt)) in test_tp_attach_query()
[all …]
/tools/testing/selftests/android/ion/
Dionutils.c53 struct ion_heap_query query; in ion_export_buffer_fd() local
69 memset(&query, 0, sizeof(query)); in ion_export_buffer_fd()
70 query.cnt = MAX_HEAP_COUNT; in ion_export_buffer_fd()
71 query.heaps = (unsigned long int)&heap_data[0]; in ion_export_buffer_fd()
73 ret = ioctl(ionfd, ION_IOC_HEAP_QUERY, &query); in ion_export_buffer_fd()
81 for (i = 0; i < query.cnt; i++) { in ion_export_buffer_fd()
/tools/lib/bpf/
Dbpf.c506 attr.query.target_fd = target_fd; in bpf_prog_query()
507 attr.query.attach_type = type; in bpf_prog_query()
508 attr.query.query_flags = query_flags; in bpf_prog_query()
509 attr.query.prog_cnt = *prog_cnt; in bpf_prog_query()
510 attr.query.prog_ids = ptr_to_u64(prog_ids); in bpf_prog_query()
514 *attach_flags = attr.query.attach_flags; in bpf_prog_query()
515 *prog_cnt = attr.query.prog_cnt; in bpf_prog_query()
/tools/perf/Documentation/
Dperf-config.txt148 To query the record mode of call graph, do
156 To query the config value of sort order of call graph in user config file (i.e. `~/.perfconfig`), do
160 To query the config value of buildid directory in system config file (i.e. `$(sysconf)/perfconfig`)…
/tools/include/uapi/linux/
Dbpf.h483 } query; member