Searched refs:sample (Results 1 - 25 of 311) sorted by last modified time

1234567891011>>

/linux-master/kernel/sched/
H A Dsched.h213 static inline void update_avg(u64 *avg, u64 sample) argument
215 s64 diff = sample - *avg;
/linux-master/tools/perf/util/
H A Dannotate.c983 struct perf_sample *sample)
1019 h->period += sample->period;
1021 entry->period += sample->period;
1080 struct perf_sample *sample)
1088 return src ? __symbol__inc_addr_samples(ms, src, evsel->core.idx, addr, sample) : 0;
1260 int addr_map_symbol__inc_samples(struct addr_map_symbol *ams, struct perf_sample *sample, argument
1263 return symbol__inc_addr_samples(&ams->ms, evsel, ams->al_addr, sample);
1266 int hist_entry__inc_addr_samples(struct hist_entry *he, struct perf_sample *sample, argument
1269 return symbol__inc_addr_samples(&he->ms, evsel, ip, sample);
981 __symbol__inc_addr_samples(struct map_symbol *ms, struct annotated_source *src, int evidx, u64 addr, struct perf_sample *sample) argument
1078 symbol__inc_addr_samples(struct map_symbol *ms, struct evsel *evsel, u64 addr, struct perf_sample *sample) argument
H A Dunwind-libunwind-local.c96 struct perf_sample *sample; member in struct:unwind_info
571 struct stack_dump *stack = &ui->sample->user_stack;
577 if (__write || !stack || !ui->sample->user_regs.regs) {
582 ret = perf_reg_value(&start, &ui->sample->user_regs,
626 if (!ui->sample->user_regs.regs) {
635 ret = perf_reg_value(&val, &ui->sample->user_regs, id);
739 ret = perf_reg_value(&val, &ui->sample->user_regs,
800 .sample = data,
H A Dunwind-libdw.c188 struct stack_dump *stack = &ui->sample->user_stack;
193 ret = perf_reg_value(&start, &ui->sample->user_regs,
264 .sample = data,
H A Dtrace-event.h99 struct perf_sample *sample,
104 struct perf_sample *sample,
112 struct perf_sample *sample,
121 void script_fetch_insn(struct perf_sample *sample, struct thread *thread,
131 struct perf_sample *sample; member in struct:scripting_context
140 struct perf_sample *sample,
H A Dthread.h347 struct perf_sample *sample);
H A Dsession.c32 #include "sample-raw.h"
354 struct perf_sample *sample __maybe_unused,
364 struct perf_sample *sample __maybe_unused,
485 if (tool->sample == NULL)
486 tool->sample = process_event_sample_stub;
1094 static void callchain__lbr_callstack_printf(struct perf_sample *sample) argument
1096 struct ip_callchain *callchain = sample->callchain;
1097 struct branch_stack *lbr_stack = sample->branch_stack;
1098 struct branch_entry *entries = perf_sample__branch_entries(sample);
1143 struct perf_sample *sample)
1142 callchain__printf(struct evsel *evsel, struct perf_sample *sample) argument
1158 branch_stack__printf(struct perf_sample *sample, struct evsel *evsel) argument
1253 regs_user__printf(struct perf_sample *sample, const char *arch) argument
1261 regs_intr__printf(struct perf_sample *sample, const char *arch) argument
1275 evlist__print_tstamp(struct evlist *evlist, union perf_event *event, struct perf_sample *sample) argument
1292 sample_read__printf(struct perf_sample *sample, u64 read_format) argument
1326 dump_event(struct evlist *evlist, union perf_event *event, u64 file_offset, struct perf_sample *sample, const char *file_path) argument
1355 dump_sample(struct evsel *evsel, union perf_event *event, struct perf_sample *sample, const char *arch) argument
1442 machines__find_for_cpumode(struct machines *machines, union perf_event *event, struct perf_sample *sample) argument
1472 deliver_sample_value(struct evlist *evlist, struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct sample_read_value *v, struct machine *machine) argument
1504 deliver_sample_group(struct evlist *evlist, struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine, u64 read_format) argument
1524 evlist__deliver_sample(struct evlist *evlist, struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) argument
1545 machines__deliver_event(struct machines *machines, struct evlist *evlist, union perf_event *event, struct perf_sample *sample, struct perf_tool *tool, u64 file_offset, const char *file_path) argument
1641 struct perf_sample sample; local
1671 struct perf_sample sample = { .time = 0, }; local
1752 perf_session__deliver_synth_event(struct perf_session *session, union perf_event *event, struct perf_sample *sample) argument
1776 perf_session__peek_event(struct perf_session *session, off_t file_offset, void *buf, size_t buf_sz, union perf_event **event_ptr, struct perf_sample *sample) argument
[all...]
H A Dsession.h83 struct perf_sample *sample);
157 struct perf_sample *sample);
H A Dpython.c221 offsetof(struct pyrf_event, sample) + offsetof(struct perf_sample, member), \
227 struct perf_sample sample; member in struct:pyrf_event
446 static char pyrf_sample_event__doc[] = PyDoc_STR("perf sample event object.");
459 if (asprintf(&s, "{ type: sample }") < 0) {
478 void *data = pe->sample.raw_data;
1170 err = evsel__parse_sample(evsel, event, &pevent->sample);
1177 "perf: can't parse sample, err=%d", err);
H A Dprint_insn.c10 #include "sample.h"
16 size_t sample__fprintf_insn_raw(struct perf_sample *sample, FILE *fp) argument
20 for (int i = 0; i < sample->insn_len; i++) {
21 printed += fprintf(fp, "%02x", (unsigned char)sample->insn[i]);
22 if (sample->insn_len - i > 1)
72 static size_t print_insn_x86(struct perf_sample *sample, struct thread *thread, argument
83 thread__find_symbol(thread, sample->cpumode, op->imm, &al)) {
96 size_t sample__fprintf_insn_asm(struct perf_sample *sample, struct thread *thread, argument
109 return sample__fprintf_insn_raw(sample, fp);
112 count = cs_disasm(cs_handle, (uint8_t *)sample
[all...]
H A Dprint_insn.h12 size_t sample__fprintf_insn_asm(struct perf_sample *sample, struct thread *thread,
14 size_t sample__fprintf_insn_raw(struct perf_sample *sample, FILE *fp);
H A Dmachine.h106 struct perf_sample *sample);
108 struct perf_sample *sample);
110 struct perf_sample *sample);
112 struct perf_sample *sample);
114 struct perf_sample *sample);
125 struct perf_sample *sample);
128 struct perf_sample *sample);
130 struct perf_sample *sample);
132 struct perf_sample *sample);
135 struct perf_sample *sample);
[all...]
H A Dmachine.c590 struct perf_sample *sample)
605 __thread__set_comm(thread, event->comm.comm, sample->time, exec)) {
617 struct perf_sample *sample __maybe_unused)
636 thread__set_namespaces(thread, sample->time, &event->namespaces)) {
648 struct perf_sample *sample __maybe_unused)
663 union perf_event *event, struct perf_sample *sample __maybe_unused)
671 union perf_event *event, struct perf_sample *sample)
674 sample->id, event->lost_samples.lost);
737 struct perf_sample *sample __maybe_unused)
797 struct perf_sample *sample __maybe_unuse
589 machine__process_comm_event(struct machine *machine, union perf_event *event, struct perf_sample *sample) argument
670 machine__process_lost_samples_event(struct machine *machine __maybe_unused, union perf_event *event, struct perf_sample *sample) argument
819 machine__process_ksymbol(struct machine *machine __maybe_unused, union perf_event *event, struct perf_sample *sample) argument
1778 machine__process_mmap2_event(struct machine *machine, union perf_event *event, struct perf_sample *sample) argument
1847 machine__process_mmap_event(struct machine *machine, union perf_event *event, struct perf_sample *sample) argument
1910 machine__process_fork_event(struct machine *machine, union perf_event *event, struct perf_sample *sample) argument
1996 machine__process_event(struct machine *machine, union perf_event *event, struct perf_sample *sample) argument
2096 sample__resolve_mem(struct perf_sample *sample, struct addr_location *al) argument
2226 sample__resolve_bstack(struct perf_sample *sample, struct addr_location *al) argument
2309 lbr_callchain_add_kernel_ip(struct thread *thread, struct callchain_cursor *cursor, struct perf_sample *sample, struct symbol **parent, struct addr_location *root_al, u64 branch_from, bool callee, int end) argument
2368 lbr_callchain_add_lbr_ip(struct thread *thread, struct callchain_cursor *cursor, struct perf_sample *sample, struct symbol **parent, struct addr_location *root_al, u64 *branch_from, bool callee) argument
2617 resolve_lbr_callchain_sample(struct thread *thread, struct callchain_cursor *cursor, struct perf_sample *sample, struct symbol **parent, struct addr_location *root_al, int max_stack, unsigned int max_lbr) argument
2721 get_leaf_frame_caller(struct perf_sample *sample, struct thread *thread, int usr_idx) argument
2730 thread__resolve_callchain_sample(struct thread *thread, struct callchain_cursor *cursor, struct evsel *evsel, struct perf_sample *sample, struct symbol **parent, struct addr_location *root_al, int max_stack) argument
2977 thread__resolve_callchain_unwind(struct thread *thread, struct callchain_cursor *cursor, struct evsel *evsel, struct perf_sample *sample, int max_stack) argument
2997 thread__resolve_callchain(struct thread *thread, struct callchain_cursor *cursor, struct evsel *evsel, struct perf_sample *sample, struct symbol **parent, struct addr_location *root_al, int max_stack) argument
[all...]
H A Devsel.h52 * PERF_SAMPLE_IDENTIFIER) in a sample event i.e. in the array of
55 * PERF_SAMPLE_IDENTIFIER) in a non-sample event i.e. if sample_id_all
56 * is used there is an id sample appended to non-sample events
142 * For reporting purposes, an evsel sample can have a callchain
143 * synthesized from AUX area data. Keep track of synthesized sample
339 void *evsel__rawptr(struct evsel *evsel, struct perf_sample *sample, const char *name);
340 u64 evsel__intval(struct evsel *evsel, struct perf_sample *sample, const char *name);
341 u64 evsel__intval_common(struct evsel *evsel, struct perf_sample *sample, const char *name);
342 char evsel__taskstate(struct evsel *evsel, struct perf_sample *sample, cons
344 evsel__strval(struct evsel *evsel, struct perf_sample *sample, const char *name) argument
[all...]
/linux-master/tools/include/uapi/drm/
H A Di915_drm.h269 #define __I915_PMU_ENGINE(class, instance, sample) \
272 (sample))
2907 * every sample.
2909 * The order of these sample properties given by userspace has no
2910 * affect on the ordering of data within a sample. The order is
/linux-master/sound/hda/
H A Dintel-nhlt.c253 _vbps = cfg->fmt_ext.sample.valid_bits_per_sample;
308 * The DMIC hardware supports only one type of 32 bits sample
/linux-master/include/sound/
H A Dintel-nhlt.h44 } sample; member in struct:wav_fmt_ext
/linux-master/drivers/w1/masters/
H A Dsgi_w1.c20 #define MCR_PACK(pulse, sample) (((pulse) << 10) | ((sample) << 2))
/linux-master/drivers/iio/magnetometer/
H A Daf8133j.c363 } sample; local
366 memset(&sample, 0, sizeof(sample));
368 ret = af8133j_read_measurement(data, sample.values);
372 iio_push_to_buffers_with_timestamp(indio_dev, &sample, timestamp);
/linux-master/drivers/iio/adc/
H A Dad_sigma_delta.c280 unsigned int sample, raw_sample; local
331 sample = raw_sample >> chan->scan_type.shift;
332 sample &= (1 << chan->scan_type.realbits) - 1;
333 *val = sample;
454 /* Status word will be appended to the sample during transfer */
470 * data[] = { [0][sample][sample][sample][status] }
483 * once, there is no need for sample number tracking.
497 * Drop this incomplete sample an
[all...]
/linux-master/drivers/iio/accel/
H A Dadxl367.c730 u16 sample; local
744 sample = FIELD_GET(ADXL367_DATA_MASK, be16_to_cpu(st->sample_buf));
745 *val = sign_extend32(sample, chan->scan_type.realbits - 1);
/linux-master/samples/trace_events/
H A Dtrace-events-sample.h8 * In this case, it would look for sample-trace.h
14 * This file is called trace-events-sample.h but we want the system
15 * to be called "sample-trace". Therefore we must define the name of this
18 * #define TRACE_INCLUDE_FILE trace-events-sample
26 #define TRACE_SYSTEM sample-trace
606 * CFLAGS_trace-events-sample.o := -I$(src)
613 * CFLAGS_trace-events-sample.o := -I$(PWD)
629 #define TRACE_INCLUDE_FILE trace-events-sample
/linux-master/drivers/macintosh/
H A Drack-meter.c36 /* Number of samples in a sample buffer */
314 u32 sample = 0; local
317 sample >>= 1;
318 sample |= ((rm->ubuf[led] >= 0x80) << 15);
320 return (sample << 17) | (sample >> 15);
356 /* Fill it now. This routine converts the 8 bits depth sample array
/linux-master/tools/testing/selftests/damon/
H A Dsysfs_update_schemes_tried_regions_wss_estimation.py43 sample = wss_collected[int(len(wss_collected) * percentile / 100)]
44 error_rate = abs(sample - sz_region) / sz_region
46 (percentile, sample, error_rate))
/linux-master/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c417 static PyObject *python_process_callchain(struct perf_sample *sample, argument
428 if (!symbol_conf.use_callchain || !sample->callchain)
433 sample, NULL, NULL,
509 static PyObject *python_process_brstack(struct perf_sample *sample, argument
512 struct branch_stack *br = sample->branch_stack;
513 struct branch_entry *entries = perf_sample__branch_entries(sample);
549 thread__find_map_fb(thread, sample->cpumode,
555 thread__find_map_fb(thread, sample->cpumode,
597 static PyObject *python_process_brstacksym(struct perf_sample *sample, argument
600 struct branch_stack *br = sample
679 set_sample_read_in_dict(PyObject *dict_sample, struct perf_sample *sample, struct evsel *evsel) argument
722 set_sample_datasrc_in_dict(PyObject *dict, struct perf_sample *sample) argument
759 set_regs_in_dict(PyObject *dict, struct perf_sample *sample, struct evsel *evsel) argument
832 python_process_sample_flags(struct perf_sample *sample, PyObject *dict_sample) argument
842 get_perf_sample_dict(struct perf_sample *sample, struct evsel *evsel, struct addr_location *al, struct addr_location *addr_al, PyObject *callchain) argument
940 python_process_tracepoint(struct perf_sample *sample, struct evsel *evsel, struct addr_location *al, struct addr_location *addr_al) argument
1431 python_export_context_switch(struct db_export *dbe, u64 db_id, struct machine *machine, struct perf_sample *sample, u64 th_out_id, u64 comm_out_id, u64 th_in_id, u64 comm_in_id, int flags) argument
1467 python_process_general_event(struct perf_sample *sample, struct evsel *evsel, struct addr_location *al, struct addr_location *addr_al) argument
1503 python_process_event(union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct addr_location *al, struct addr_location *addr_al) argument
1526 python_process_throttle(union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
1557 python_do_process_switch(union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
1597 python_process_switch(union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
[all...]

Completed in 332 milliseconds

1234567891011>>