/linux-master/arch/x86/events/ |
H A D | rapl.c | 3 * Support Intel/AMD RAPL energy consumption counters 12 * RAPL provides more controls than just reporting energy consumption 13 * however here we only expose the 3 energy consumption free running 70 * RAPL energy status counters 393 RAPL_EVENT_ATTR_STR(energy-cores, rapl_cores, "event=0x01"); 394 RAPL_EVENT_ATTR_STR(energy-pkg , rapl_pkg, "event=0x02"); 395 RAPL_EVENT_ATTR_STR(energy-ram , rapl_ram, "event=0x03"); 396 RAPL_EVENT_ATTR_STR(energy-gpu , rapl_gpu, "event=0x04"); 397 RAPL_EVENT_ATTR_STR(energy-psys, rapl_psys, "event=0x05"); 399 RAPL_EVENT_ATTR_STR(energy [all...] |
/linux-master/include/linux/power/ |
H A D | bq27xxx_battery.h | 57 int energy; member in struct:bq27xxx_reg_cache
|
/linux-master/tools/testing/selftests/amd-pstate/ |
H A D | gitsource.sh | 14 #8) Plot png images about time, energy and performance per watt for each test. 28 # $1: governor, $2: round, $3: des-perf, $4: freq, $5: load, $6: time $7: energy, $8: PPW 91 $PERF stat -a --per-socket -I 1000 -e power/energy-pkg/ /usr/bin/time -o $BACKUP_DIR/$OUTFILE_GIT.time-gitsource-$1-$2.log make test -j$MAKE_CPUS > $BACKUP_DIR/$OUTFILE_GIT-perf-$1-$2.log 2>&1 120 grep Joules $OUTFILE_GIT-perf-$1-$2.log | awk '{print $4}' > $OUTFILE_GIT-energy-$1-$2.log 121 en_sum=$(awk 'BEGIN {sum=0};{sum += $1};END {print sum}' $OUTFILE_GIT-energy-$1-$2.log) 125 # seconds. It is well known that P=E/t, where P is power measured in watts(W), E is energy measured in joules(J), 175 grep "Gitsource-$1-#" $OUTFILE_GIT.result | grep "power consumption(J):" | awk '{print $NF}' > $OUTFILE_GIT-energy-$1.log 176 en_sum=$(awk 'BEGIN {sum=0};{sum += $1};END {print sum}' $OUTFILE_GIT-energy-$1.log) 179 avg_en=$(awk 'BEGIN {sum=0};{sum += $1};END {print sum/'$LOOP_TIMES'}' $OUTFILE_GIT-energy-$1.log) 183 # seconds. It is well known that P=E/t, where P is power measured in watts(W), E is energy measure [all...] |
H A D | tbench.sh | 12 # 6) Plot png images about performance, energy and performance per watt for each test. 23 # $1: governor, $2: round, $3: des-perf, $4: freq, $5: load, $6: performance, $7: energy, $8: performance per watt 71 $PERF stat -a --per-socket -I 1000 -e power/energy-pkg/ tbench -t $TIME_LIMIT $PROCESS_NUM > $OUTFILE_TBENCH-perf-$1-$2.log 2>&1 102 grep Joules $OUTFILE_TBENCH-perf-$1-$2.log | awk '{print $4}' > $OUTFILE_TBENCH-energy-$1-$2.log 103 en_sum=$(awk 'BEGIN {sum=0};{sum += $1};END {print sum}' $OUTFILE_TBENCH-energy-$1-$2.log) 107 # It is well known that P=E/t, where P is power measured in watts(W), E is energy measured in joules(J), 157 grep "Tbench-$1-#" $OUTFILE_TBENCH.result | grep "power consumption(J):" | awk '{print $NF}' > $OUTFILE_TBENCH-energy-$1.log 158 en_sum=$(awk 'BEGIN {sum=0};{sum += $1};END {print sum}' $OUTFILE_TBENCH-energy-$1.log) 161 avg_en=$(awk 'BEGIN {sum=0};{sum += $1};END {print sum/'$LOOP_TIMES'}' $OUTFILE_TBENCH-energy-$1.log) 165 # It is well known that P=E/t, where P is power measured in watts(W), E is energy measure [all...] |
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_hwmon.c | 46 * struct xe_hwmon_energy_info - to accumulate energy 49 /** @reg_val_prev: previous energy reg val */ 51 /** @accum_energy: accumulated energy */ 67 /** @scl_shift_energy: pkg energy unit */ 222 * xe_hwmon_energy_get - Obtain energy value 224 * The underlying energy hardware register is 32-bits and is subject to 235 * minutes) by accumulating the energy register into a 'long' as allowed by 242 xe_hwmon_energy_get(struct xe_hwmon *hwmon, long *energy) argument 257 *energy = mul_u64_u32_shr(ei->accum_energy, SF_ENERGY, 411 HWMON_CHANNEL_INFO(energy, HWMON_E_INPU 711 long energy; local [all...] |
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_hwmon.c | 23 * - energy - microjoules 43 long accum_energy; /* Accumulated energy for energy1_input */ 106 * hwm_energy - Obtain energy value 108 * The underlying energy hardware register is 32-bits and is subject to 119 * minutes) by accumulating the energy register into a 'long' as allowed by 126 hwm_energy(struct hwm_drvdata *ddat, long *energy) argument 151 *energy = mul_u64_u32_shr(ei->accum_energy, SF_ENERGY, 277 HWMON_CHANNEL_INFO(energy, HWMON_E_INPUT), 283 HWMON_CHANNEL_INFO(energy, HWMON_E_INPUT), 730 long energy; local [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | rx.c | 119 IWL_DEBUG_STATS(mvm, "energy In A %d B %d , and max %d\n", 719 u8 *energy = _data; local 726 if (energy[sta_id]) 727 mvmsta->deflink.avg_energy = energy[sta_id]; 1077 u8 *energy; local 1165 energy = (void *)&v11->load_stats.avg_energy; 1171 energy = (void *)&stats->load_stats.avg_energy; 1176 energy);
|
/linux-master/drivers/hwmon/ |
H A D | ibmaem.c | 4 * temperature/power/energy sensors and capping functionality. 63 /* AEM 2.x has more energy registers */ 149 * Two energy meters 158 /* energy use in mJ */ 159 u64 energy[AEM_NUM_ENERGY_REGS]; member in struct:aem_data 426 /* Update AEM energy registers */ 430 &data->energy[which], 8); 839 before = data->energy[attr->index]; 851 after = data->energy[attr->index]; 860 /* Display energy us [all...] |
H A D | ltc4282.c | 544 u64 temp, energy; local 552 energy = be64_to_cpu(raw) >> 16; 554 * The formula for energy is given by: 565 if (check_mul_overflow(DECA * st->vfs_out * 40 * BIT(8), energy, &temp)) { 567 *val = DIV_ROUND_CLOSEST_ULL(temp * energy, st->rsense); 1111 u64 energy; local 1118 ret = ltc4282_read_energy(st, &energy); 1122 return sysfs_emit(buf, "%llu\n", energy); 1594 HWMON_CHANNEL_INFO(energy, 1611 /* energy attribute [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | scan.h | 1154 * @energy: energy 1163 u8 energy; member in struct:iwl_scan_offload_profile_match_v1 1198 * @energy: energy 1207 u8 energy; member in struct:iwl_scan_offload_profile_match
|
/linux-master/include/trace/events/ |
H A D | sched.h | 788 TP_PROTO(struct task_struct *p, int dst_cpu, unsigned long energy, 790 TP_ARGS(p, dst_cpu, energy, max_util, busy_time));
|
/linux-master/drivers/powercap/ |
H A D | intel_rapl_common.c | 300 static int get_max_energy_counter(struct powercap_zone *pcd_dev, u64 *energy) argument 304 *energy = rapl_unit_xlate(rd, ENERGY_UNIT, ENERGY_STATUS_MASK, 0); 802 * time, energy, and power. 914 * energy unit: picoJoules : Represented in picoJoules by default 940 pr_debug("Core CPU %s:%s energy=%dpJ, time=%dus, power=%duW\n", 968 pr_debug("Atom %s:%s energy=%dpJ, time=%dus, power=%duW\n", 1155 pr_debug("Core CPU %s:%s energy=%dpJ, time=%dus, power=%duW\n", 1411 * Get per domain energy/power/time unit.
|
/linux-master/drivers/power/supply/ |
H A D | bq27xxx_battery.c | 1059 [BQ27XXX_DM_DESIGN_ENERGY] = "design-energy", 1441 /* assume design energy & capacity are in same block */ 1488 dev_warn(di->dev, "missing battery:energy-full-design-microwatt-hours\n"); 1496 dev_err(di->dev, "invalid battery:energy-full-design-microwatt-hours %d\n", 1633 * Return the battery Available energy in ��Wh 1642 dev_dbg(di->dev, "error reading available energy\n"); 1865 cache.energy = bq27xxx_battery_read_energy(di); 2083 ret = bq27xxx_simple_value(di->cache.energy, val);
|
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
H A D | phy_int.h | 341 u16 energy; member in struct:aci_save_gphy
|
/linux-master/kernel/sched/ |
H A D | fair.c | 7775 * energy_env - Utilization landscape for energy estimation. 7818 * energy cost is removed (by cpu_util()) and must be calculated 7897 * compute_energy(): Use the Energy Model to estimate the energy that @pd would 7907 unsigned long energy; local 7912 energy = em_cpu_energy(pd->em_pd, max_util, busy_time, eenv->cpu_cap); 7914 trace_sched_compute_energy_tp(p, dst_cpu, energy, max_util, busy_time); 7916 return energy; 7920 * find_energy_efficient_cpu(): Find most energy-efficient target CPU for the 7924 * out which of the CPU candidates is the most energy-efficient. 7927 * all the most energy efficien [all...] |