Home
last modified time | relevance | path

Searched refs:query (Results 1 – 11 of 11) 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.py183 def QueryExec(query, stmt): argument
184 ret = query.exec_(stmt)
186 raise Exception("Query failed: " + query.lastError().text())
540 query = QSqlQuery(self.glb.db)
545 …QueryExec(query, "SELECT call_path_id, name, short_name, COUNT(calls.id), SUM(return_time - call_t…
555 while query.next():
557 insn_cnt = int(query.value(5))
558 cyc_cnt = int(query.value(6))
559 branch_count = int(query.value(7))
563 branch_count = int(query.value(5))
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dtp_attach_query.c10 struct perf_event_query_bpf *query; in serial_test_tp_attach_query() local
41 query = malloc(sizeof(*query) + sizeof(__u32) * num_progs); in serial_test_tp_attach_query()
73 query->ids_len = num_progs; in serial_test_tp_attach_query()
74 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in serial_test_tp_attach_query()
75 if (CHECK(err || query->prog_cnt != 0, in serial_test_tp_attach_query()
78 err, errno, query->prog_cnt)) in serial_test_tp_attach_query()
89 query->ids_len = 0; in serial_test_tp_attach_query()
90 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in serial_test_tp_attach_query()
91 if (CHECK(err || query->prog_cnt != 2, in serial_test_tp_attach_query()
94 err, errno, query->prog_cnt)) in serial_test_tp_attach_query()
[all …]
Dtc_opts.c2463 const size_t attr_size = offsetofend(union bpf_attr, query); in test_tc_opts_query_target()
2557 attr.query.target_ifindex = loopback; in test_tc_opts_query_target()
2558 attr.query.attach_type = target; in test_tc_opts_query_target()
2564 ASSERT_EQ(attr.query.count, 4, "count"); in test_tc_opts_query_target()
2565 ASSERT_EQ(attr.query.revision, 5, "revision"); in test_tc_opts_query_target()
2566 ASSERT_EQ(attr.query.query_flags, 0, "query_flags"); in test_tc_opts_query_target()
2567 ASSERT_EQ(attr.query.attach_flags, 0, "attach_flags"); in test_tc_opts_query_target()
2568 ASSERT_EQ(attr.query.target_ifindex, loopback, "target_ifindex"); in test_tc_opts_query_target()
2569 ASSERT_EQ(attr.query.attach_type, target, "attach_type"); in test_tc_opts_query_target()
2570 ASSERT_EQ(attr.query.prog_ids, 0, "prog_ids"); in test_tc_opts_query_target()
[all …]
/tools/testing/selftests/drivers/net/netdevsim/
Dethtool-coalesce.sh7 local query="${SETTINGS_MAP[$1]}"
10 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[ \t]/, "", $2); print $2}')
Dethtool-ring.sh7 local query="${SETTINGS_MAP[$1]}"
11 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[\t ]/, "", $2); print $2}')
/tools/lib/bpf/
Dbpf.c933 const size_t attr_sz = offsetofend(union bpf_attr, query); in bpf_prog_query_opts()
941 attr.query.target_fd = target; in bpf_prog_query_opts()
942 attr.query.attach_type = type; in bpf_prog_query_opts()
943 attr.query.query_flags = OPTS_GET(opts, query_flags, 0); in bpf_prog_query_opts()
944 attr.query.count = OPTS_GET(opts, count, 0); in bpf_prog_query_opts()
945 attr.query.prog_ids = ptr_to_u64(OPTS_GET(opts, prog_ids, NULL)); in bpf_prog_query_opts()
946 attr.query.link_ids = ptr_to_u64(OPTS_GET(opts, link_ids, NULL)); in bpf_prog_query_opts()
947 attr.query.prog_attach_flags = ptr_to_u64(OPTS_GET(opts, prog_attach_flags, NULL)); in bpf_prog_query_opts()
948 attr.query.link_attach_flags = ptr_to_u64(OPTS_GET(opts, link_attach_flags, NULL)); in bpf_prog_query_opts()
952 OPTS_SET(opts, attach_flags, attr.query.attach_flags); in bpf_prog_query_opts()
[all …]
/tools/perf/Documentation/
Dperf-daemon.txt36 User need perf session that either produces data on query, like the
Dperf-config.txt146 To query the record mode of call graph, do
154 To query the config value of sort order of call graph in user config file (i.e. `~/.perfconfig`), do
158 To query the config value of buildid directory in system config file (i.e. `$(sysconf)/perfconfig`)…
/tools/include/uapi/linux/
Dbpf.h1670 } query; member