/linux-6.12.1/net/netfilter/ |
D | xt_limit.c | 34 `credit_cap'. The `peak rate' becomes the cost of passing the 35 test, `cost'. 39 discarded. Every time the match passes, you lose `cost' credits; 72 if ((READ_ONCE(priv->credit) < r->cost) && (READ_ONCE(priv->prev) == jiffies)) in limit_mt() 83 if (new_credit >= r->cost) { in limit_mt() 85 new_credit -= r->cost; in limit_mt() 128 if (r->cost == 0) { in limit_mt_check() 130 r->cost = user2credits(r->avg); in limit_mt_check() 150 u_int32_t credit_cap, cost; member 166 .cost = cm->cost, in limit_mt_compat_from_user() [all …]
|
D | nft_limit.c | 32 static inline bool nft_limit_eval(struct nft_limit_priv *priv, u64 cost) in nft_limit_eval() argument 44 delta = tokens - cost; in nft_limit_eval() 174 u64 cost; member 183 if (nft_limit_eval(&priv->limit, priv->cost)) in nft_limit_pkts_eval() 206 priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate); in nft_limit_pkts_init() 232 priv_dst->cost = priv_src->cost; in nft_limit_pkts_clone() 254 u64 cost = div64_u64(priv->nsecs * pkt->skb->len, priv->rate); in nft_limit_bytes_eval() local 256 if (nft_limit_eval(priv, cost)) in nft_limit_bytes_eval() 336 if (nft_limit_eval(&priv->limit, priv->cost)) in nft_limit_obj_pkts_eval() 351 priv->cost = div64_u64(priv->limit.nsecs, priv->limit.rate); in nft_limit_obj_pkts_init() [all …]
|
D | xt_hashlimit.c | 103 u_int64_t cost; member 443 `credit_cap'. The `peak rate' becomes the cost of passing the 444 test, `cost'. 448 discarded. Every time the match passes, you lose `cost' credits; 596 dh->rateinfo.cost = user2credits_byte(hinfo->cfg.avg); in rateinfo_init() 601 dh->rateinfo.cost = user2credits(hinfo->cfg.avg, revision); in rateinfo_init() 712 tmp = tmp * dh->rateinfo.cost; in hashlimit_byte_cost() 733 u64 cost; in hashlimit_mt_common() local 760 cost = (cfg->mode & XT_HASHLIMIT_BYTES) ? skb->len : 1; in hashlimit_mt_common() 761 dh->rateinfo.current_rate += cost; in hashlimit_mt_common() [all …]
|
/linux-6.12.1/include/linux/ |
D | energy_model.h | 20 * @cost: The cost coefficient associated with this level, used during 28 unsigned long cost; member 37 * but a lower or equal power cost. Such inefficient states are ignored when 140 * get_cost() - Provide the cost at the given performance state of 144 * @cost : The cost value for the performance state 147 * In case of CPUs, the cost is the one of a single CPU in the domain. 154 unsigned long *cost); 292 * as 'ps->cost'. in em_cpu_energy() 295 * share the same 'ps->cost', and the same CPU capacity. Hence, the in em_cpu_energy() 299 * pd_nrg = ps->cost * \Sum cpu_util (4) in em_cpu_energy() [all …]
|
/linux-6.12.1/block/ |
D | blk-iocost.c | 3 * IO cost model based controller. 10 * observable cost metric. This is distinguished from CPU and memory where 22 * While there is no cost metric we can trivially observe, it isn't a 23 * complete mystery. For example, on a rotational device, seek cost 30 * 1. IO Cost Model 32 * IO cost model estimates the cost of an IO given its basic parameters and 33 * history (e.g. the end sector of the last IO). The cost is measured in 34 * device time. If a given IO is estimated to cost 10ms, the device should 37 * Currently, there's only one builtin cost model - linear. Each IO is 38 * classified as sequential or random and given a base cost accordingly. [all …]
|
D | Kconfig | 155 bool "Enable support for cost model based cgroup IO controller" 159 Enabling this option enables the .weight interface for cost 179 is mostly useful for kernel developers, but it doesn't incur any cost
|
/linux-6.12.1/kernel/power/ |
D | energy_model.c | 64 DEFINE_EM_DBG_SHOW(cost, cost); 93 debugfs_create_file("cost", 0444, d, &em_dbg[i], in em_debug_create_ps() 248 /* Compute the cost of each performance state. */ in em_compute_costs() 250 unsigned long power_res, cost; in em_compute_costs() local 253 ret = cb->get_cost(dev, table[i].frequency, &cost); in em_compute_costs() 254 if (ret || !cost || cost > EM_MAX_POWER) { in em_compute_costs() 255 dev_err(dev, "EM: invalid cost %lu %d\n", in em_compute_costs() 256 cost, ret); in em_compute_costs() 260 /* increase resolution of 'cost' precision */ in em_compute_costs() 262 cost = power_res / table[i].performance; in em_compute_costs() [all …]
|
/linux-6.12.1/lib/zstd/compress/ |
D | zstd_compress_sequences.c | 67 * Returns the cost in bytes of encoding the normalized count header. 81 * Returns the cost in bits of encoding the distribution described by count 86 unsigned cost = 0; in ZSTD_entropyCost() local 95 cost += count[s] * kInverseProbabilityLog256[norm]; in ZSTD_entropyCost() 97 return cost >> 8; in ZSTD_entropyCost() 101 * Returns the cost in bits of encoding the distribution in count using ctable. 110 size_t cost = 0; in ZSTD_fseBitCost() local 129 cost += (size_t)count[s] * bitCost; in ZSTD_fseBitCost() 131 return cost >> kAccuracyLog; in ZSTD_fseBitCost() 135 * Returns the cost in bits of encoding the distribution in count using the [all …]
|
/linux-6.12.1/net/bridge/netfilter/ |
D | ebt_limit.c | 46 if (info->credit >= info->cost) { in ebt_limit_mt() 48 info->credit -= info->cost; in ebt_limit_mt() 85 info->cost = user2credits(info->avg); in ebt_limit_mt_check() 98 compat_uint_t credit, credit_cap, cost; member
|
/linux-6.12.1/Documentation/power/ |
D | energy-model.rst | 20 abstraction layer which standardizes the format of power cost tables in the 67 In case of CPU devices the EM framework manages power cost tables per 156 .get_cost() is optional and provides the 'cost' values used by the EAS. 161 The .get_cost() allows to provide the 'cost' values which reflect the 164 formulas calculating 'cost' values. To register an EM for such platform, the 259 There is dedicated API for device drivers to calculate em_perf_state::cost 265 These 'cost' values from EM are used in EAS. The new EM table should be passed 267 of the cost values is done properly the return value from the function is 0. 314 11 /* Estimate the power cost for the dev at the relevant freq. */ 383 28 /* Calculate 'cost' values for EAS */
|
/linux-6.12.1/fs/cramfs/ |
D | README | 147 The cost of swabbing is changing the code to use the le32_to_cpu 166 The cost of option 1 is that kernels with a larger PAGE_SIZE 169 The cost of option 2 relative to option 1 is that the code uses 181 cost is greater complexity. Probably not worth it, but I hope someone 186 Another cost of 2 and 3 over 1 is making mkcramfs use a different
|
/linux-6.12.1/Documentation/translations/zh_CN/mm/ |
D | overcommit-accounting.rst | 58 | SHARED or READ-only - 0 cost (该文件是映射而不是交换) 63 | PRIVATE READ-only - 0 cost (但作用不大)
|
/linux-6.12.1/drivers/iio/health/ |
D | Kconfig | 19 heart rate monitor and low-cost pulse oximeter. 32 heart rate monitor and low-cost pulse oximeter.
|
/linux-6.12.1/Documentation/scheduler/ |
D | sched-energy.rst | 83 Model (EM) framework. The EM of a platform is composed of a power cost table 161 The CPU capacity and power cost associated with each OPP is listed in 262 increase the cost of the tasks already running there. If the waking task is 263 placed on a big CPU, its own execution cost might be higher than if it was 266 consumed by CPUs, the extra cost of running that one task on a big core can be 267 smaller than the cost of raising the OPP on the little CPUs for all the other 271 for all platforms, without knowing the cost of running at different OPPs on all 346 energy. So, your platform must provide power cost tables to the EM framework in
|
/linux-6.12.1/tools/perf/pmu-events/arch/x86/tigerlake/ |
D | tgl-metrics.json | 415 …"BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative b… 420 …"PublicDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative … 472 …"BriefDescription": "Total pipeline cost of DSB (uop cache) hits - subset of the Instruction_Fetch… 477 …"PublicDescription": "Total pipeline cost of DSB (uop cache) hits - subset of the Instruction_Fetc… 480 …"BriefDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fet… 486 …"PublicDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fe… 489 …"BriefDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bott… 495 …"PublicDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bot… 498 …"BriefDescription": "Total pipeline cost of instruction fetch related bottlenecks by large code fo… 506 …"BriefDescription": "Total pipeline cost of instructions used for program control-flow - a subset … [all …]
|
/linux-6.12.1/tools/perf/pmu-events/arch/x86/skylake/ |
D | skl-metrics.json | 397 …"BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative b… 401 …"PublicDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative … 432 …"BriefDescription": "Total pipeline cost of DSB (uop cache) hits - subset of the Instruction_Fetch… 437 …"PublicDescription": "Total pipeline cost of DSB (uop cache) hits - subset of the Instruction_Fetc… 440 …"BriefDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fet… 446 …"PublicDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fe… 449 …"BriefDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bott… 454 …"PublicDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bot… 457 …"BriefDescription": "Total pipeline cost of instruction fetch related bottlenecks by large code fo… 465 …"BriefDescription": "Total pipeline cost of instructions used for program control-flow - a subset … [all …]
|
/linux-6.12.1/Documentation/arch/x86/ |
D | pti.rst | 66 this protection comes at a cost: 77 2. Runtime Cost 85 to work under PTI. This doesn't have a direct runtime cost but it can 100 deferred until the exit to userspace, minimizing the cost.
|
/linux-6.12.1/tools/perf/pmu-events/arch/x86/rocketlake/ |
D | rkl-metrics.json | 415 …"BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative b… 420 …"PublicDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative … 471 …"BriefDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fet… 478 …"BriefDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bott… 493 …"BriefDescription": "Total pipeline cost of DSB (uop cache) hits - subset of the Instruction_Fetch… 498 …"PublicDescription": "Total pipeline cost of DSB (uop cache) hits - subset of the Instruction_Fetc… 501 …"BriefDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fet… 507 …"PublicDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fe… 510 …"BriefDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bott… 516 …"PublicDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bot… [all …]
|
/linux-6.12.1/tools/perf/pmu-events/arch/x86/icelake/ |
D | icl-metrics.json | 415 …"BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative b… 420 …"PublicDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative … 471 …"BriefDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fet… 478 …"BriefDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bott… 493 …"BriefDescription": "Total pipeline cost of DSB (uop cache) hits - subset of the Instruction_Fetch… 498 …"PublicDescription": "Total pipeline cost of DSB (uop cache) hits - subset of the Instruction_Fetc… 501 …"BriefDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fet… 507 …"PublicDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fe… 510 …"BriefDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bott… 516 …"PublicDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bot… [all …]
|
/linux-6.12.1/Documentation/virt/ |
D | guest-halt-polling.rst | 13 cost of handling the IPI) when performing a wakeup. 15 2) The VM-exit cost can be avoided.
|
/linux-6.12.1/Documentation/mm/ |
D | overcommit-accounting.rst | 57 | SHARED or READ-only - 0 cost (the file is the map not swap) 62 | PRIVATE READ-only - 0 cost (but of little use)
|
/linux-6.12.1/lib/ |
D | Kconfig.kfence | 14 to have negligible cost to permit enabling it in production 24 enable KASAN due to its cost, consider using KFENCE.
|
/linux-6.12.1/drivers/cpufreq/ |
D | cppc_cpufreq.c | 377 /* Increase the cost value by CPPC_EM_COST_STEP every performance state. */ 379 /* Add a cost gap correspnding to the energy of 4 CPUs. */ 401 * The cost is defined as: 402 * cost = power * max_frequency / frequency 470 * With an artificial EM, only the cost value is used. Still the power in cppc_get_cpu_power() 480 unsigned long *cost) in cppc_get_cpu_cost() argument 498 *cost = compute_cost(cpu_dev->id, step); in cppc_get_cpu_cost()
|
/linux-6.12.1/Documentation/fb/ |
D | deferred_io.rst | 17 - app continues writing to that page with no additional cost. this is 26 writes to occur at minimum cost. Then after some time when hopefully things
|
/linux-6.12.1/tools/perf/pmu-events/arch/x86/cascadelakex/ |
D | clx-metrics.json | 645 …"BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative b… 649 …"PublicDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative … 680 …"BriefDescription": "Total pipeline cost of DSB (uop cache) hits - subset of the Instruction_Fetch… 685 …"PublicDescription": "Total pipeline cost of DSB (uop cache) hits - subset of the Instruction_Fetc… 688 …"BriefDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fet… 694 …"PublicDescription": "Total pipeline cost of DSB (uop cache) misses - subset of the Instruction_Fe… 697 …"BriefDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bott… 702 …"PublicDescription": "Total pipeline cost of Instruction Cache misses - subset of the Big_Code Bot… 705 …"BriefDescription": "Total pipeline cost of instruction fetch related bottlenecks by large code fo… 713 …"BriefDescription": "Total pipeline cost of instructions used for program control-flow - a subset … [all …]
|