| /OK3568_Linux_fs/kernel/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| H A D | sample.json | 4 "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 …]
|
| /OK3568_Linux_fs/buildroot/dl/sox/git/src/ |
| H A D | sox_sample_test.c | 27 sample = SOX_UNSIGNED_TO_SAMPLE(bits,uint##bits); \ 28 assert(sample == SOX_SAMPLE_MIN); \ 29 uint##bits = SOX_SAMPLE_TO_UNSIGNED(bits,sample, clips); \ 33 sample = SOX_UNSIGNED_TO_SAMPLE(bits,uint##bits); \ 34 assert(sample > SOX_SAMPLE_MIN && sample < 0); \ 35 uint##bits = SOX_SAMPLE_TO_UNSIGNED(bits,sample, clips); \ 39 sample = SOX_UNSIGNED_TO_SAMPLE(bits,uint##bits); \ 40 assert(sample * SOX_INT_MAX(bits) == SOX_UNSIGNED_TO_SAMPLE(bits,1)); \ 41 uint##bits = SOX_SAMPLE_TO_UNSIGNED(bits,sample, clips); \ 44 sample =SOX_UNSIGNED_TO_SAMPLE(bits,1)+SOX_UNSIGNED_TO_SAMPLE(bits,SOX_INT_MAX(bits))/2; \ [all …]
|
| H A D | xa.c | 40 uint32_t sampleRate; /* sample rate (samples/sec) */ 47 int32_t curSample; /* current sample */ 48 int32_t prevSample; /* previous sample */ 73 /* Clip sample to 16 bits */ 74 static inline int32_t clip16(int32_t sample) in clip16() argument 76 if (sample > 32767) { in clip16() 78 } else if (sample < -32768) { in clip16() 81 return sample; in clip16() 154 lsx_fail_errno(ft, SOX_EFMT, "%d-bit sample resolution not supported.", in startread() 161 lsx_report("Invalid sample resolution %d bits. Assuming %d bits.", in startread() [all …]
|
| H A D | vol.c | 116 register double sample; in flow() local 130 sample = *ibuf++; in flow() 132 if (sample > limiterthreshhold) in flow() 134 sample = (SOX_SAMPLE_MAX - vol->limitergain * (SOX_SAMPLE_MAX - sample)); in flow() 137 else if (sample < -limiterthreshhold) in flow() 139 sample = -(SOX_SAMPLE_MAX - vol->limitergain * (SOX_SAMPLE_MAX + sample)); in flow() 145 if (sample < SOX_SAMPLE_MIN) in flow() 146 sample = SOX_SAMPLE_MIN; in flow() 149 sample = gain * sample; in flow() 151 SOX_SAMPLE_CLIP_COUNT(sample, effp->clips); in flow() [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/ |
| H A D | builtin-timechart.c | 273 struct cpu_sample *sample; in pid_put_sample() local 285 sample = zalloc(sizeof(*sample)); in pid_put_sample() 286 assert(sample != NULL); in pid_put_sample() 287 sample->start_time = start; in pid_put_sample() 288 sample->end_time = end; in pid_put_sample() 289 sample->type = type; in pid_put_sample() 290 sample->next = c->samples; in pid_put_sample() 291 sample->cpu = cpu; in pid_put_sample() 292 sample->backtrace = backtrace; in pid_put_sample() 293 c->samples = sample; in pid_put_sample() [all …]
|
| H A D | builtin-script.c | 452 pr_err("Display of symbols requested but neither sample IP nor " in evsel__check_attr() 453 "sample address\navailable. Hence, no addresses to convert " in evsel__check_attr() 468 pr_err("Display of source line number requested but sample IP is not\n" in evsel__check_attr() 678 static int perf_sample__fprintf_iregs(struct perf_sample *sample, in perf_sample__fprintf_iregs() argument 681 return perf_sample__fprintf_regs(&sample->intr_regs, in perf_sample__fprintf_iregs() 685 static int perf_sample__fprintf_uregs(struct perf_sample *sample, in perf_sample__fprintf_uregs() argument 688 return perf_sample__fprintf_regs(&sample->user_regs, in perf_sample__fprintf_uregs() 693 struct perf_sample *sample, in perf_sample__fprintf_start() argument 716 printed += fprintf(fp, "%5d/%-5d ", sample->pid, sample->tid); in perf_sample__fprintf_start() 718 printed += fprintf(fp, "%5d ", sample->pid); in perf_sample__fprintf_start() [all …]
|
| H A D | builtin-inject.c | 212 struct perf_sample *sample __maybe_unused, in perf_event__repipe() 220 struct perf_sample *sample __maybe_unused, in perf_event__drop() 228 struct perf_sample *sample, in perf_event__drop_aux() argument 234 inject->aux_id = sample->id; in perf_event__drop_aux() 242 struct perf_sample *sample) in perf_inject__cut_auxtrace_sample() argument 244 size_t sz1 = sample->aux_sample.data - (void *)event; in perf_inject__cut_auxtrace_sample() 245 size_t sz2 = event->header.size - sample->aux_sample.size - sz1; in perf_inject__cut_auxtrace_sample() 263 struct perf_sample *sample, 269 struct perf_sample *sample, in perf_event__repipe_sample() argument 278 return f(tool, event, sample, evsel, machine); in perf_event__repipe_sample() [all …]
|
| H A D | builtin-sched.c | 147 struct perf_sample *sample, struct machine *machine); 150 struct perf_sample *sample, struct machine *machine); 153 struct perf_sample *sample, struct machine *machine); 161 struct perf_sample *sample, 812 struct evsel *evsel, struct perf_sample *sample, in replay_wakeup_event() argument 815 const char *comm = evsel__strval(evsel, sample, "comm"); in replay_wakeup_event() 816 const u32 pid = evsel__intval(evsel, sample, "pid"); in replay_wakeup_event() 822 printf(" ... pid %d woke up %s/%d\n", sample->tid, comm, pid); in replay_wakeup_event() 825 waker = register_pid(sched, sample->tid, "<unknown>"); in replay_wakeup_event() 828 add_sched_event_wakeup(sched, waker, sample->time, wakee); in replay_wakeup_event() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/isdn/mISDN/ |
| H A D | dsp_audio.c | 105 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 …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkisp_demo/ |
| H A D | Android.mk | 22 demo/sample/sample_a3dlut_module.cpp \ 23 demo/sample/sample_abayer2dnr_module.cpp \ 24 demo/sample/sample_abayertnr_module.cpp \ 25 demo/sample/sample_ablc_module.cpp \ 26 demo/sample/sample_accm_module.cpp \ 27 demo/sample/sample_acnr_module.cpp \ 28 demo/sample/sample_acp_module.cpp \ 29 demo/sample/sample_adebayer_module.cpp \ 30 demo/sample/sample_adehaze_module.cpp \ 31 demo/sample/sample_adpcc_module.cpp \ [all …]
|
| /OK3568_Linux_fs/kernel/samples/ |
| H A D | Kconfig | 3 bool "Sample kernel code" 5 You can build and test sample kernel code here. 10 bool "auxdisplay sample" 35 tristate "Build sample module for kernel access to Ftrace instancess" 45 different kobject sample modules showing how to use kobjects, 72 different kfifo sample modules showing how to use the 85 tristate "Build qmi client sample -- loadable modules only" 91 Build an QMI client sample driver, which demonstrates how to 95 tristate "Build rpmsg client sample -- loadable modules only" 98 Build an rpmsg client sample driver, which demonstrates how [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/ |
| H A D | test_ringbuf.c | 9 struct sample { struct 43 struct sample *sample; in test_ringbuf() local 49 sample = bpf_ringbuf_reserve(&ringbuf, sizeof(*sample), 0); in test_ringbuf() 50 if (!sample) { in test_ringbuf() 55 sample->pid = pid; in test_ringbuf() 56 bpf_get_current_comm(sample->comm, sizeof(sample->comm)); in test_ringbuf() 57 sample->value = value; in test_ringbuf() 59 sample->seq = seq++; in test_ringbuf() 62 if (sample->seq & 1) { in test_ringbuf() 63 /* copy from reserved sample to a new one... */ in test_ringbuf() [all …]
|
| H A D | test_ringbuf_multi.c | 9 struct sample { struct 48 struct sample *sample; in test_ringbuf() local 61 sample = bpf_ringbuf_reserve(rb, sizeof(*sample), 0); in test_ringbuf() 62 if (!sample) { in test_ringbuf() 67 sample->pid = pid; in test_ringbuf() 68 bpf_get_current_comm(sample->comm, sizeof(sample->comm)); in test_ringbuf() 69 sample->value = value; in test_ringbuf() 71 sample->seq = total; in test_ringbuf() 74 bpf_ringbuf_submit(sample, 0); in test_ringbuf()
|
| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | intel-pt.c | 243 struct perf_sample *sample) in intel_pt_dump_sample() argument 249 intel_pt_dump(pt, sample->aux_sample.data, sample->aux_sample.size); in intel_pt_dump_sample() 946 struct perf_sample *sample) in intel_pt_add_callchain() argument 949 sample->pid, in intel_pt_add_callchain() 950 sample->tid); in intel_pt_add_callchain() 952 thread_stack__sample_late(thread, sample->cpu, pt->chain, in intel_pt_add_callchain() 953 pt->synth_opts.callchain_sz + 1, sample->ip, in intel_pt_add_callchain() 956 sample->callchain = pt->chain; in intel_pt_add_callchain() 984 struct perf_sample *sample) in intel_pt_add_br_stack() argument 987 sample->pid, in intel_pt_add_br_stack() [all …]
|
| H A D | event.c | 49 [PERF_RECORD_SAMPLE] = "SAMPLE", 194 struct perf_sample *sample, in perf_event__process_comm() argument 197 return machine__process_comm_event(machine, event, sample); in perf_event__process_comm() 202 struct perf_sample *sample, in perf_event__process_namespaces() argument 205 return machine__process_namespaces_event(machine, event, sample); in perf_event__process_namespaces() 210 struct perf_sample *sample, in perf_event__process_cgroup() argument 213 return machine__process_cgroup_event(machine, event, sample); in perf_event__process_cgroup() 218 struct perf_sample *sample, in perf_event__process_lost() argument 221 return machine__process_lost_event(machine, event, sample); in perf_event__process_lost() 226 struct perf_sample *sample __maybe_unused, in perf_event__process_aux() [all …]
|
| H A D | session.c | 30 #include "sample-raw.h" 339 struct perf_sample *sample __maybe_unused, in process_event_sample_stub() 349 struct perf_sample *sample __maybe_unused, in process_event_stub() 463 if (tool->sample == NULL) in perf_tool__fill_defaults() 464 tool->sample = process_event_sample_stub; in perf_tool__fill_defaults() 1055 static void callchain__lbr_callstack_printf(struct perf_sample *sample) in callchain__lbr_callstack_printf() argument 1057 struct ip_callchain *callchain = sample->callchain; in callchain__lbr_callstack_printf() 1058 struct branch_stack *lbr_stack = sample->branch_stack; in callchain__lbr_callstack_printf() 1059 struct branch_entry *entries = perf_sample__branch_entries(sample); in callchain__lbr_callstack_printf() 1104 struct perf_sample *sample) in callchain__printf() argument [all …]
|
| /OK3568_Linux_fs/kernel/tools/perf/scripts/python/ |
| H A D | intel-pt-events.py | 80 def print_common_start(comm, sample, name): argument 81 ts = sample["time"] 82 cpu = sample["cpu"] 83 pid = sample["pid"] 84 tid = sample["tid"] 89 def print_common_ip(sample, symbol, dso): argument 90 ip = sample["ip"] 95 sample = param_dict["sample"] 112 print_common_start(comm, sample, name) 114 print_common_ip(sample, symbol, dso) [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkisp_demo/demo/sample/ |
| H A D | sample_image_process.cpp | 103 printf("\t 0) AE: module test sample.\n"); in sample_usage() 104 printf("\t 1) AWB: module test sample.\n"); in sample_usage() 105 printf("\t 2) AF: module test sample.\n"); in sample_usage() 106 printf("\t 3) ACCM: module test sample.\n"); in sample_usage() 107 printf("\t 4) A3DLUT: module test sample.\n"); in sample_usage() 108 printf("\t 5) ADRC: module test sample.\n"); in sample_usage() 109 printf("\t 6) AMERGE: module test sample.\n"); in sample_usage() 110 printf("\t 7) AGAMMA: module test sample.\n"); in sample_usage() 111 printf("\t 8) ADEHAZE: module test sample.\n"); in sample_usage() 112 printf("\t 9) AYNR: module test sample.\n"); in sample_usage() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-daemons/cyrus-sasl/cyrus-sasl/ |
| H A D | 0001-sample-Rename-dprintf-to-cyrus_dprintf.patch | 4 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 …]
|
| /OK3568_Linux_fs/kernel/include/uapi/gpu/arm/bifrost/ |
| H A D | mali_kbase_hwcnt_reader.h | 62 * struct kbase_hwcnt_reader_metadata - hwcnt reader sample buffer metadata 63 * @timestamp: time when sample was collected 64 * @event_id: id of an event that triggered sample collection 65 * @buffer_idx: position in sampling area where sample buffer was stored 66 * @cycles: the GPU cycles that occurred since the last sample 112 * @PRFCNT_LIST_TYPE_SAMPLE_META: Sample metadata. 213 * struct prfcnt_enum_sample_info - Sample information descriptor. 229 * @u.sample_info: Performance counter sample information descriptor. 340 /* This sample contains overflows from dump duration stretch because the sample buffer was full */ 342 /* This sample has had an error condition for sample duration */ [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-support/openvpn/ |
| H A D | openvpn_2.5.6.bb | 43 install -d ${D}/${sysconfdir}/openvpn/sample 44 …install -m 755 ${S}/sample/sample-config-files/loopback-server ${D}${sysconfdir}/openvpn/sample/l… 45 …install -m 755 ${S}/sample/sample-config-files/loopback-client ${D}${sysconfdir}/openvpn/sample/l… 46 install -dm 755 ${D}${sysconfdir}/openvpn/sample/sample-keys 47 install -m 644 ${S}/sample/sample-keys/* ${D}${sysconfdir}/openvpn/sample/sample-keys 65 PACKAGES =+ " ${PN}-sample " 73 FILES:${PN}-sample += "${systemd_unitdir}/system/openvpn@loopback-server.service \ 75 ${sysconfdir}/openvpn/sample/"
|
| /OK3568_Linux_fs/kernel/drivers/oprofile/ |
| H A D | cpu_buffer.c | 132 * This function prepares the cpu buffer to write a sample. 138 * op_cpu_buffer_write_commit() after preparing the sample. In case of 140 * sample. 148 size * sizeof(entry->sample->data[0])); in op_cpu_buffer_write_reserve() 151 entry->sample = ring_buffer_event_data(entry->event); in op_cpu_buffer_write_reserve() 153 entry->data = entry->sample->data; in op_cpu_buffer_write_reserve() 155 return entry->sample; in op_cpu_buffer_write_reserve() 171 entry->sample = ring_buffer_event_data(e); in op_cpu_buffer_read_entry() 173 / sizeof(entry->sample->data[0]); in op_cpu_buffer_read_entry() 174 entry->data = entry->sample->data; in op_cpu_buffer_read_entry() [all …]
|
| /OK3568_Linux_fs/kernel/samples/qmi/ |
| H A D | qmi_sample_client.c | 3 * 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 …]
|
| /OK3568_Linux_fs/kernel/net/netfilter/ |
| H A D | xt_rateest.c | 18 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 …]
|
| /OK3568_Linux_fs/kernel/tools/perf/arch/x86/util/ |
| H A D | kvm-stat.c | 31 static void mmio_event_get_key(struct evsel *evsel, struct perf_sample *sample, in mmio_event_get_key() argument 34 key->key = evsel__intval(evsel, sample, "gpa"); in mmio_event_get_key() 35 key->info = evsel__intval(evsel, sample, "type"); in mmio_event_get_key() 43 struct perf_sample *sample, struct event_key *key) in mmio_event_begin() argument 51 evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_WRITE) { in mmio_event_begin() 52 mmio_event_get_key(evsel, sample, key); in mmio_event_begin() 59 static bool mmio_event_end(struct evsel *evsel, struct perf_sample *sample, in mmio_event_end() argument 68 evsel__intval(evsel, sample, "type") == KVM_TRACE_MMIO_READ) { in mmio_event_end() 69 mmio_event_get_key(evsel, sample, key); in mmio_event_end() 94 struct perf_sample *sample, in ioport_event_get_key() argument [all …]
|