Home
last modified time | relevance | path

Searched +full:event +full:- +full:data +full:- +full:type (Results 1 – 25 of 1084) sorted by relevance

12345678910>>...44

/linux/sound/core/seq/
H A Dseq_ump_convert.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ALSA sequencer event conversion between UMP and legacy clients
68 return port->ump_group ? (port->ump_group - 1) : 0; in get_ump_group()
72 #define make_raw_ump(port, type) \ argument
73 ump_compose(type, get_ump_group(port), 0, 0)
76 * UMP -> MIDI1 sequencer event
81 /* encode note event */
85 ev->data.note.channel = val->note.channel; in ump_midi1_to_note_ev()
86 ev->data.note.note = val->note.note; in ump_midi1_to_note_ev()
87 ev->data.note.velocity = val->note.velocity; in ump_midi1_to_note_ev()
[all …]
H A Dseq_midi_event.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * MIDI byte <-> sequencer event coder
19 MODULE_DESCRIPTION("MIDI byte <-> sequencer event coder");
22 /* event type, index into status_event[] */
23 /* from 0 to 6 are normal commands (note off, on, etc.) for 0x9?-0xe? */
27 /* from 8 to 15 are events for 0xf0-0xf7 */
46 * event list
49 int event; member
54 /* 0x80 - 0xef */
63 {SNDRV_SEQ_EVENT_NONE, -1, NULL, NULL},
[all …]
H A Dseq_clientmgr.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (c) 1998-2001 by Frank van de Pol <fvdpol@coil.demon.nl>
44 /* number of kernel non-card clients */
69 struct snd_seq_event *event,
72 struct snd_seq_event *event,
83 switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { in snd_seq_file_flags()
95 return snd_seq_total_cells(client->pool) > 0; in snd_seq_write_pool_allocated()
141 request_module("snd-seq-client-%i", in snd_seq_client_use_ptr()
148 int card = (clientid - SNDRV_SEQ_GLOBAL_CLIENTS) / in snd_seq_client_use_ptr()
166 snd_use_lock_use(&client->use_lock); in snd_seq_client_use_ptr()
[all …]
/linux/tools/perf/util/
H A Dsynthetic-events.c1 // SPDX-License-Identifier: GPL-2.0-only
4 #include "util/data.h"
7 #include "util/event.h"
18 #include "util/synthetic-events.h"
20 #include "util/time-utils.h"
51 union perf_event *event, in perf_tool__process_synth_event() argument
56 .pid = -1, in perf_tool__process_synth_event()
57 .tid = -1, in perf_tool__process_synth_event()
58 .time = -1, in perf_tool__process_synth_event()
59 .stream_id = -1, in perf_tool__process_synth_event()
[all …]
H A Ddata-convert-bt.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <babeltrace/ctf-writer/writer.h>
15 #include <babeltrace/ctf-writer/clock.h>
16 #include <babeltrace/ctf-writer/stream.h>
17 #include <babeltrace/ctf-writer/event.h>
18 #include <babeltrace/ctf-write
82 } data; global() member
102 value_set(struct bt_ctf_field_type * type,struct bt_ctf_event * event,const char * name,u64 val) value_set() argument
103 value_set(struct bt_ctf_field_type * type,struct bt_ctf_event * event,const char * name,u64 val) value_set() argument
163 value_set_string(struct ctf_writer * cw,struct bt_ctf_event * event,const char * name,const char * string) value_set_string() argument
166 struct bt_ctf_field_type *type = cw->data.string; value_set_string() local
295 add_tracepoint_field_value(struct ctf_writer * cw,struct bt_ctf_event_class * event_class,struct bt_ctf_event * event,struct perf_sample * sample,struct tep_format_field * fmtf) add_tracepoint_field_value() argument
299 struct bt_ctf_field_type *type; add_tracepoint_field_value() local
303 void *data = sample->raw_data; add_tracepoint_field_value() local
407 add_tracepoint_fields_values(struct ctf_writer * cw,struct bt_ctf_event_class * event_class,struct bt_ctf_event * event,struct tep_format_field * fields,struct perf_sample * sample) add_tracepoint_fields_values() argument
425 add_tracepoint_values(struct ctf_writer * cw,struct bt_ctf_event_class * event_class,struct bt_ctf_event * event,struct evsel * evsel,struct perf_sample * sample) add_tracepoint_values() argument
444 add_bpf_output_values(struct bt_ctf_event_class * event_class,struct bt_ctf_event * event,struct perf_sample * sample) add_bpf_output_values() argument
522 add_callchain_output_values(struct bt_ctf_event_class * event_class,struct bt_ctf_event * event,struct ip_callchain * callchain) add_callchain_output_values() argument
596 add_generic_values(struct ctf_writer * cw,struct bt_ctf_event * event,struct evsel * evsel,struct perf_sample * sample) add_generic_values() argument
600 u64 type = evsel->core.attr.sample_type; add_generic_values() local
806 struct bt_ctf_event *event; process_sample_event() local
808 unsigned long type = evsel->core.attr.sample_type; process_sample_event() local
981 event_class_add_field(struct bt_ctf_event_class * event_class,struct bt_ctf_field_type * type,struct tep_format_field * field) event_class_add_field() argument
1028 struct bt_ctf_field_type *type; add_tracepoint_fields_types() local
1100 u64 type = evsel->core.attr.sample_type; add_generic_types() local
1432 struct bt_ctf_field_type *type; create_int_type() local
1471 CREATE_INT_TYPE(type,size,sign,hex) ctf_writer__init_data() argument
1605 struct perf_data data = { bt_convert__perf2ctf() local
[all...]
H A Dsession.c1 // SPDX-License-Identifier: GPL-2.0
31 #include "thread-stack.h"
32 #include "sample-raw.h"
43 union perf_event *event,
50 struct perf_data *data = session->data; in perf_session__open() local
53 pr_err("incompatible file format (rerun with - in perf_session__open()
127 ordered_events__deliver_event(struct ordered_events * oe,struct ordered_event * event) ordered_events__deliver_event() argument
137 __perf_session__new(struct perf_data * data,struct perf_tool * tool,bool trace_event_repipe) __perf_session__new() argument
262 swap_sample_id_all(union perf_event * event,void * data) swap_sample_id_all() argument
271 perf_event__all64_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__all64_swap() argument
278 perf_event__comm_swap(union perf_event * event,bool sample_id_all) perf_event__comm_swap() argument
284 void *data = &event->comm.comm; perf_event__comm_swap() local
291 perf_event__mmap_swap(union perf_event * event,bool sample_id_all) perf_event__mmap_swap() argument
301 void *data = &event->mmap.filename; perf_event__mmap_swap() local
308 perf_event__mmap2_swap(union perf_event * event,bool sample_id_all) perf_event__mmap2_swap() argument
325 void *data = &event->mmap2.filename; perf_event__mmap2_swap() local
331 perf_event__task_swap(union perf_event * event,bool sample_id_all) perf_event__task_swap() argument
343 perf_event__read_swap(union perf_event * event,bool sample_id_all) perf_event__read_swap() argument
356 perf_event__aux_swap(union perf_event * event,bool sample_id_all) perf_event__aux_swap() argument
366 perf_event__itrace_start_swap(union perf_event * event,bool sample_id_all) perf_event__itrace_start_swap() argument
376 perf_event__switch_swap(union perf_event * event,bool sample_id_all) perf_event__switch_swap() argument
389 perf_event__text_poke_swap(union perf_event * event,bool sample_id_all) perf_event__text_poke_swap() argument
400 void *data = &event->text_poke.old_len; perf_event__text_poke_swap() local
407 perf_event__throttle_swap(union perf_event * event,bool sample_id_all) perf_event__throttle_swap() argument
418 perf_event__namespaces_swap(union perf_event * event,bool sample_id_all) perf_event__namespaces_swap() argument
438 perf_event__cgroup_swap(union perf_event * event,bool sample_id_all) perf_event__cgroup_swap() argument
443 void *data = &event->cgroup.path; perf_event__cgroup_swap() local
528 perf_event__hdr_attr_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__hdr_attr_swap() argument
540 perf_event__event_update_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__event_update_swap() argument
547 perf_event__event_type_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__event_type_swap() argument
554 perf_event__tracing_data_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__tracing_data_swap() argument
560 perf_event__auxtrace_info_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__auxtrace_info_swap() argument
572 perf_event__auxtrace_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__auxtrace_swap() argument
583 perf_event__auxtrace_error_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__auxtrace_error_swap() argument
601 perf_event__thread_map_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__thread_map_swap() argument
612 perf_event__cpu_map_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__cpu_map_swap() argument
615 struct perf_record_cpu_map_data *data = &event->cpu_map.data; perf_event__cpu_map_swap() local
653 perf_event__stat_config_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__stat_config_swap() argument
663 perf_event__stat_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__stat_swap() argument
674 perf_event__stat_round_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__stat_round_swap() argument
681 perf_event__time_conv_swap(union perf_event * event,bool sample_id_all __maybe_unused) perf_event__time_conv_swap() argument
783 perf_session__queue_event(struct perf_session * s,union perf_event * event,u64 timestamp,u64 file_offset,const char * file_path) perf_session__queue_event() argument
938 regs__printf(const char * type,struct regs_dump * regs,const char * arch) regs__printf() argument
972 evlist__print_tstamp(struct evlist * evlist,union perf_event * event,struct perf_sample * sample) evlist__print_tstamp() argument
1023 dump_event(struct evlist * evlist,union perf_event * event,u64 file_offset,struct perf_sample * sample,const char * file_path) dump_event() argument
1052 dump_sample(struct evsel * evsel,union perf_event * event,struct perf_sample * sample,const char * arch) dump_sample() argument
1110 dump_read(struct evsel * evsel,union perf_event * event) dump_read() argument
1140 machines__find_for_cpumode(struct machines * machines,union perf_event * event,struct perf_sample * sample) machines__find_for_cpumode() argument
1171 deliver_sample_value(struct evlist * evlist,const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct sample_read_value * v,struct machine * machine) deliver_sample_value() argument
1203 deliver_sample_group(struct evlist * evlist,const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct machine * machine,u64 read_format) deliver_sample_group() argument
1225 evlist__deliver_sample(struct evlist * evlist,const struct perf_tool * tool,union perf_event * event,struct perf_sample * sample,struct evsel * evsel,struct machine * machine) evlist__deliver_sample() argument
1247 machines__deliver_event(struct machines * machines,struct evlist * evlist,union perf_event * event,struct perf_sample * sample,const struct perf_tool * tool,u64 file_offset,const char * file_path) machines__deliver_event() argument
1337 perf_session__deliver_event(struct perf_session * session,union perf_event * event,const struct perf_tool * tool,u64 file_offset,const char * file_path) perf_session__deliver_event() argument
1366 perf_session__process_user_event(struct perf_session * session,union perf_event * event,u64 file_offset,const char * file_path) perf_session__process_user_event() argument
1453 perf_session__deliver_synth_event(struct perf_session * session,union perf_event * event,struct perf_sample * sample) perf_session__deliver_synth_event() argument
1491 event_swap(union perf_event * event,bool sample_id_all) event_swap() argument
1505 union perf_event *event; perf_session__peek_event() local
1557 perf_session__peek_events(struct perf_session * session,u64 offset,u64 size,peek_events_cb_t cb,void * data) perf_session__peek_events() argument
1561 union perf_event *event; perf_session__peek_events() local
1585 perf_session__process_event(struct perf_session * session,union perf_event * event,u64 file_offset,const char * file_path) perf_session__process_event() argument
1778 union perf_event *event; __perf_session__process_pipe_events() local
1898 union perf_event *event; prefetch_event() local
1955 union perf_event *event = fetch_decomp_event(decomp->head, decomp->size, decomp->data, __perf_session__process_decomp_events() local
2105 union perf_event *event; reader__read_event() local
2188 process_simple(struct perf_session * session,union perf_event * event,u64 file_offset,const char * file_path) process_simple() argument
2255 struct perf_data *data = session->data; __perf_session__process_dir_events() local
2470 perf_session__find_first_evtype(struct perf_session * session,unsigned int type) perf_session__find_first_evtype() argument
2572 perf_event__process_id_index(struct perf_session * session,union perf_event * event) perf_event__process_id_index() argument
[all...]
H A Dbpf-event.c1 // SPDX-License-Identifier: GPL-2.0
12 #include "bpf-event.h"
13 #include "bpf-utils.h"
23 #include "util/synthetic-events.h"
25 static int snprintf_hex(char *buf, size_t size, unsigned char *data, size_t len) in snprintf_hex() argument
31 ret += snprintf(buf + ret, size - ret, "%02x", data[i]); in snprintf_hex()
36 union perf_event *event, in machine__process_bpf_event_load() argument
40 struct perf_env *env = machine->env; in machine__process_bpf_event_load()
42 int id = event->bpf.id; in machine__process_bpf_event_load()
45 /* perf-record, no need to handle bpf-event */ in machine__process_bpf_event_load()
[all …]
H A Darm-spe.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2017-2018, Arm Ltd.
28 #include "thread-stack.h"
31 #include "util/synthetic-events.h"
33 #include "arm-spe.h"
34 #include "arm-spe-decoder/arm-sp
147 arm_spe_get_trace(struct arm_spe_buffer * b,void * data) arm_spe_get_trace() argument
297 arm_spe_prep_sample(struct arm_spe * spe,struct arm_spe_queue * speq,union perf_event * event,struct perf_sample * sample) arm_spe_prep_sample() argument
318 arm_spe__inject_event(union perf_event * event,struct perf_sample * sample,u64 type) arm_spe__inject_event() argument
327 arm_spe_deliver_synth_event(struct arm_spe * spe,struct arm_spe_queue * speq __maybe_unused,union perf_event * event,struct perf_sample * sample) arm_spe_deliver_synth_event() argument
350 union perf_event *event = speq->event_buf; arm_spe__synth_mem_sample() local
370 union perf_event *event = speq->event_buf; arm_spe__synth_branch_sample() local
388 union perf_event *event = speq->event_buf; arm_spe__synth_instruction_sample() local
880 arm_spe_context_switch(struct arm_spe * spe,union perf_event * event,struct perf_sample * sample) arm_spe_context_switch() argument
900 arm_spe_process_event(struct perf_session * session,union perf_event * event,struct perf_sample * sample,const struct perf_tool * tool) arm_spe_process_event() argument
949 arm_spe_process_auxtrace_event(struct perf_session * session,union perf_event * event,const struct perf_tool * tool __maybe_unused) arm_spe_process_auxtrace_event() argument
1261 arm_spe_process_auxtrace_info(union perf_event * event,struct perf_session * session) arm_spe_process_auxtrace_info() argument
[all...]
/linux/Documentation/userspace-api/media/v4l/
H A Dvidioc-dqevent.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
13 VIDIOC_DQEVENT - Dequeue event
29 Pointer to struct :c:type:`v4l2_event`.
34 Dequeue an event from a video device. No input is required for this
35 ioctl. All the fields of the struct :c:type:`v4l2_event`
40 .. c:type:: v4l2_event
45 .. flat-table:: struct v4l2_event
46 :header-rows: 0
47 :stub-columns: 0
50 * - __u32
[all …]
/linux/include/uapi/sound/
H A Dasequencer.h1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
4 * Copyright (c) 1998-1999 by Frank van de Pol <fvdpol@coil.demon.nl>
5 * (c) 1998-1999 by Jaroslav Kysela <perex@perex.cz>
16 * definition of sequencer event types
20 * event data type = #snd_seq_result
26 * event data type = #snd_seq_ev_note
34 * event data type = #snd_seq_ev_ctrl
39 #define SNDRV_SEQ_EVENT_PITCHBEND 13 /**< from -8192 to 8191 */
45 * event data type = #snd_seq_ev_ctrl
50 #define SNDRV_SEQ_EVENT_TIMESIGN 23 /* SMF Time Signature event */
[all …]
/linux/Documentation/devicetree/bindings/devfreq/event/
H A Dsamsung,exynos-ppmu.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/devfreq/event/samsung,exynos-ppmu.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Chanwoo Choi <cw00.choi@samsung.com>
11 - Krzysztof Kozlowski <krzk@kernel.org>
15 each IP. PPMU provides the primitive values to get performance data. These
19 Exynos PPMU driver uses the devfreq-event class to provide event data to
20 various devfreq devices. The devfreq devices would use the event data when
26 - samsung,exynos-ppmu
[all …]
/linux/Documentation/hid/
H A Duhid.rst2 UHID - User-space I/O driver support for HID subsystem
5 UHID allows user-space to implement HID transport drivers. Please see
6 hid-transport.rst for an introduction into HID transport drivers. This document
9 With UHID, a user-space transport driver can create kernel hid-devices for each
10 device connected to the user-space controlled bus. The UHID API defines the I/O
11 events provided from the kernel to user-space and vice versa.
13 There is an example user-space application in ./samples/uhid/uhid-example.c
16 ------------
18 UHID is accessed through a character misc-device. The minor number is allocated
25 write()'ing "struct uhid_event" objects. Non-blocking operations are supported
[all …]
/linux/tools/perf/arch/x86/util/
H A Devent.c1 // SPDX-License-Identifier: GPL-2.0
7 #include "../../../util/event.h"
8 #include "../../../util/synthetic-events.h"
21 union perf_event *event; member
24 static int perf_event__synthesize_extra_kmaps_cb(struct map *map, void *data) in perf_event__synthesize_extra_kmaps_cb() argument
26 struct perf_event__synthesize_extra_kmaps_cb_args *args = data; in perf_event__synthesize_extra_kmaps_cb()
27 union perf_event *event = args->event; in perf_event__synthesize_extra_kmaps_cb() local
36 size = sizeof(event->mmap) - sizeof(event->mmap.filename) + in perf_event__synthesize_extra_kmaps_cb()
37 PERF_ALIGN(strlen(kmap->name) + 1, sizeof(u64)) + in perf_event__synthesize_extra_kmaps_cb()
38 args->machine->id_hdr_size; in perf_event__synthesize_extra_kmaps_cb()
[all …]
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_devlink.c1 // SPDX-License-Identifier: GPL-2.0
32 if (fw_image->fw_magic != HINIC_MAGIC_NUM) { in check_image_valid()
33 dev_err(&priv->hwdev->hwif->pdev->dev, "Wrong fw_magic read from file, fw_magic: 0x%x\n", in check_image_valid()
34 fw_image->fw_magic); in check_image_valid()
38 if (fw_image->fw_info.fw_section_cnt > MAX_FW_TYPE_NUM) { in check_image_valid()
39 dev_err(&priv->hwdev->hwif->pdev->dev, "Wrong fw_type_num read from file, fw_type_num: 0x%x\n", in check_image_valid()
40 fw_image->fw_info.fw_section_cnt); in check_image_valid()
44 for (i = 0; i < fw_image->fw_info.fw_section_cnt; i++) { in check_image_valid()
45 len += fw_image->fw_section_info[i].fw_section_len; in check_image_valid()
46 host_image->image_section_info[i] = fw_image->fw_section_info[i]; in check_image_valid()
[all …]
H A Dhinic_hw_eqs.c1 // SPDX-License-Identifier: GPL-2.0-only
15 #include <linux/dma-mapping.h>
28 (ALIGN((eq)->q_len * (eq)->elem_size, pg_size) / (pg_size))
30 #define GET_EQ_NUM_ELEMS_IN_PG(eq, pg_size) ((pg_size) / (eq)->elem_size)
32 #define EQ_CONS_IDX_REG_ADDR(eq) (((eq)->type == HINIC_AEQ) ? \
33 HINIC_CSR_AEQ_CONS_IDX_ADDR((eq)->q_id) : \
34 HINIC_CSR_CEQ_CONS_IDX_ADDR((eq)->q_id))
36 #define EQ_PROD_IDX_REG_ADDR(eq) (((eq)->type == HINIC_AEQ) ? \
37 HINIC_CSR_AEQ_PROD_IDX_ADDR((eq)->q_id) : \
38 HINIC_CSR_CEQ_PROD_IDX_ADDR((eq)->q_id))
[all …]
/linux/include/uapi/linux/
H A Dfirewire-cdev.h4 * Copyright (C) 2005-2007 Kristian Hoegsberg <krh@bitplanet.net>
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
31 #include <linux/firewire-constants.h>
56 * struct fw_cdev_event_common - Common part of all fw_cdev_event_* types
58 * @type: Discriminates the fw_cdev_event_* types
61 * types regardless of the specific type.
63 * Data passed in the @closure field for a request will be returned in the
64 * corresponding event. It is big enough to hold a pointer on all platforms.
65 * The ioctl used to set @closure depends on the @type of event.
69 __u32 type; member
[all …]
/linux/arch/x86/events/intel/
H A Duncore.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <asm/intel-family.h>
6 #include <linux/io-64-nonatomic-lo-hi.h>
25 #define UNCORE_PCI_DEV_FULL_DATA(dev, func, type, idx) \ argument
26 ((dev << 24) | (func << 16) | (type << 8) | idx)
27 #define UNCORE_PCI_DEV_DATA(type, idx) ((type << 8) | idx) argument
28 #define UNCORE_PCI_DEV_DEV(data) ((data >> 24) & 0xff) argument
29 #define UNCORE_PCI_DEV_FUNC(data) ((data >> 16) & 0xff) argument
30 #define UNCORE_PCI_DEV_TYPE(data) ((data >> 8) & 0xff) argument
31 #define UNCORE_PCI_DEV_IDX(data) (data & 0xff) argument
[all …]
/linux/tools/perf/tests/
H A Dsample-parsing.c1 // SPDX-License-Identifier: GPL-2.0
12 #include "event.h"
15 #include "util/synthetic-events.h"
21 if (s1->m != s2->m) { \
28 if (memcmp(&s1->m, &s2->m, sizeof(s1->m))) { \
41 #define FLAG(s) s->branch_stack->entries[i].flags
45 u64 type, u64 read_format, bool needs_swap) in samples_same() argument
49 if (type & PERF_SAMPLE_IDENTIFIER) in samples_same()
52 if (type & PERF_SAMPLE_IP) in samples_same()
55 if (type & PERF_SAMPLE_TID) { in samples_same()
[all …]
/linux/Documentation/input/
H A Dmulti-touch-protocol.rst4 Multi-touch (MT) Protocol
7 :Copyright: |copy| 2009-2010 Henrik Rydberg <rydberg@euromail.se>
11 ------------
13 In order to utilize the full power of the new multi-touch and multi-user
14 devices, a way to report detailed data from multiple contacts, i.e.,
16 document describes the multi-touch (MT) protocol which allows kernel
20 hardware. For devices handling anonymous contacts (type A), the protocol
21 describes how to send the raw data for all contacts to the receiver. For
22 devices capable of tracking identifiable contacts (type B), the protocol
23 describes how to send updates for individual contacts via event slots.
[all …]
/linux/kernel/trace/
H A Dtrace_events_synth.c1 // SPDX-License-Identifier: GPL-2.0
3 * trace_events_synth - synthetic trace events
29 C(INVALID_DYN_CMD, "Command must be of the form: s or -:[synthetic/]<name> field[;field] ..."),\
30 C(EVENT_EXISTS, "Event already exists"), \
32 C(INCOMPLETE_TYPE, "Incomplete type"), \
33 C(INVALID_TYPE, "Invalid type"), \
91 static bool synth_event_match(const char *system, const char *event,
104 return ev->ops == &synth_event_ops; in is_synth_event()
114 struct synth_event *event = to_synth_event(ev); in synth_event_is_busy() local
116 return event->ref != 0; in synth_event_is_busy()
[all …]
/linux/tools/perf/bench/
H A Dinject-buildid.c1 // SPDX-License-Identifier: GPL-2.0
17 #include <subcmd/parse-options.h>
20 #include "util/data.h"
25 #include "util/build-id.h"
27 #include "util/synthetic-events.h"
60 OPT_UINTEGER('m', "nr-mmaps", &nr_mmaps,
62 OPT_UINTEGER('n', "nr-samples", &nr_samples,
63 "Number of sample events per mmap event (defaul
137 synthesize_attr(struct bench_data * data) synthesize_attr() argument
139 union perf_event event; synthesize_attr() local
155 synthesize_fork(struct bench_data * data) synthesize_fork() argument
157 union perf_event event; synthesize_fork() local
173 synthesize_mmap(struct bench_data * data,struct bench_dso * dso,u64 timestamp) synthesize_mmap() argument
175 union perf_event event; synthesize_mmap() local
219 synthesize_sample(struct bench_data * data,struct bench_dso * dso,u64 timestamp) synthesize_sample() argument
221 union perf_event event; synthesize_sample() local
238 synthesize_flush(struct bench_data * data) synthesize_flush() argument
250 struct bench_data *data = arg; data_reader() local
276 setup_injection(struct bench_data * data,bool build_id_all) setup_injection() argument
348 inject_build_id(struct bench_data * data,u64 * max_rss) inject_build_id() argument
395 do_inject_loop(struct bench_data * data,bool build_id_all) do_inject_loop() argument
450 do_inject_loops(struct bench_data * data) do_inject_loops() argument
475 struct bench_data data; bench_inject_build_id() local
[all...]
/linux/include/sound/sof/
H A Dcontrol.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
19 /* channel positions - uses same values as ALSA */
61 /* control data type and direction */
63 /* per channel data - uses struct sof_ipc_ctrl_value_chan */
66 /* component data - uses struct sof_ipc_ctrl_value_comp */
69 /* bespoke data - uses struct sof_abi_hdr */
74 /* control command type */
82 /* generic channel mapped value data */
84 uint32_t channel; /**< channel map - enum sof_ipc_chmap */
88 /* generic component mapped value data */
[all …]
/linux/Documentation/driver-api/media/
H A Dv4l2-event.rst1 .. SPDX-License-Identifier: GPL-2.0
4 -----------
7 The driver must use :c:type:`v4l2_fh` to be able to support V4L2 events.
9 Events are subscribed per-filehandle. An event specification consists of a
10 ``type`` and is optionally associated with an object identified through the
11 ``id`` field. If unused, then the ``id`` is 0. So an event is uniquely
12 identified by the ``(type, id)`` tuple.
14 The :c:type:`v4l2_fh` struct has a list of subscribed events on its
17 When the user subscribes to an event, a :c:type:`v4l2_subscribed_event`
18 struct is added to :c:type:`v4l2_fh`\ ``.subscribed``, one for every
[all …]
/linux/arch/powerpc/platforms/pseries/
H A Dio_event_irq.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2010 2011 Mark Nelson and Tseng-Hui (Frank) Lin, IBM Corporation
23 * IO event interrupt is a mechanism provided by RTAS to return
24 * information about hardware error and non-error events. Device
25 * drivers can register their event handlers to receive events.
28 * their event handlers. Since multiple IO event types and scopes
29 * share an IO event interrupt, the event handlers are called one
30 * by one until the IO event is claimed by one of the handlers.
31 * The event handlers are expected to return NOTIFY_OK if the
32 * event is handled by the event handler or NOTIFY_DONE if the
[all …]
/linux/drivers/perf/
H A Ddwc_pcie_pmu.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2021-2023 Alibaba Inc.
27 * Event Counter Data Select includes two parts:
28 * - 27-24: Group number(4-bit: 0..0x7)
29 * - 23-16: Event number(8-bit: 0..0x13) within the Group
61 /* Event attributes */
66 #define DWC_PCIE_EVENT_ID(event) FIELD_GET(DWC_PCIE_CONFIG_EVENTID, (event)->attr.config) argument
67 #define DWC_PCIE_EVENT_TYPE(event) FIELD_GET(DWC_PCIE_CONFIG_TYPE, (event)->attr.config) argument
68 #define DWC_PCIE_EVENT_LANE(event) FIELD_GET(DWC_PCIE_CONFIG_LANE, (event)->attr.config) argument
86 struct perf_event *event[DWC_PCIE_EVENT_TYPE_MAX]; member
[all …]

12345678910>>...44