| /linux/drivers/media/platform/ti/omap3isp/ |
| A D | isphist.c | 72 if (!hist->update || hist->state == ISPSTAT_DISABLED || in hist_setup_regs() 121 hist_reset_mem(hist); in hist_setup_regs() 134 hist->update = 0; in hist_setup_regs() 135 hist->config_counter += hist->inc_config; in hist_setup_regs() 136 hist->inc_config = 0; in hist_setup_regs() 275 if (atomic_read(&hist->buf_err) || hist->state != ISPSTAT_ENABLED) { in hist_buf_process() 283 if (hist->dma_ch) in hist_buf_process() 409 if (!hist->configured || hist_comp_params(hist, user_cfg)) { in hist_set_params() 414 hist->update = 1; in hist_set_params() 484 hist->isp = isp; in omap3isp_hist_init() [all …]
|
| /linux/tools/tracing/rtla/src/ |
| A D | timerlat_hist.c | 111 if (data->hist) in timerlat_free_histogram() 112 free(data->hist); in timerlat_free_histogram() 135 data->hist = calloc(1, sizeof(*data->hist) * nr_cpus); in timerlat_alloc_histogram() 136 if (!data->hist) in timerlat_alloc_histogram() 180 int *hist; in timerlat_hist_update() local 188 hist = data->hist[cpu].irq; in timerlat_hist_update() 194 hist = data->hist[cpu].thread; in timerlat_hist_update() 200 hist = data->hist[cpu].user; in timerlat_hist_update() 208 hist[bucket]++; in timerlat_hist_update() 369 data->hist[cpu].sum_irq / data->hist[cpu].irq_count); in timerlat_print_summary() [all …]
|
| A D | osnoise_hist.c | 77 if (data->hist[cpu].samples) in osnoise_free_histogram() 82 if (data->hist) in osnoise_free_histogram() 83 free(data->hist); in osnoise_free_histogram() 105 data->hist = calloc(1, sizeof(*data->hist) * nr_cpus); in osnoise_alloc_histogram() 106 if (!data->hist) in osnoise_alloc_histogram() 110 data->hist[cpu].samples = calloc(1, sizeof(*data->hist->samples) * (entries + 1)); in osnoise_alloc_histogram() 134 int *hist; in osnoise_hist_update_multiple() local 143 hist = data->hist[cpu].samples; in osnoise_hist_update_multiple() 150 hist[bucket] += count; in osnoise_hist_update_multiple() 152 hist[entries] += count; in osnoise_hist_update_multiple() [all …]
|
| A D | trace.c | 315 char *hist; in trace_event_save_hist() local 339 hist = tracefs_event_file_read(instance->inst, tevent->system, tevent->event, "hist", 0); in trace_event_save_hist() 340 if (!hist) { in trace_event_save_hist() 347 index += write(out_fd, &hist[index], strlen(hist) - index); in trace_event_save_hist() 348 } while (index < strlen(hist)); in trace_event_save_hist() 350 free(hist); in trace_event_save_hist()
|
| /linux/include/trace/events/ |
| A D | napi.h | 43 unsigned long now, unsigned long *hist), 45 TP_ARGS(thrs, len, last_reap, hist_head, now, hist), 53 __array( unsigned long, hist, 4) 62 memcpy(__entry->hist, hist, sizeof(entry->hist)); 68 __entry->hist[0], __entry->hist[1], 69 __entry->hist[2], __entry->hist[3])
|
| /linux/tools/testing/selftests/ftrace/test.d/trigger/ |
| A D | trigger-multihist.tc | 17 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \ 19 grep child events/sched/sched_process_fork/hist > /dev/null || \ 22 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \ 31 grep test_hist events/sched/sched_process_fork/hist > /dev/null || \ 38 grep test_hist events/sched/sched_process_exit/hist > /dev/null || \ 41 diffs=`diff events/sched/sched_process_exit/hist events/sched/sched_process_fork/hist | wc -l`
|
| A D | trigger-hist.tc | 16 grep parent_pid events/sched/sched_process_fork/hist > /dev/null || \ 18 grep child events/sched/sched_process_fork/hist > /dev/null || \ 27 grep '^{ parent_pid:.*, child_pid:.*}' events/sched/sched_process_fork/hist > /dev/null || \ 37 grep "parent_comm: $COMM" events/sched/sched_process_fork/hist > /dev/null || \ 46 grep '{ call_site: \[[0-9a-f][0-9a-f]*\] [_a-zA-Z][_a-zA-Z]* *}' events/kmem/kmalloc/hist > /dev/nu… 55 …9a-f][0-9a-f]*\] [_a-zA-Z][_a-zA-Z]*+0x[0-9a-f][0-9a-f]*' events/kmem/kmalloc/hist > /dev/null || \ 73 events/sched/sched_process_fork/hist | cut -d: -f2 ` ||
|
| A D | trigger-hist-mod.tc | 17 grep "common_pid: $COMM" events/sched/sched_process_fork/hist > /dev/null || \ 28 grep "parent_pid: $HEX" events/sched/sched_process_fork/hist > /dev/null || \ 37 grep "id: \(unknown_\|sys_\)" events/raw_syscalls/sys_exit/hist > /dev/null || \ 47 grep 'bytes_req: ~ 2^[0-9]*' events/kmem/kmalloc/hist > /dev/null || \
|
| A D | trigger-trace-marker-synthetic-kernel.tc | 21 grep 'hitcount: *1$' events/ftrace/print/hist > /dev/null || \ 24 grep 'hitcount: *1$' events/synthetic/latency/hist > /dev/null || \
|
| A D | trigger-trace-marker-synthetic.tc | 21 cnt=`grep 'hitcount: *1$' events/ftrace/print/hist | wc -l` 27 grep 'hitcount: *1$' events/synthetic/latency/hist > /dev/null || \
|
| /linux/samples/bpf/ |
| A D | lathist_user.c | 37 struct cpu_hist *hist; in print_hist() local 44 hist = &cpu_hist[j]; in print_hist() 47 if (hist->max == 0) in print_hist() 53 stars(starstr, hist->data[i - 1], hist->max, MAX_STARS); in print_hist() 56 hist->data[i - 1], MAX_STARS, starstr); in print_hist()
|
| /linux/tools/perf/util/ |
| A D | bpf_ftrace.c | 126 u64 *hist; in perf_ftrace__latency_read_bpf() local 131 hist = calloc(ncpus, sizeof(*hist)); in perf_ftrace__latency_read_bpf() 132 if (hist == NULL) in perf_ftrace__latency_read_bpf() 136 err = bpf_map_lookup_elem(fd, &idx, hist); in perf_ftrace__latency_read_bpf() 143 buckets[idx] += hist[i]; in perf_ftrace__latency_read_bpf() 146 free(hist); in perf_ftrace__latency_read_bpf()
|
| /linux/Documentation/trace/ |
| A D | histogram.rst | 60 'hist' triggers add a 'hist' file to each event's subdirectory. 133 hist trigger. 215 6.2 'hist' trigger examples 547 the hist trigger display symbolic call_sites, we can have the hist 1149 the hist file:: 1611 2.2 Inter-event hist triggers 1614 Inter-event hist triggers are hist triggers that combine values from 2264 synthetic event's hist file:: 2294 # echo 'hist:keys=next_pid:\ 2451 hist trigger entry. [all …]
|
| A D | boottime-trace.rst | 132 action option, there are tree-style options under per-event 'hist' subkey 147 ftrace.[instance.INSTANCE.]event.GROUP.EVENT.hist.[N.]size = NR_ENTRIES 150 ftrace.[instance.INSTANCE.]event.GROUP.EVENT.hist.[N.]name = NAME 153 ftrace.[instance.INSTANCE.]event.GROUP.EVENT.hist.[N.]var.VARIABLE = EXPR 156 ftrace.[instance.INSTANCE.]event.GROUP.EVENT.hist.[N.]<pause|continue|clear> 169 ftrace.[instance.INSTANCE.]event.GROUP.EVENT.hist.[N.]onmax.[M.]var = VAR 185 ftrace.[instance.INSTANCE.]event.GROUP.EVENT.hist.filter = FILTER_EXPR 188 Note that this 'hist' option can conflict with the per-event 'actions' 225 hist { 231 initcall.initcall_start.hist { [all …]
|
| A D | histogram-design.rst | 28 of the hist trigger internals described in this document. Specific 38 # echo 'hist:keys=pid' >> events/sched/sched_waking/trigger 40 # cat events/sched/sched_waking/hist 357 Variables allow data from one hist trigger to be saved by one hist 364 # echo 'hist:keys=pid:ts0=common_timestamp.usecs' >> 696 When a hist trigger makes use of a variable, a new hist_field is 896 Next, the sched_waking hist trigger as before:: 898 # echo 'hist:keys=pid:ts0=common_timestamp.usecs' >> 1063 have a hist field entry representing that reference created. 1176 var.idx on the previous hist trigger (see the hist_data address [all …]
|
| /linux/Documentation/tools/rtla/ |
| A D | rtla-timerlat-hist.rst | 2 rtla-timerlat-hist 12 **rtla timerlat hist** [*OPTIONS*] ... 19 The **rtla timerlat hist** displays a histogram of each tracer event 36 In the example below, **rtla timerlat hist** is set to run for *10* minutes, 38 hist** will change the priority of the *timerlat* threads to run under 43 [root@alien ~]# timerlat hist -d 10m -c 0-4 -P d:100us:1ms -p 1000 --no-aa
|
| A D | rtla-timerlat.rst | 23 from the *timerlat* tracer. The **rtla hist hist** mode displays a histogram 33 **hist** 49 **rtla-timerlat-top**\(1), **rtla-timerlat-hist**\(1)
|
| A D | rtla-osnoise-hist.rst | 2 rtla-osnoise-hist 12 **rtla osnoise hist** [*OPTIONS*] 18 The **rtla osnoise hist** tool collects all **osnoise:sample_threshold** 39 [root@f34 ~/]# rtla osnoise hist -P F:1 -c 0-11 -r 900000 -d 1M -b 10 -E 25
|
| A D | rtla-osnoise.rst | 24 The **rtla osnoise hist** mode displays information about the noise using 34 **hist** 51 **rtla-osnoise-top**\(1), **rtla-osnoise-hist**\(1)
|
| /linux/tools/testing/selftests/ftrace/test.d/trigger/inter-event/ |
| A D | trigger-field-variable-support.tc | 19 if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then 23 if ! grep -q "synthetic_prio=prio" events/sched/sched_waking/hist; then 29 if grep -q "synthetic_prio=prio" events/sched/sched_waking/hist; then
|
| A D | trigger-onmatch-onmax-action-hist.tc | 26 …! grep -q "ping" events/synthetic/wakeup_latency/hist -o ! grep -q "max:" events/sched/sched_switc…
|
| /linux/tools/perf/util/bpf_skel/ |
| A D | func_latency.bpf.c | 96 __u64 *hist; in BPF_PROG() local 109 hist = bpf_map_lookup_elem(&latency, &key); in BPF_PROG() 110 if (!hist) in BPF_PROG() 113 *hist += 1; in BPF_PROG()
|
| /linux/kernel/events/ |
| A D | hw_breakpoint.c | 186 bp_slots_histogram_alloc(struct bp_slots_histogram *hist, enum bp_type_idx type) in bp_slots_histogram_alloc() argument 188 hist->count = kcalloc(hw_breakpoint_slots_cached(type), sizeof(*hist->count), GFP_KERNEL); in bp_slots_histogram_alloc() 189 return hist->count; in bp_slots_histogram_alloc() 192 static __init void bp_slots_histogram_free(struct bp_slots_histogram *hist) in bp_slots_histogram_free() argument 194 kfree(hist->count); in bp_slots_histogram_free() 237 bp_slots_histogram_add(struct bp_slots_histogram *hist, int old, int val) in bp_slots_histogram_add() argument 243 WARN_ON(atomic_dec_return_relaxed(&hist->count[old_idx]) < 0); in bp_slots_histogram_add() 245 WARN_ON(atomic_inc_return_relaxed(&hist->count[new_idx]) < 0); in bp_slots_histogram_add() 249 bp_slots_histogram_max(struct bp_slots_histogram *hist, enum bp_type_idx type) in bp_slots_histogram_max() argument 252 const int count = atomic_read(&hist->count[i]); in bp_slots_histogram_max() [all …]
|
| /linux/tools/testing/ktest/examples/bootconfigs/ |
| A D | boottrace.bconf | 13 hist { 19 initcall.initcall_start.hist { 23 initcall.initcall_finish.hist {
|
| /linux/arch/parisc/kernel/ |
| A D | irq.c | 216 int hist = action->cr16_hist[k]; in show_interrupts() local 218 if (hist) { in show_interrupts() 219 avg += hist; in show_interrupts() 223 if (hist > max) max = hist; in show_interrupts() 224 if (hist < min) min = hist; in show_interrupts()
|