Home
last modified time | relevance | path

Searched full:sample (Results 1 – 25 of 2445) sorted by relevance

12345678910>>...98

/openbmc/linux/tools/testing/selftests/tc-testing/tc-tests/actions/
H A Dsample.json4 "name": "Add valid sample action with mandatory arguments",
7 "sample"
11 "$TC actions flush action sample",
17 "cmdUnderTest": "$TC actions add action sample rate 10 group 1 index 2",
19 "verifyCmd": "$TC actions get action sample index 2",
20 "matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 2 ref",
23 "$TC actions flush action sample"
28 "name": "Add valid sample action with mandatory arguments and continue control action",
31 "sample"
35 "$TC actions flush action sample",
[all …]
/openbmc/linux/tools/perf/
H A Dbuiltin-timechart.c286 struct cpu_sample *sample; in pid_put_sample() local
295 sample = zalloc(sizeof(*sample)); in pid_put_sample()
296 assert(sample != NULL); in pid_put_sample()
297 sample->start_time = start; in pid_put_sample()
298 sample->end_time = end; in pid_put_sample()
299 sample->type = type; in pid_put_sample()
300 sample->next = c->samples; in pid_put_sample()
301 sample->cpu = cpu; in pid_put_sample()
302 sample->backtrace = backtrace; in pid_put_sample()
303 c->samples = sample; in pid_put_sample()
[all …]
H A Dbuiltin-script.c490 pr_err("Display of symbols requested but neither sample IP nor " in evsel__check_attr()
491 "sample address\navailable. Hence, no addresses to convert " in evsel__check_attr()
506 pr_err("Display of source line number requested but sample IP is not\n" in evsel__check_attr()
759 static int perf_sample__fprintf_iregs(struct perf_sample *sample, in perf_sample__fprintf_iregs() argument
762 return perf_sample__fprintf_regs(&sample->intr_regs, in perf_sample__fprintf_iregs()
766 static int perf_sample__fprintf_uregs(struct perf_sample *sample, in perf_sample__fprintf_uregs() argument
769 return perf_sample__fprintf_regs(&sample->user_regs, in perf_sample__fprintf_uregs()
774 struct perf_sample *sample, in perf_sample__fprintf_start() argument
785 if (PRINT_FIELD(MACHINE_PID) && sample->machine_pid) in perf_sample__fprintf_start()
786 printed += fprintf(fp, "VM:%5d ", sample->machine_pid); in perf_sample__fprintf_start()
[all …]
H A Dbuiltin-kwork.c197 struct perf_sample *sample) in atom_new() argument
227 atom->time = sample->time; in atom_new()
352 struct perf_sample *sample) in profile_update_timespan() argument
357 if ((kwork->timestart == 0) || (kwork->timestart > sample->time)) in profile_update_timespan()
358 kwork->timestart = sample->time; in profile_update_timespan()
360 if (kwork->timeend < sample->time) in profile_update_timespan()
361 kwork->timeend = sample->time; in profile_update_timespan()
366 struct perf_sample *sample) in profile_event_match() argument
369 u64 time = sample->time; in profile_event_match()
384 profile_update_timespan(kwork, sample); in profile_event_match()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_ringbuf_map_key.c10 struct sample { struct
24 __type(key, struct sample); argument
38 struct sample *sample, sample_copy; in test_ringbuf_mem_map_key() local
44 sample = bpf_ringbuf_reserve(&ringbuf, sizeof(*sample), 0); in test_ringbuf_mem_map_key()
45 if (!sample) in test_ringbuf_mem_map_key()
48 sample->pid = pid; in test_ringbuf_mem_map_key()
49 bpf_get_current_comm(sample->comm, sizeof(sample->comm)); in test_ringbuf_mem_map_key()
50 sample->seq = ++seq; in test_ringbuf_mem_map_key()
51 sample->value = 42; in test_ringbuf_mem_map_key()
53 /* test using 'sample' (PTR_TO_MEM | MEM_ALLOC) as map key arg in test_ringbuf_mem_map_key()
[all …]
H A Dtest_ringbuf.c10 struct sample { struct
43 struct sample *sample; in test_ringbuf() local
48 sample = bpf_ringbuf_reserve(&ringbuf, sizeof(*sample), 0); in test_ringbuf()
49 if (!sample) { in test_ringbuf()
54 sample->pid = pid; in test_ringbuf()
55 bpf_get_current_comm(sample->comm, sizeof(sample->comm)); in test_ringbuf()
56 sample->value = value; in test_ringbuf()
58 sample->seq = seq++; in test_ringbuf()
61 if (sample->seq & 1) { in test_ringbuf()
62 /* copy from reserved sample to a new one... */ in test_ringbuf()
[all …]
H A Dtest_ringbuf_multi.c9 struct sample { struct
60 struct sample *sample; in test_ringbuf() local
72 sample = bpf_ringbuf_reserve(rb, sizeof(*sample), 0); in test_ringbuf()
73 if (!sample) { in test_ringbuf()
78 sample->pid = pid; in test_ringbuf()
79 bpf_get_current_comm(sample->comm, sizeof(sample->comm)); in test_ringbuf()
80 sample->value = value; in test_ringbuf()
82 sample->seq = total; in test_ringbuf()
85 bpf_ringbuf_submit(sample, 0); in test_ringbuf()
/openbmc/linux/drivers/isdn/mISDN/
H A Ddsp_audio.c105 static unsigned char linear2ulaw(short sample) in linear2ulaw() argument
127 /* Get the sample into sign-magnitude. */ in linear2ulaw()
128 sign = (sample >> 8) & 0x80; /* set aside the sign */ in linear2ulaw()
130 sample = -sample; /* get magnitude */ in linear2ulaw()
133 sample = sample + BIAS; in linear2ulaw()
134 exponent = exp_lut[(sample >> 7) & 0xFF]; in linear2ulaw()
135 mantissa = (sample >> (exponent + 3)) & 0x0F; in linear2ulaw()
180 * the seven bit sample is the number of every second alaw-sample ordered by
187 * generate table for conversion law from/to 7-bit alaw-like sample *
210 /* spl is the source: the law-sample (converted to alaw) */ in dsp_audio_generate_seven()
[all …]
/openbmc/linux/tools/perf/scripts/python/
H A Dintel-pt-events.py231 def common_start_str(comm, sample): argument
232 ts = sample["time"]
233 cpu = sample["cpu"]
234 pid = sample["pid"]
235 tid = sample["tid"]
236 if "machine_pid" in sample:
237 machine_pid = sample["machine_pid"]
238 vcpu = sample["vcpu"]
243 def print_common_start(comm, sample, name): argument
244 flags_disp = get_optional_null(sample, "flags_disp")
[all …]
H A Darm-cs-trace-disasm.py113 def print_sample(sample): argument
114 print("Sample = { cpu: %04d addr: 0x%016x phys_addr: 0x%016x ip: 0x%016x " \
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): argument
130 sec = int(sample["time"] / 1000000000)
131 ns = sample["time"] % 1000000000
132 cpu = sample["cpu"]
133 pid = sample["pid"]
[all …]
/openbmc/linux/samples/
H A DKconfig3 bool "Sample kernel code"
5 You can build and test sample kernel code here.
10 bool "auxdisplay sample"
57 tristate "Build sample module for kernel access to Ftrace instancess"
67 different kobject sample modules showing how to use kobjects,
101 different kfifo sample modules showing how to use the
114 tristate "Build qmi client sample -- loadable modules only"
120 Build an QMI client sample driver, which demonstrates how to
124 tristate "Build rpmsg client sample -- loadable modules only"
127 Build an rpmsg client sample driver, which demonstrates how
[all …]
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/openvpn/
H A Dopenvpn_2.6.13.bb56 install -d ${D}/${sysconfdir}/openvpn/sample
57 …install -m 644 ${S}/sample/sample-config-files/loopback-server ${D}${sysconfdir}/openvpn/sample/l…
58 …install -m 644 ${S}/sample/sample-config-files/loopback-client ${D}${sysconfdir}/openvpn/sample/l…
59 install -dm 755 ${D}${sysconfdir}/openvpn/sample/sample-config-files
60 install -dm 755 ${D}${sysconfdir}/openvpn/sample/sample-keys
61 install -dm 755 ${D}${sysconfdir}/openvpn/sample/sample-scripts
62 …install -m 644 ${S}/sample/sample-config-files/* ${D}${sysconfdir}/openvpn/sample/sample-config-fi…
63 install -m 644 ${S}/sample/sample-keys/* ${D}${sysconfdir}/openvpn/sample/sample-keys
64 install -m 644 ${S}/sample/sample-scripts/* ${D}${sysconfdir}/openvpn/sample/sample-scripts
110 PACKAGES =+ " ${PN}-sample "
[all …]
/openbmc/linux/tools/perf/util/
H A Darm64-frame-pointer-unwind-support.c17 static bool get_leaf_frame_caller_enabled(struct perf_sample *sample) in get_leaf_frame_caller_enabled() argument
19 return callchain_param.record_mode == CALLCHAIN_FP && sample->user_regs.regs in get_leaf_frame_caller_enabled()
20 && sample->user_regs.mask & SMPL_REG_MASK(PERF_REG_ARM64_LR); in get_leaf_frame_caller_enabled()
31 u64 get_leaf_frame_caller_aarch64(struct perf_sample *sample, struct thread *thread, int usr_idx) in get_leaf_frame_caller_aarch64() argument
35 struct regs_dump old_regs = sample->user_regs; in get_leaf_frame_caller_aarch64()
37 if (!get_leaf_frame_caller_enabled(sample)) in get_leaf_frame_caller_aarch64()
46 if (!(sample->user_regs.mask & SMPL_REG_MASK(PERF_REG_ARM64_PC))) { in get_leaf_frame_caller_aarch64()
47 sample->user_regs.cache_mask |= SMPL_REG_MASK(PERF_REG_ARM64_PC); in get_leaf_frame_caller_aarch64()
48 sample->user_regs.cache_regs[PERF_REG_ARM64_PC] = sample->callchain->ips[usr_idx+1]; in get_leaf_frame_caller_aarch64()
51 if (!(sample->user_regs.mask & SMPL_REG_MASK(PERF_REG_ARM64_SP))) { in get_leaf_frame_caller_aarch64()
[all …]
H A Dintel-pt.c289 struct perf_sample *sample) in intel_pt_dump_sample() argument
295 intel_pt_dump(pt, sample->aux_sample.data, sample->aux_sample.size); in intel_pt_dump_sample()
1236 struct perf_sample *sample) in intel_pt_add_callchain() argument
1239 sample->pid, in intel_pt_add_callchain()
1240 sample->tid); in intel_pt_add_callchain()
1242 thread_stack__sample_late(thread, sample->cpu, pt->chain, in intel_pt_add_callchain()
1243 pt->synth_opts.callchain_sz + 1, sample->ip, in intel_pt_add_callchain()
1246 sample->callchain = pt->chain; in intel_pt_add_callchain()
1274 struct perf_sample *sample) in intel_pt_add_br_stack() argument
1277 sample->pid, in intel_pt_add_br_stack()
[all …]
H A Dbpf-filter.l12 static int sample(unsigned long sample_flag) in sample() function
14 perf_bpf_filter_lval.sample.type = sample_flag; in sample()
15 perf_bpf_filter_lval.sample.part = 0; in sample()
21 perf_bpf_filter_lval.sample.type = sample_flag; in sample_part()
22 perf_bpf_filter_lval.sample.part = part; in sample_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_TIME); }
[all …]
H A Darm-spe.c298 struct perf_sample *sample) in arm_spe_prep_sample() argument
303 sample->time = tsc_to_perf_time(record->timestamp, &spe->tc); in arm_spe_prep_sample()
305 sample->ip = record->from_ip; in arm_spe_prep_sample()
306 sample->cpumode = arm_spe_cpumode(spe, sample->ip); in arm_spe_prep_sample()
307 sample->pid = speq->pid; in arm_spe_prep_sample()
308 sample->tid = speq->tid; in arm_spe_prep_sample()
309 sample->period = 1; in arm_spe_prep_sample()
310 sample->cpu = speq->cpu; in arm_spe_prep_sample()
311 sample->simd_flags = arm_spe__synth_simd_flags(record); in arm_spe_prep_sample()
313 event->sample.header.type = PERF_RECORD_SAMPLE; in arm_spe_prep_sample()
[all …]
/openbmc/linux/tools/perf/arch/x86/util/
H A Dkvm-stat.c30 static void mmio_event_get_key(struct evsel *evsel, struct perf_sample *sample, in mmio_event_get_key() argument
33 key->key = evsel__intval(evsel, sample, "gpa"); in mmio_event_get_key()
34 key->info = evsel__intval(evsel, sample, "type"); in mmio_event_get_key()
42 struct perf_sample *sample, struct event_key *key) in mmio_event_begin() argument
50 evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_WRITE) { in mmio_event_begin()
51 mmio_event_get_key(evsel, sample, key); in mmio_event_begin()
58 static bool mmio_event_end(struct evsel *evsel, struct perf_sample *sample, in mmio_event_end() argument
67 evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_READ) { in mmio_event_end()
68 mmio_event_get_key(evsel, sample, key); in mmio_event_end()
93 struct perf_sample *sample, in ioport_event_get_key() argument
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-networking/cyrus-sasl/cyrus-sasl/
H A D0001-sample-Rename-dprintf-to-cyrus_dprintf.patch4 Subject: [PATCH] sample: Rename dprintf to cyrus_dprintf
11 sample/client.c | 12 ++++++------
12 sample/common.c | 2 +-
13 sample/common.h | 2 +-
16 diff --git a/sample/client.c b/sample/client.c
18 --- a/sample/client.c
19 +++ b/sample/client.c
63 diff --git a/sample/common.c b/sample/common.c
65 --- a/sample/common.c
66 +++ b/sample/common.c
[all …]
/openbmc/u-boot/board/bosch/shc/
H A DKconfig50 bool "B Sample board version"
52 activate, if you want to build for the B sample version
56 bool "B2 Sample board version"
58 activate, if you want to build for the B2 sample version
62 bool "C Sample board version"
64 activate, if you want to build for the C sample version
68 bool "C2 Sample board version"
70 activate, if you want to build for the C2 sample version
74 bool "C3 Sample board version"
76 activate, if you want to build for the C3 sample version
/openbmc/linux/net/netfilter/
H A Dxt_rateest.c18 struct gnet_stats_rate_est64 sample = {0}; in xt_rateest_mt() local
22 gen_estimator_read(&info->est1->rate_est, &sample); in xt_rateest_mt()
25 bps1 = info->bps1 >= sample.bps ? info->bps1 - sample.bps : 0; in xt_rateest_mt()
26 pps1 = info->pps1 >= sample.pps ? info->pps1 - sample.pps : 0; in xt_rateest_mt()
28 bps1 = sample.bps; in xt_rateest_mt()
29 pps1 = sample.pps; in xt_rateest_mt()
36 gen_estimator_read(&info->est2->rate_est, &sample); in xt_rateest_mt()
39 bps2 = info->bps2 >= sample.bps ? info->bps2 - sample.bps : 0; in xt_rateest_mt()
40 pps2 = info->pps2 >= sample.pps ? info->pps2 - sample.pps : 0; in xt_rateest_mt()
42 bps2 = sample.bps; in xt_rateest_mt()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/hwmon/
H A Dadi,adm1275.yaml40 adi,volt-curr-sample-average:
46 adi,power-sample-average:
62 adi,volt-curr-sample-average:
64 adi,power-sample-average: false
74 adi,volt-curr-sample-average:
76 adi,power-sample-average: false
86 adi,volt-curr-sample-average:
88 adi,power-sample-average:
101 adi,volt-curr-sample-average:
103 adi,power-sample-average:
[all …]
/openbmc/linux/samples/qmi/
H A Dqmi_sample_client.c3 * Sample in-kernel QMI client driver
456 struct qmi_sample *sample; in qmi_sample_probe() local
460 sample = devm_kzalloc(&pdev->dev, sizeof(*sample), GFP_KERNEL); in qmi_sample_probe()
461 if (!sample) in qmi_sample_probe()
464 ret = qmi_handle_init(&sample->qmi, TEST_DATA_REQ_MAX_MSG_LEN_V01, in qmi_sample_probe()
471 ret = kernel_connect(sample->qmi.sock, (struct sockaddr *)sq, in qmi_sample_probe()
480 sample->de_dir = debugfs_create_dir(path, qmi_debug_dir); in qmi_sample_probe()
481 if (IS_ERR(sample->de_dir)) { in qmi_sample_probe()
482 ret = PTR_ERR(sample->de_dir); in qmi_sample_probe()
486 sample->de_data = debugfs_create_file("data", 0600, sample->de_dir, in qmi_sample_probe()
[all …]
/openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/
H A Ddraw.py399 … [(sample.time, sample.user + sample.sys + sample.io) for sample in trace.cpu_stats], \
403 [(sample.time, sample.user + sample.sys) for sample in trace.cpu_stats], \
419 [(sample.time, sample.util) for sample in trace.disk_stats], \
426 [(sample.time, sample.tput) for sample in trace.disk_stats], \
453 [(sample.time, sample.deltaTotal) for sample in trace.cpu_pressure], \
459 [(sample.time, sample.avg10) for sample in trace.cpu_pressure], \
487 [(sample.time, sample.deltaTotal) for sample in trace.io_pressure], \
493 [(sample.time, sample.avg10) for sample in trace.io_pressure], \
521 [(sample.time, sample.deltaTotal) for sample in trace.mem_pressure], \
527 [(sample.time, sample.avg10) for sample in trace.mem_pressure], \
[all …]
/openbmc/linux/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c415 static PyObject *python_process_callchain(struct perf_sample *sample, in python_process_callchain() argument
426 if (!symbol_conf.use_callchain || !sample->callchain) in python_process_callchain()
431 sample, NULL, NULL, in python_process_callchain()
507 static PyObject *python_process_brstack(struct perf_sample *sample, in python_process_brstack() argument
510 struct branch_stack *br = sample->branch_stack; in python_process_brstack()
511 struct branch_entry *entries = perf_sample__branch_entries(sample); in python_process_brstack()
547 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack()
553 thread__find_map_fb(thread, sample->cpumode, in python_process_brstack()
595 static PyObject *python_process_brstacksym(struct perf_sample *sample, in python_process_brstacksym() argument
598 struct branch_stack *br = sample->branch_stack; in python_process_brstacksym()
[all …]
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dtc_sample.sh4 # Test that packets are sampled when tc-sample is used and that reported
233 skip_sw action sample rate 32 group 1
248 log_test "tc sample rate ($desc)"
264 skip_sw action sample rate $((35 * 10 ** 8)) group 1
270 skip_sw action sample rate $((35 * 10 ** 8 + 1)) \
274 log_test "tc sample maximum rate"
285 skip_sw action sample rate 1024 group 1
289 skip_sw action sample rate 1024 group 1 &> /dev/null
298 skip_sw action sample rate 1024 group 1
301 log_test "tc sample conflict test"
[all …]

12345678910>>...98