Searched refs:sample (Results 1 - 25 of 311) sorted by relevance

1234567891011>>

/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_ringbuf_map_key.c10 struct sample { struct
24 __type(key, struct sample);
38 struct sample *sample, sample_copy; local
44 sample = bpf_ringbuf_reserve(&ringbuf, sizeof(*sample), 0);
45 if (!sample)
48 sample->pid = pid;
49 bpf_get_current_comm(sample->comm, sizeof(sample
[all...]
H A Dtest_ringbuf.c10 struct sample { struct
43 struct sample *sample; local
48 sample = bpf_ringbuf_reserve(&ringbuf, sizeof(*sample), 0);
49 if (!sample) {
54 sample->pid = pid;
55 bpf_get_current_comm(sample->comm, sizeof(sample->comm));
56 sample
[all...]
H A Dtest_lirc_mode2_kern.c11 int bpf_decoder(unsigned int *sample) argument
13 if (LIRC_IS_PULSE(*sample)) {
14 unsigned int duration = LIRC_VALUE(*sample);
17 bpf_rc_keydown(sample, 0x40, duration & 0xffff, 0);
19 bpf_rc_pointer_rel(sample, (duration >> 8) & 0xff,
H A Dtest_ringbuf_multi.c9 struct sample { struct
60 struct sample *sample; local
72 sample = bpf_ringbuf_reserve(rb, sizeof(*sample), 0);
73 if (!sample) {
78 sample->pid = pid;
79 bpf_get_current_comm(sample->comm, sizeof(sample->comm));
80 sample
[all...]
H A Dringbuf_bench.c37 long *sample, flags; local
42 sample = bpf_ringbuf_reserve(&ringbuf,
44 if (!sample) {
47 *sample = sample_val;
49 bpf_ringbuf_submit(sample, flags);
/linux-master/tools/testing/selftests/rust/
H A Dtest_probe_samples.sh6 # This script tests whether the rust sample modules can
23 for sample in "${rust_sample_modules[@]}"; do
24 if ! /sbin/modprobe -n -q "$sample"; then
25 ktap_skip_all "module $sample is not found in /lib/modules/$(uname -r)"
32 for sample in "${rust_sample_modules[@]}"; do
33 if /sbin/modprobe -q "$sample"; then
34 /sbin/modprobe -q -r "$sample"
35 ktap_test_pass "$sample"
37 ktap_test_fail "$sample"
/linux-master/drivers/media/pci/cx25821/
H A Dcx25821-biffuncs.h14 static inline u8 getBit(u32 sample, u8 index) argument
16 return (u8) ((sample >> index) & 1);
24 static inline u32 setBitAtPos(u32 sample, u8 bit) argument
26 sample |= (1 << bit);
27 return sample;
/linux-master/samples/acrn/
H A DMakefile3 .PHONY: vm-sample
5 vm-sample: vm-sample.o payload.o
12 rm *.o vm-sample
/linux-master/tools/perf/arch/x86/util/
H A Darchinsn.c9 void arch_fetch_insn(struct perf_sample *sample, argument
17 if (!sample->ip)
19 len = thread__memcpy(thread, machine, sample->insn, sample->ip, sizeof(sample->insn), &is64bit);
23 ret = insn_decode(&insn, sample->insn, len,
26 sample->insn_len = insn.length;
H A Dkvm-stat.c30 static void mmio_event_get_key(struct evsel *evsel, struct perf_sample *sample, argument
33 key->key = evsel__intval(evsel, sample, "gpa");
34 key->info = evsel__intval(evsel, sample, "type");
42 struct perf_sample *sample, struct event_key *key)
50 evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_WRITE) {
51 mmio_event_get_key(evsel, sample, key);
58 static bool mmio_event_end(struct evsel *evsel, struct perf_sample *sample, argument
67 evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_READ) {
68 mmio_event_get_key(evsel, sample, key);
93 struct perf_sample *sample,
41 mmio_event_begin(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument
92 ioport_event_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument
100 ioport_event_begin(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument
136 msr_event_get_key(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument
144 msr_event_begin(struct evsel *evsel, struct perf_sample *sample, struct event_key *key) argument
[all...]
/linux-master/tools/perf/util/
H A Darm64-frame-pointer-unwind-support.c17 static bool get_leaf_frame_caller_enabled(struct perf_sample *sample) argument
19 return callchain_param.record_mode == CALLCHAIN_FP && sample->user_regs.regs
20 && sample->user_regs.mask & SMPL_REG_MASK(PERF_REG_ARM64_LR);
31 u64 get_leaf_frame_caller_aarch64(struct perf_sample *sample, struct thread *thread, int usr_idx) argument
35 struct regs_dump old_regs = sample->user_regs;
37 if (!get_leaf_frame_caller_enabled(sample))
46 if (!(sample->user_regs.mask & SMPL_REG_MASK(PERF_REG_ARM64_PC))) {
47 sample->user_regs.cache_mask |= SMPL_REG_MASK(PERF_REG_ARM64_PC);
48 sample->user_regs.cache_regs[PERF_REG_ARM64_PC] = sample
[all...]
H A Darchinsn.h8 void arch_fetch_insn(struct perf_sample *sample,
H A Darm64-frame-pointer-unwind-support.h10 u64 get_leaf_frame_caller_aarch64(struct perf_sample *sample, struct thread *thread, int user_idx);
H A Dsample-raw.h10 struct perf_sample *sample);
13 struct perf_sample *sample);
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 Dbpf-filter.l12 static int sample(unsigned long sample_flag)
14 perf_bpf_filter_lval.sample.type = sample_flag;
15 perf_bpf_filter_lval.sample.part = 0;
21 perf_bpf_filter_lval.sample.type = sample_flag;
22 perf_bpf_filter_lval.sample.part = part;
70 ip { return sample(PERF_SAMPLE_IP); }
71 id { return sample(PERF_SAMPLE_ID); }
72 tid { return sample(PERF_SAMPLE_TID); }
74 cpu { return sample(PERF_SAMPLE_CPU); }
75 time { return sample(PERF_SAMPLE_TIM
[all...]
H A Ddlfilter.h32 struct perf_sample *sample; member in struct:dlfilter
45 const struct perf_dlfilter_sample *sample,
48 const struct perf_dlfilter_sample *sample,
60 struct perf_sample *sample,
71 struct perf_sample *sample,
79 return dlfilter__do_filter_event(d, event, sample, evsel, machine, al, addr_al, false);
84 struct perf_sample *sample,
92 return dlfilter__do_filter_event(d, event, sample, evsel, machine, al, addr_al, true);
69 dlfilter__filter_event(struct dlfilter *d, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine, struct addr_location *al, struct addr_location *addr_al) argument
82 dlfilter__filter_event_early(struct dlfilter *d, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine, struct addr_location *al, struct addr_location *addr_al) argument
/linux-master/samples/trace_events/
H A DMakefile11 # Here trace-events-sample.c does the CREATE_TRACE_POINTS.
13 CFLAGS_trace-events-sample.o := -I$(src)
16 obj-$(CONFIG_SAMPLE_TRACE_EVENTS) += trace-events-sample.o
/linux-master/drivers/isdn/mISDN/
H A Ddsp_audio.c105 static unsigned char linear2ulaw(short sample) argument
127 /* Get the sample into sign-magnitude. */
128 sign = (sample >> 8) & 0x80; /* set aside the sign */
130 sample = -sample; /* get magnitude */
133 sample = sample + BIAS;
134 exponent = exp_lut[(sample >> 7) & 0xFF];
135 mantissa = (sample >> (exponent + 3)) & 0x0F;
180 * the seven bit sample i
242 s32 sample; local
306 register s32 sample; local
[all...]
/linux-master/arch/x86/kernel/cpu/
H A Drdrand.c27 unsigned long sample, prev; local
35 if (!rdrand_long(&sample)) {
39 changed += i && sample != prev;
40 prev = sample;
/linux-master/samples/coresight/
H A DMakefile3 obj-$(CONFIG_SAMPLE_CORESIGHT_SYSCFG) += coresight-cfg-sample.o
/linux-master/tools/perf/
H A Dbuiltin-timechart.c286 struct cpu_sample *sample; local
295 sample = zalloc(sizeof(*sample));
296 assert(sample != NULL);
297 sample->start_time = start;
298 sample->end_time = end;
299 sample->type = type;
300 sample->next = c->samples;
301 sample->cpu = cpu;
302 sample
492 cat_backtrace(union perf_event *event, struct perf_sample *sample, struct machine *machine) argument
574 process_sample_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) argument
599 process_sample_cpu_idle(struct timechart *tchart __maybe_unused, struct evsel *evsel, struct perf_sample *sample, const char *backtrace __maybe_unused) argument
615 process_sample_cpu_frequency(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample, const char *backtrace __maybe_unused) argument
628 process_sample_sched_wakeup(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample, const char *backtrace) argument
642 process_sample_sched_switch(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample, const char *backtrace) argument
658 process_sample_power_start(struct timechart *tchart __maybe_unused, struct evsel *evsel, struct perf_sample *sample, const char *backtrace __maybe_unused) argument
671 process_sample_power_end(struct timechart *tchart, struct evsel *evsel __maybe_unused, struct perf_sample *sample, const char *backtrace __maybe_unused) argument
681 process_sample_power_frequency(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample, const char *backtrace __maybe_unused) argument
735 struct io_sample *sample; local
777 struct io_sample *sample, *prev; local
851 process_enter_read(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument
861 process_exit_read(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument
871 process_enter_write(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument
881 process_exit_write(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument
891 process_enter_sync(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument
901 process_exit_sync(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument
911 process_enter_tx(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument
921 process_exit_tx(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument
931 process_enter_rx(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument
941 process_exit_rx(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument
951 process_enter_poll(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument
961 process_exit_poll(struct timechart *tchart, struct evsel *evsel, struct perf_sample *sample) argument
1116 struct cpu_sample *sample; local
1147 struct io_sample *sample; local
1259 struct cpu_sample *sample; local
[all...]
/linux-master/tools/perf/scripts/python/
H A Darm-cs-trace-disasm.py113 def print_sample(sample):
116 (sample['cpu'], sample['addr'], sample['phys_addr'], \
117 sample['ip'], sample['pid'], sample['tid'], \
118 sample['period'], sample['time']))
129 def common_start_str(comm, sample)
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dsample.c7 #include "en/tc/act/sample.h"
17 sample_attr->rate = act->sample.rate;
18 sample_attr->group_num = act->sample.psample_group->group_num;
20 if (act->sample.truncate)
21 sample_attr->trunc_size = act->sample.trunc_size;
/linux-master/tools/perf/dlfilters/
H A Ddlfilter-show-cycles.c80 int filter_event_early(void *data, const struct perf_dlfilter_sample *sample, void *ctx) argument
82 __s32 cpu = sample->cpu;
83 __s32 tid = sample->tid;
86 if (!sample->cyc_cnt)
89 pos = event_entry(sample->event);
92 cycles[cpu][pos] += sample->cyc_cnt;
94 add_entry(tid, pos, sample->cyc_cnt);
106 int filter_event(void *data, const struct perf_dlfilter_sample *sample, void *ctx) argument
108 __s32 cpu = sample->cpu;
109 __s32 tid = sample
[all...]

Completed in 328 milliseconds

1234567891011>>