/openbmc/linux/drivers/media/platform/ti/omap3isp/ |
H A D | isphist.c | 30 static void hist_reset_mem(struct ispstat *hist) in hist_reset_mem() argument 32 struct isp_device *isp = hist->isp; in hist_reset_mem() 33 struct omap3isp_hist_config *conf = hist->priv; in hist_reset_mem() 56 hist->wait_acc_frames = conf->num_acc_frames; in hist_reset_mem() 62 static void hist_setup_regs(struct ispstat *hist, void *priv) in hist_setup_regs() argument 64 struct isp_device *isp = hist->isp; in hist_setup_regs() 72 if (!hist->update || hist->state == ISPSTAT_DISABLED || in hist_setup_regs() 73 hist->state == ISPSTAT_DISABLING) in hist_setup_regs() 121 hist_reset_mem(hist); in hist_setup_regs() 134 hist->update = 0; in hist_setup_regs() [all …]
|
/openbmc/linux/tools/tracing/rtla/src/ |
H A D | timerlat_hist.c | 79 struct timerlat_hist_cpu *hist; member 95 if (data->hist[cpu].irq) in timerlat_free_histogram() 96 free(data->hist[cpu].irq); in timerlat_free_histogram() 98 if (data->hist[cpu].thread) in timerlat_free_histogram() 99 free(data->hist[cpu].thread); in timerlat_free_histogram() 101 if (data->hist[cpu].user) in timerlat_free_histogram() 102 free(data->hist[cpu].user); in timerlat_free_histogram() 107 if (data->hist) in timerlat_free_histogram() 108 free(data->hist); in timerlat_free_histogram() 131 data->hist = calloc(1, sizeof(*data->hist) * nr_cpus); in timerlat_alloc_histogram() [all …]
|
H A D | osnoise_hist.c | 60 struct osnoise_hist_cpu *hist; member 76 if (data->hist[cpu].samples) in osnoise_free_histogram() 77 free(data->hist[cpu].samples); in osnoise_free_histogram() 81 if (data->hist) in osnoise_free_histogram() 82 free(data->hist); in osnoise_free_histogram() 104 data->hist = calloc(1, sizeof(*data->hist) * nr_cpus); in osnoise_alloc_histogram() 105 if (!data->hist) in osnoise_alloc_histogram() 109 data->hist[cpu].samples = calloc(1, sizeof(*data->hist->samples) * (entries + 1)); in osnoise_alloc_histogram() 110 if (!data->hist[cpu].samples) in osnoise_alloc_histogram() 116 data->hist[cpu].min_sample = ~0; in osnoise_alloc_histogram() [all …]
|
H A D | trace.c | 323 char *hist; in trace_event_save_hist() local 347 hist = tracefs_event_file_read(instance->inst, tevent->system, tevent->event, "hist", 0); in trace_event_save_hist() 348 if (!hist) { in trace_event_save_hist() 355 index += write(out_fd, &hist[index], strlen(hist) - index); in trace_event_save_hist() 356 } while (index < strlen(hist)); in trace_event_save_hist() 358 free(hist); in trace_event_save_hist()
|
/openbmc/qemu/block/ |
H A D | accounting.c | 130 static void block_latency_histogram_account(BlockLatencyHistogram *hist, in block_latency_histogram_account() argument 135 if (hist->bins == NULL) { in block_latency_histogram_account() 141 if (latency_ns < hist->boundaries[0]) { in block_latency_histogram_account() 142 hist->bins[0]++; in block_latency_histogram_account() 146 if (latency_ns >= hist->boundaries[hist->nbins - 2]) { in block_latency_histogram_account() 147 hist->bins[hist->nbins - 1]++; in block_latency_histogram_account() 151 pos = bsearch(&latency_ns, hist->boundaries, hist->nbins - 2, in block_latency_histogram_account() 152 sizeof(hist->boundaries[0]), in block_latency_histogram_account() 156 hist->bins[pos - hist->boundaries + 1]++; in block_latency_histogram_account() 162 BlockLatencyHistogram *hist = &stats->latency_histogram[type]; in block_latency_histogram_set() local [all …]
|
/openbmc/linux/tools/testing/selftests/ftrace/test.d/trigger/ |
H 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`
|
H 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 ` ||
|
H 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 || \
|
H 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 || \
|
/openbmc/qemu/tests/tcg/hexagon/ |
H A D | hvx_histogram.c | 51 int *hist) in ref_histogram() argument 54 hist[i] = 0; in ref_histogram() 59 hist[src[i * stride + j]]++; in ref_histogram() 65 int *hist) in hvx_histogram() argument 70 hist[i] = 0; in hvx_histogram() 75 hvx_histogram_row(src, stride, width, k, hist); in hvx_histogram()
|
/openbmc/linux/samples/bpf/ |
H 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()
|
/openbmc/linux/Documentation/trace/ |
H A D | histogram.rst | 24 The format of a hist trigger is as follows:: 26 hist:keys=<field1[,field2,...]>[:values=<field1[,field2,...]>] 50 key. If a hist trigger is given a name using the 'name' parameter, 60 'hist' triggers add a 'hist' file to each event's subdirectory. 61 Reading the 'hist' file for the event will dump the hash table in 62 its entirety to stdout. If there are multiple hist triggers 102 A typical usage scenario would be the following to enable a hist 105 # echo 'hist:keys=skbaddr.hex:vals=len' > \ 108 # cat /sys/kernel/tracing/events/net/netif_rx/hist 110 # echo '!hist:keys=skbaddr.hex:vals=len' > \ [all …]
|
H A D | boottime-trace.rst | 132 action option, there are tree-style options under per-event 'hist' subkey 136 ftrace.[instance.INSTANCE.]event.GROUP.EVENT.hist.[N.]keys = KEY1[, KEY2[...]] 141 ftrace.[instance.INSTANCE.]event.GROUP.EVENT.hist.[N.]values = VAL1[, VAL2[...]] 144 ftrace.[instance.INSTANCE.]event.GROUP.EVENT.hist.[N.]sort = SORT1[, SORT2[...]] 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> 159 ftrace.[instance.INSTANCE.]event.GROUP.EVENT.hist.[N.]onmatch.[M.]event = GROUP.EVENT 164 ftrace.[instance.INSTANCE.]event.GROUP.EVENT.hist.[N.]onmatch.[M.]trace = EVENT[, ARG1[...]] [all …]
|
H 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 238 Whenever a new event occurs and it has a hist trigger associated with 279 …# echo 'hist:keys=common_pid,call_site.sym:values=bytes_req,bytes_alloc,hitcount' >> events/kmem/k… 298 …# trigger info: hist:keys=common_pid,call_site.sym:vals=hitcount,bytes_req,bytes_alloc:sort=hitcou… 352 …# echo '!hist:keys=common_pid,call_site.sym:values=bytes_req,bytes_alloc,hitcount' >> events/kmem/… 357 Variables allow data from one hist trigger to be saved by one hist 358 trigger and retrieved by another hist trigger. For example, a trigger 364 # echo 'hist:keys=pid:ts0=common_timestamp.usecs' >> [all …]
|
/openbmc/linux/tools/perf/util/ |
H 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()
|
/openbmc/linux/Documentation/tools/rtla/ |
H 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
|
H 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)
|
H 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
|
/openbmc/linux/tools/testing/selftests/ftrace/test.d/trigger/inter-event/ |
H 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
|
/openbmc/linux/tools/perf/util/bpf_skel/ |
H A D | func_latency.bpf.c | 95 __u64 *hist; in BPF_PROG() local 108 hist = bpf_map_lookup_elem(&latency, &key); in BPF_PROG() 109 if (!hist) in BPF_PROG() 112 *hist += 1; in BPF_PROG()
|
/openbmc/linux/kernel/events/ |
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/ti/icssg/ |
H A D | icssg_ethtool.c | 179 rmon_stats->hist[0] = emac_get_stat_by_name(emac, "rx_bucket1_frames"); in emac_get_rmon_stats() 180 rmon_stats->hist[1] = emac_get_stat_by_name(emac, "rx_bucket2_frames"); in emac_get_rmon_stats() 181 rmon_stats->hist[2] = emac_get_stat_by_name(emac, "rx_bucket3_frames"); in emac_get_rmon_stats() 182 rmon_stats->hist[3] = emac_get_stat_by_name(emac, "rx_bucket4_frames"); in emac_get_rmon_stats() 183 rmon_stats->hist[4] = emac_get_stat_by_name(emac, "rx_bucket5_frames"); in emac_get_rmon_stats()
|
/openbmc/linux/tools/testing/ktest/examples/bootconfigs/ |
H A D | boottrace.bconf | 13 hist { 19 initcall.initcall_start.hist { 23 initcall.initcall_finish.hist {
|
/openbmc/linux/lib/zlib_dfltcc/ |
H A D | dfltcc_util.h | 33 void *hist in dfltcc() argument 58 , [hist] "r" (hist) in dfltcc()
|
/openbmc/linux/arch/parisc/kernel/ |
H 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()
|