Lines Matching defs:value
19 static void __p_bits(char *buf, size_t size, u64 value, struct bit_names *bits)
25 if (value & bits[i].bit) {
32 static void __p_sample_type(char *buf, size_t size, u64 value)
47 __p_bits(buf, size, value, bits);
50 static void __p_branch_sample_type(char *buf, size_t size, u64 value)
64 __p_bits(buf, size, value, bits);
67 static void __p_read_format(char *buf, size_t size, u64 value)
76 __p_bits(buf, size, value, bits);
97 static const char *stringify_perf_hw_id(u64 value)
99 switch (value) {
115 static const char *stringify_perf_hw_cache_id(u64 value)
117 switch (value) {
130 static const char *stringify_perf_hw_cache_op_id(u64 value)
132 switch (value) {
141 static const char *stringify_perf_hw_cache_op_result_id(u64 value)
143 switch (value) {
151 static const char *stringify_perf_sw_id(u64 value)
153 switch (value) {
176 snprintf(buf, size, _f, value); \
178 snprintf(buf, size, _f" (%s)", value, __s); \
183 static void __p_type_id(struct perf_pmu *pmu, char *buf, size_t size, u64 value)
185 print_id_unsigned(stringify_perf_type_id(pmu, value));
188 static void __p_config_hw_id(char *buf, size_t size, u64 value)
190 print_id_hex(stringify_perf_hw_id(value));
193 static void __p_config_sw_id(char *buf, size_t size, u64 value)
195 print_id_hex(stringify_perf_sw_id(value));
198 static void __p_config_hw_cache_id(char *buf, size_t size, u64 value)
200 const char *hw_cache_str = stringify_perf_hw_cache_id(value & 0xff);
202 stringify_perf_hw_cache_op_id((value & 0xff00) >> 8);
204 stringify_perf_hw_cache_op_result_id((value & 0xff0000) >> 16);
208 snprintf(buf, size, "%#"PRIx64, value);
210 snprintf(buf, size, "%#"PRIx64" (%s | %s | %s)", value,
215 static void __p_config_tracepoint_id(char *buf, size_t size, u64 value)
217 char *str = tracepoint_id_to_name(value);
223 static void __p_config_id(struct perf_pmu *pmu, char *buf, size_t size, u32 type, u64 value)
225 const char *name = perf_pmu__name_from_config(pmu, value);
233 return __p_config_hw_id(buf, size, value);
235 return __p_config_sw_id(buf, size, value);
237 return __p_config_hw_cache_id(buf, size, value);
239 return __p_config_tracepoint_id(buf, size, value);
243 snprintf(buf, size, "%#"PRIx64, value);