/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | trigger_bench.c | 12 long hits = 0; variable 17 __sync_add_and_fetch(&hits, 1); 25 __sync_add_and_fetch(&hits, 1); 32 __sync_add_and_fetch(&hits, 1); 39 __sync_add_and_fetch(&hits, 1); 46 __sync_add_and_fetch(&hits, 1); 53 __sync_add_and_fetch(&hits, 1); 60 __sync_add_and_fetch(&hits, 1); 67 __sync_add_and_fetch(&hits, 1); 74 __sync_add_and_fetch(&hits, [all...] |
H A D | bpf_loop_bench.c | 11 long hits; variable 21 __sync_add_and_fetch(&hits, nr_loops);
|
H A D | strncmp_bench.c | 14 long hits = 0; variable 39 __sync_add_and_fetch(&hits, 1); 47 __sync_add_and_fetch(&hits, 1);
|
H A D | local_storage_rcu_tasks_trace_bench.c | 15 long hits; variable 38 __sync_add_and_fetch(&hits, 1);
|
H A D | local_storage_bench.c | 37 long hits; variable 99 __sync_add_and_fetch(&hits, lctx.loop_hits);
|
/linux-master/tools/testing/selftests/bpf/benchs/ |
H A D | bench_count.c | 8 struct counter hits; member in struct:count_global_ctx 16 atomic_inc(&ctx->hits.value); 25 res->hits = atomic_swap(&ctx->hits.value, 0); 31 struct counter *hits; member in struct:count_local_ctx 38 ctx->hits = calloc(env.producer_cnt, sizeof(*ctx->hits)); 39 if (!ctx->hits) 49 atomic_inc(&ctx->hits[idx].value); 60 res->hits [all...] |
H A D | bench_rename.c | 10 struct counter hits; member in struct:ctx 37 atomic_inc(&ctx.hits.value); 43 res->hits = atomic_swap(&ctx.hits.value, 0);
|
H A D | bench_bpf_loop.c | 67 res->hits = atomic_swap(&ctx.skel->bss->hits, 0);
|
H A D | bench_local_storage_create.c | 142 res->hits = atomic_swap(&skel->bss->create_cnts, 0); 208 creates_per_sec = res->hits / 1000.0 / (delta_ns / 1000000000.0); 209 kmallocs_per_create = (double)res->drops / res->hits; 225 creates_mean += res[i].hits / 1000.0 / (0.0 + res_cnt); 226 total_creates += res[i].hits; 232 creates_stddev += (creates_mean - res[i].hits / 1000.0) * 233 (creates_mean - res[i].hits / 1000.0) /
|
H A D | bench_htab_mem.c | 295 res->hits = atomic_swap(&ctx.skel->bss->op_cnt, 0) / env.producer_cnt; 303 loop = res->hits / 1000.0 / (delta_ns / 1000000000.0); 317 loop_mean += res[i].hits / 1000.0 / (0.0 + res_cnt); 322 loop_stddev += (loop_mean - res[i].hits / 1000.0) * 323 (loop_mean - res[i].hits / 1000.0) /
|
H A D | bench_strncmp.c | 133 res->hits = atomic_swap(&ctx.skel->bss->hits, 0);
|
H A D | run_common.sh | 21 function hits() function 23 echo "$*" | sed -E "s/.*hits\s+([0-9]+\.[0-9]+ �� [0-9]+\.[0-9]+M\/s).*/\1/" 46 echo -n "hits throughput: " 47 echo -n "$*" | sed -E "s/.* hits throughput\s+([0-9]+\.[0-9]+ �� [0-9]+\.[0-9]+\sM\sops\/s).*/\1/" 48 echo -n -e ", hits latency: " 49 echo -n "$*" | sed -E "s/.* hits latency\s+([0-9]+\.[0-9]+\sns\/op).*/\1/" 63 printf "%-20s %s (drops %s)\n" "$bench" "$(hits $summary)" "$(drops $summary)"
|
H A D | bench_trigger.c | 33 res->hits = atomic_swap(&base_hits.value, 0); 45 res->hits = atomic_swap(&ctx.skel->bss->hits, 0);
|
/linux-master/kernel/ |
H A D | profile.c | 36 u32 pc, hits; member in struct:profile_hit 142 * profile hits. read_profile() IPI's all cpus to request them 147 * profile hits required for the accuracy of reported profile hits 151 * and hold the number of pending hits to that profile buffer slot on 152 * a cpu in an entry. When the hashtable overflows, all pending hits 154 * atomic_add() and the hashtable emptied. As numerous pending hits 159 * positions to which hits are accounted during short intervals (e.g. 187 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[j]; local 189 if (!hits[ 210 struct profile_hit *hits = per_cpu(cpu_profile_hits, cpu)[i]; local 220 struct profile_hit *hits; local [all...] |
/linux-master/fs/ |
H A D | fs_struct.c | 69 int hits = 0; local 72 hits += replace_path(&fs->root, old_root, new_root); 73 hits += replace_path(&fs->pwd, old_root, new_root); 75 while (hits--) {
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | bench.c | 40 long total = res->false_hits + res->hits + res->drops; 45 printf("%ld false hits of %ld total operations. Percentage = %2.2f %%\n", 55 total_hits += res[i].hits; 61 printf("Summary: %ld false hits of %ld total operations. ", 72 hits_per_sec = res->hits / 1000000.0 / (delta_ns / 1000000000.0); 79 printf("hits %8.3lfM/s (%7.3lfM/prod), drops %8.3lfM/s, total operations %8.3lfM/s\n", 128 hits_mean += res[i].hits / 1000000.0 / (0.0 + res_cnt); 135 hits_stddev += (hits_mean - res[i].hits / 1000000.0) * 136 (hits_mean - res[i].hits / 1000000.0) / 141 total_ops = res[i].hits [all...] |
H A D | bench.h | 41 long hits; member in struct:bench_res
|
/linux-master/drivers/cpuidle/governors/ |
H A D | teo.c | 49 * Two metrics called "hits" and "intercepts" are associated with each bin. 53 * The "hits" metric reflects the relative frequency of situations in which the 74 * - The sum of the "hits" and "intercepts" metrics for the candidate state 173 * @hits: The "hits" metric. 178 unsigned int hits; member in struct:teo_bin 187 * @total: Grand total of the "intercepts" and "hits" metrics for all bins. 190 * @tick_hits: Number of "hits" after TICK_NSEC. 268 * Decay the "hits" and "intercepts" metrics for all of the bins and 275 bin->hits [all...] |
/linux-master/mm/ |
H A D | swap_state.c | 54 #define SWAP_RA_VAL(addr, win, hits) \ 57 ((hits) & SWAP_RA_HITS_MASK)) 59 /* Initial readahead hits is 4 to start up with a small window */ 368 int win, hits; local 372 hits = SWAP_RA_HITS(ra_val); 374 hits = min_t(int, hits + 1, SWAP_RA_HITS_MAX); 376 SWAP_RA_VAL(addr, win, hits)); 573 int hits, 584 pages = hits 571 __swapin_nr_pages(unsigned long prev_offset, unsigned long offset, int hits, int max_pages, int prev_win) argument 614 unsigned int hits, pages, max_pages; local 756 unsigned int max_win, hits, prev_win, win; local [all...] |
/linux-master/tools/power/cpupower/utils/idle_monitor/ |
H A D | cpupower-monitor.c | 223 int mon, hits = 0; local 241 tmp_mons[hits] = monitors[num]; 242 hits++; 246 if (hits == 0) { 254 avail_monitors = hits;
|
/linux-master/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_debugfs.c | 62 u32 hits = mvpp2_cls_flow_hits(entry->priv, entry->id); local 64 seq_printf(s, "%u\n", hits); 75 u32 hits = mvpp2_cls_lookup_hits(entry->priv, entry->flow); local 77 seq_printf(s, "%u\n", hits); 194 u32 hits; local 196 hits = mvpp2_cls_c2_hit_count(entry->priv, entry->id); 198 seq_printf(s, "%u\n", hits); 558 debugfs_create_file("hits", 0444, prs_entry_dir, entry, 602 debugfs_create_file("hits", 0444, c2_entry_dir, entry, 633 debugfs_create_file("hits", 044 [all...] |
/linux-master/include/linux/ |
H A D | lru_cache.h | 196 unsigned long hits, misses, starving, locked, changed; member in struct:lru_cache
|
/linux-master/lib/ |
H A D | lru_cache.c | 192 lc->hits = 0; 223 * (starving + hits + misses) 228 seq_printf(seq, "\t%s: used:%u/%u hits:%lu misses:%lu starving:%lu locked:%lu changed:%lu\n", 230 lc->hits, lc->misses, lc->starving, lc->locked, lc->changed); 377 ++lc->hits; 381 ++lc->hits;
|
/linux-master/drivers/acpi/acpica/ |
H A D | utcache.c | 237 ACPI_MEM_TRACKING(cache->hits++);
|
/linux-master/kernel/trace/ |
H A D | tracing_map.h | 199 atomic64_t hits; member in struct:tracing_map
|