Home
last modified time | relevance | path

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

1234567891011

/linux/tools/testing/selftests/kvm/s390/
H A Dcpumodel_subfuncs_test.c55 static void test_plo_asm_block(u8 (*query)[32]) in test_plo_asm_block()
59 (*query)[i >> 3] |= 0x80 >> (i & 7); in test_plo_asm_block()
64 static void test_kmac_asm_block(u8 (*query)[16]) in test_kmac_asm_block()
69 : [query] "=R" (*query) in test_kmac_asm_block()
75 static void test_kmc_asm_block(u8 (*query)[16]) in test_kmc_asm_block()
80 : [query] "=R" (*query) in test_kmc_asm_block()
86 static void test_km_asm_block(u8 (*query)[16]) in test_km_asm_block()
91 : [query] "=R" (*query) in test_km_asm_block()
97 static void test_kimd_asm_block(u8 (*query)[16]) in test_kimd_asm_block()
102 : [query] "=R" (*query) in test_kimd_asm_block()
[all …]
/linux/tools/perf/scripts/python/
H A 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 …]
H A 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 …]
H A 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 …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A 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 …]
H A Dtc_opts.c2463 const size_t attr_size = offsetofend(union bpf_attr, query); in test_tc_opts_query_target()
2529 /* Test 1: Double query via libbpf API */ in test_tc_opts_query_target()
2555 /* Test 2: Double query via bpf_attr & bpf(2) directly */ 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 in test_tc_opts_query_target()
[all...]
/linux/lib/
H A Ddynamic_debug.c131 static void vpr_info_dq(const struct ddebug_query *query, const char *msg) in vpr_info_dq() argument
136 if (query->format) { in vpr_info_dq()
137 fmtlen = strlen(query->format); in vpr_info_dq()
138 while (fmtlen && query->format[fmtlen - 1] == '\n') in vpr_info_dq()
144 query->function ?: "", in vpr_info_dq()
145 query->filename ?: "", in vpr_info_dq()
146 query->module ?: "", in vpr_info_dq()
147 fmtlen, query->format ?: "", in vpr_info_dq()
148 query->first_lineno, query->last_lineno, query->class_string); in vpr_info_dq()
175 static int ddebug_change(const struct ddebug_query *query, in ddebug_change() argument
[all …]
/linux/tools/testing/selftests/mm/
H A Dmerge.c97 ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr); in TEST_F()
98 ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 10 * page_size); in TEST_F()
147 ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr); in TEST_F()
148 ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 10 * page_size); in TEST_F()
198 ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr); in TEST_F()
199 ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 9 * page_size); in TEST_F()
257 ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr); in TEST_F()
258 ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 9 * page_size); in TEST_F()
316 ASSERT_EQ(procmap->query.vma_start, (unsigned long)ptr); in TEST_F()
317 ASSERT_EQ(procmap->query.vma_end, (unsigned long)ptr + 9 * page_size); in TEST_F()
[all …]
/linux/drivers/input/touchscreen/
H A Dwacom_w8001.c188 static void parse_touchquery(u8 *data, struct w8001_touch_query *query) in parse_touchquery() argument
190 memset(query, 0, sizeof(*query)); in parse_touchquery()
192 query->panel_res = data[1]; in parse_touchquery()
193 query->sensor_id = data[2] & 0x7; in parse_touchquery()
194 query->capacity_res = data[7]; in parse_touchquery()
196 query->x = data[3] << 9; in parse_touchquery()
197 query->x |= data[4] << 2; in parse_touchquery()
198 query->x |= (data[2] >> 5) & 0x3; in parse_touchquery()
200 query->y = data[5] << 9; in parse_touchquery()
201 query->y |= data[6] << 2; in parse_touchquery()
[all …]
/linux/drivers/input/rmi4/
H A Drmi_f11.c659 struct f11_2d_sensor_queries *query = &f11->sens_query; in f11_2d_construct_data() local
663 sensor->nbr_fingers = (query->nr_fingers == 5 ? 10 : in f11_2d_construct_data()
664 query->nr_fingers + 1); in f11_2d_construct_data()
668 if (query->has_abs) { in f11_2d_construct_data()
673 if (query->has_rel) in f11_2d_construct_data()
677 if (query->query7_nonzero) in f11_2d_construct_data()
681 if (query->query7_nonzero || query->query8_nonzero) in f11_2d_construct_data()
684 if (query->has_pinch || query->has_flick || query->has_rotate) { in f11_2d_construct_data()
686 if (!query->has_flick) in f11_2d_construct_data()
688 if (!query->has_rotate) in f11_2d_construct_data()
[all …]
/linux/kernel/bpf/
H A Dmprog.c408 if (attr->query.query_flags || attr->query.attach_flags) in bpf_mprog_query()
414 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in bpf_mprog_query()
416 if (copy_to_user(&uattr->query.revision, &revision, sizeof(revision))) in bpf_mprog_query()
418 if (copy_to_user(&uattr->query.count, &count, sizeof(count))) in bpf_mprog_query()
420 uprog_id = u64_to_user_ptr(attr->query.prog_ids); in bpf_mprog_query()
421 uprog_flags = u64_to_user_ptr(attr->query.prog_attach_flags); in bpf_mprog_query()
422 ulink_id = u64_to_user_ptr(attr->query.link_ids); in bpf_mprog_query()
423 ulink_flags = u64_to_user_ptr(attr->query.link_attach_flags); in bpf_mprog_query()
424 if (attr->query.count == 0 || !uprog_id || !count) in bpf_mprog_query()
426 if (attr->query.count < count) { in bpf_mprog_query()
[all …]
H A Dnet_namespace.c250 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); in __netns_bpf_prog_query()
259 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in __netns_bpf_prog_query()
261 if (copy_to_user(&uattr->query.prog_cnt, &prog_cnt, sizeof(prog_cnt))) in __netns_bpf_prog_query()
263 if (!attr->query.prog_cnt || !prog_ids || !prog_cnt) in __netns_bpf_prog_query()
267 attr->query.prog_cnt); in __netns_bpf_prog_query()
277 if (attr->query.query_flags) in netns_bpf_prog_query()
280 type = to_netns_bpf_attach_type(attr->query.attach_type); in netns_bpf_prog_query()
284 net = get_net_ns_by_fd(attr->query.target_fd); in netns_bpf_prog_query()
/linux/drivers/media/rc/
H A Dbpf-lirc.c297 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); in lirc_prog_query()
303 if (attr->query.query_flags) in lirc_prog_query()
306 rcdev = rc_dev_get_from_fd(attr->query.target_fd, false); in lirc_prog_query()
322 if (copy_to_user(&uattr->query.prog_cnt, &cnt, sizeof(cnt))) { in lirc_prog_query()
327 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) { in lirc_prog_query()
332 if (attr->query.prog_cnt != 0 && prog_ids && cnt) in lirc_prog_query()
334 attr->query.prog_cnt); in lirc_prog_query()
/linux/tools/perf/python/
H A Dilist.py15 from textual.css.query import NoMatches
38 def matches(self, query: str) -> bool:
73 def matches(self, query: str) -> bool:
74 return query in self.metric_name
117 def matches(self, query: str) -> bool:
118 return query in self.pmu or query in self.event
348 counter: Label = self.query(f"#counter_cpu{cpu}" if cpu >= 0 else "#counter_total")
355 line: Sparkline = self.query(f"#sparkline_cpu{cpu}" if cpu >= 0 else "#sparkline_total")
400 old_lines = self.query(CounterSparkline)
403 old_counters = self.query(Counter)
/linux/tools/testing/selftests/vfio/lib/
H A Diommu.c350 struct iommu_ioas_iova_ranges query = { in iommufd_iova_ranges() local
351 .size = sizeof(query), in iommufd_iova_ranges()
355 ret = ioctl(iommu->iommufd, IOMMU_IOAS_IOVA_RANGES, &query); in iommufd_iova_ranges()
358 VFIO_ASSERT_GT(query.num_iovas, 0); in iommufd_iova_ranges()
360 ranges = calloc(query.num_iovas, sizeof(*ranges)); in iommufd_iova_ranges()
363 query.allowed_iovas = (uintptr_t)ranges; in iommufd_iova_ranges()
365 ioctl_assert(iommu->iommufd, IOMMU_IOAS_IOVA_RANGES, &query); in iommufd_iova_ranges()
366 *nranges = query.num_iovas; in iommufd_iova_ranges()
/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dbiosattr-interface.c119 int hp_wmi_perform_query(int query, enum hp_wmi_command command, void *buffer, in hp_wmi_perform_query() argument
144 args->commandtype = query; in hp_wmi_perform_query()
160 pr_warn("query 0x%x returned wrong type or too small buffer\n", query); in hp_wmi_perform_query()
169 pr_warn("query 0x%x returned error 0x%x\n", query, ret); in hp_wmi_perform_query()
/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A Dcmd.c125 int mlx5_fpga_query(struct mlx5_core_dev *dev, struct mlx5_fpga_query *query) in mlx5_fpga_query() argument
136 query->status = MLX5_GET(fpga_ctrl, out, status); in mlx5_fpga_query()
137 query->admin_image = MLX5_GET(fpga_ctrl, out, flash_select_admin); in mlx5_fpga_query()
138 query->oper_image = MLX5_GET(fpga_ctrl, out, flash_select_oper); in mlx5_fpga_query()
/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Dethtool-coalesce.sh7 local query="${SETTINGS_MAP[$1]}"
10 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[ \t]/, "", $2); print $2}')
H A Dethtool-ring.sh
/linux/Documentation/ABI/testing/
H A Dsysfs-devices-system-ibm-rtl7 ability to query the current state.
19 Description: The version file provides a means by which to query
/linux/Documentation/admin-guide/laptops/
H A Dtoshiba_haps.rst55 This device does not report any axes, however, to query the sensor position
57 provided to query such information, handled by the kernel module toshiba_acpi
76 provides a way to let userspace query the current protection
/linux/net/dns_resolver/
H A DKconfig13 DNS Resolver is used to query DNS server for information. Examples
15 performing a DNS query for AFSDB records so that AFS can locate a
/linux/drivers/hid/intel-ish-hid/ishtp/
H A Dloader.c358 struct loader_xfer_query query = { .header = cpu_to_le32(query_hdr.val32), }; in ishtp_loader_work() local
392 query.image_size = cpu_to_le32(ish_fw->size); in ishtp_loader_work()
393 rv = loader_xfer_cmd(dev, &query, sizeof(query), recv_msg.raw_data, in ishtp_loader_work()
/linux/drivers/soc/qcom/
H A Dcmd-db.c150 u8 query[sizeof(ent->id)] __nonstring; in cmd_db_get_header() local
156 strtomem_pad(query, id, 0); in cmd_db_get_header()
165 if (memcmp(ent->id, query, sizeof(ent->id)) == 0) { in cmd_db_get_header()
/linux/fs/ocfs2/dlm/
H A Ddlmdomain.c792 struct dlm_query_join_request *query; in dlm_query_join_handler() local
800 query = (struct dlm_query_join_request *) msg->buf; in dlm_query_join_handler()
802 mlog(0, "node %u wants to join domain %s\n", query->node_idx, in dlm_query_join_handler()
803 query->domain); in dlm_query_join_handler()
810 if (!o2hb_check_node_heartbeating_no_sem(query->node_idx)) { in dlm_query_join_handler()
812 query->node_idx); in dlm_query_join_handler()
821 dlm = __dlm_lookup_domain_full(query->domain, query->name_len); in dlm_query_join_handler()
833 if (!byte_test_bit(nodenum, query->node_map)) { in dlm_query_join_handler()
836 query->node_idx, nodenum); in dlm_query_join_handler()
849 int bit = query->node_idx; in dlm_query_join_handler()
[all …]

1234567891011