Home
last modified time | relevance | path

Searched refs:var (Results 1 – 25 of 30) sorted by relevance

12

/tools/perf/util/
Dconfig.c218 static char var[MAXNAME]; in perf_parse_file() local
255 baselen = get_base_var(var); in perf_parse_file()
258 var[baselen++] = '.'; in perf_parse_file()
259 var[baselen] = 0; in perf_parse_file()
264 var[baselen] = tolower(c); in perf_parse_file()
271 if (get_value(fn, data, var, baselen+1) < 0) { in perf_parse_file()
379 static int perf_default_core_config(const char *var __maybe_unused, in perf_default_core_config()
386 static int perf_ui_config(const char *var, const char *value) in perf_ui_config() argument
389 if (!strcmp(var, "ui.show-headers")) { in perf_ui_config()
390 symbol_conf.show_hist_headers = perf_config_bool(var, value); in perf_ui_config()
[all …]
Ddebug.c23 static int _eprintf(int level, int var, const char *fmt, va_list args) in _eprintf() argument
27 if (var >= level) { in _eprintf()
37 int eprintf(int level, int var, const char *fmt, ...) in eprintf() argument
43 ret = _eprintf(level, var, fmt, args); in eprintf()
64 int eprintf_time(int level, int var, u64 t, const char *fmt, ...) in eprintf_time() argument
69 if (var >= level) { in eprintf_time()
153 struct debug_variable *var = &debug_variables[0]; in perf_debug_option() local
161 while (var->name) { in perf_debug_option()
162 if (!strcmp(s, var->name)) in perf_debug_option()
164 var++; in perf_debug_option()
[all …]
Dcolor.h30 int perf_color_default_config(const char *var, const char *value, void *cb);
32 int perf_config_colorbool(const char *var, const char *value, int stdout_is_tty);
33 void color_parse(const char *value, const char *var, char *dst);
34 void color_parse_mem(const char *value, int len, const char *var, char *dst);
Dparse-options.h199 #define OPT__VERBOSE(var) OPT_BOOLEAN('v', "verbose", (var), "be verbose") argument
200 #define OPT__QUIET(var) OPT_BOOLEAN('q', "quiet", (var), "be quiet") argument
201 #define OPT__VERBOSITY(var) \ argument
202 { OPTION_CALLBACK, 'v', "verbose", (var), NULL, "be more verbose", \
204 { OPTION_CALLBACK, 'q', "quiet", (var), NULL, "be more quiet", \
206 #define OPT__DRY_RUN(var) OPT_BOOLEAN('n', "dry-run", (var), "dry run") argument
207 #define OPT__ABBREV(var) \ argument
208 { OPTION_CALLBACK, 0, "abbrev", (var), "n", \
Ddebug.h34 #define pr_time_N(n, var, t, fmt, ...) \ argument
35 eprintf_time(n, var, t, fmt, ##__VA_ARGS__)
50 int eprintf(int level, int var, const char *fmt, ...) __attribute__((format(printf, 3, 4)));
51 int eprintf_time(int level, int var, u64 t, const char *fmt, ...) __attribute__((format(printf, 4, …
Dcolor.c44 void color_parse(const char *value, const char *var, char *dst) in color_parse() argument
46 color_parse_mem(value, strlen(value), var, dst); in color_parse()
49 void color_parse_mem(const char *value, int value_len, const char *var, in color_parse_mem() argument
131 die("bad color value '%.*s' for variable '%s'", value_len, value, var); in color_parse_mem()
134 int perf_config_colorbool(const char *var, const char *value, int stdout_is_tty) in perf_config_colorbool() argument
146 if (!perf_config_bool(var, value)) in perf_config_colorbool()
161 int perf_color_default_config(const char *var, const char *value, void *cb) in perf_color_default_config() argument
163 if (!strcmp(var, "color.ui")) { in perf_color_default_config()
164 perf_use_color_default = perf_config_colorbool(var, value, -1); in perf_color_default_config()
168 return perf_default_config(var, value, cb); in perf_color_default_config()
Dhelp.c238 static int perf_unknown_cmd_config(const char *var, const char *value, void *cb) in perf_unknown_cmd_config() argument
240 if (!strcmp(var, "help.autocorrect")) in perf_unknown_cmd_config()
241 autocorrect = perf_config_int(var,value); in perf_unknown_cmd_config()
243 if (!prefixcmp(var, "alias.")) in perf_unknown_cmd_config()
244 add_cmdname(&aliases, var + 6, strlen(var + 6)); in perf_unknown_cmd_config()
246 return perf_default_config(var, value, cb); in perf_unknown_cmd_config()
Dcallchain.c201 int perf_callchain_config(const char *var, const char *value) in perf_callchain_config() argument
205 if (prefixcmp(var, "call-graph.")) in perf_callchain_config()
207 var += sizeof("call-graph.") - 1; in perf_callchain_config()
209 if (!strcmp(var, "record-mode")) in perf_callchain_config()
212 if (!strcmp(var, "dump-size")) { in perf_callchain_config()
222 if (!strcmp(var, "print-type")) in perf_callchain_config()
224 if (!strcmp(var, "order")) in perf_callchain_config()
226 if (!strcmp(var, "sort-key")) in perf_callchain_config()
228 if (!strcmp(var, "threshold")) { in perf_callchain_config()
233 if (!strcmp(var, "print-limit")) { in perf_callchain_config()
Dprobe-finder.c516 " Perhaps, it has been optimized out.\n", pf->pvar->var); in convert_variable()
520 ret = convert_variable_fields(vr_die, pf->pvar->var, in convert_variable()
538 if (!is_c_varname(pf->pvar->var)) { in find_variable()
540 pf->tvar->value = strdup(pf->pvar->var); in find_variable()
571 pr_debug("Searching '%s' variable in context.\n", pf->pvar->var); in find_variable()
573 if (!die_find_variable_at(sc_die, pf->pvar->var, pf->addr, &vr_die)) { in find_variable()
575 if (!die_find_variable_at(&pf->cu_die, pf->pvar->var, 0, &vr_die)) in find_variable()
577 pf->pvar->var); in find_variable()
1079 vf->args[vf->nargs].var = (char *)dwarf_diename(die_mem); in copy_variables_cb()
1080 if (vf->args[vf->nargs].var == NULL) { in copy_variables_cb()
[all …]
Dprobe-event.c723 const char *var; in show_available_vars_at() local
755 var = strchr(node->s, '\t') + 1; in show_available_vars_at()
756 if (strfilter__compare(_filter, var)) { in show_available_vars_at()
1149 arg->var = strdup(str); in parse_perf_probe_arg()
1150 if (arg->var == NULL) in parse_perf_probe_arg()
1152 pr_debug("%s\n", arg->var); in parse_perf_probe_arg()
1157 arg->var = strndup(str, tmp - str); in parse_perf_probe_arg()
1158 if (arg->var == NULL) in parse_perf_probe_arg()
1160 goodname = arg->var; in parse_perf_probe_arg()
1161 pr_debug("%s, ", arg->var); in parse_perf_probe_arg()
[all …]
Dprobe-event.h65 char *var; /* Variable name */ member
Dcallchain.h175 int perf_callchain_config(const char *var, const char *value);
/tools/perf/
Dbuiltin-help.c232 static int add_man_viewer_info(const char *var, const char *value) in add_man_viewer_info() argument
234 const char *name = var + 4; in add_man_viewer_info()
242 return config_error_nonbool(var); in add_man_viewer_info()
247 return config_error_nonbool(var); in add_man_viewer_info()
255 static int perf_help_config(const char *var, const char *value, void *cb) in perf_help_config() argument
259 if (!strcmp(var, "help.format")) { in perf_help_config()
261 return config_error_nonbool(var); in perf_help_config()
267 if (!strcmp(var, "man.viewer")) { in perf_help_config()
269 return config_error_nonbool(var); in perf_help_config()
273 if (!prefixcmp(var, "man.")) in perf_help_config()
[all …]
Dperf.c72 static int pager_command_config(const char *var, const char *value, void *data) in pager_command_config() argument
75 if (!prefixcmp(var, "pager.") && !strcmp(var + 6, c->cmd)) in pager_command_config()
76 c->val = perf_config_bool(var, value); in pager_command_config()
90 static int browser_command_config(const char *var, const char *value, void *data) in browser_command_config() argument
93 if (!prefixcmp(var, "tui.") && !strcmp(var + 4, c->cmd)) in browser_command_config()
94 c->val = perf_config_bool(var, value); in browser_command_config()
95 if (!prefixcmp(var, "gtk.") && !strcmp(var + 4, c->cmd)) in browser_command_config()
96 c->val = perf_config_bool(var, value) ? 2 : 0; in browser_command_config()
Dbuiltin-report.c65 static int report__config(const char *var, const char *value, void *cb) in report__config() argument
69 if (!strcmp(var, "report.group")) { in report__config()
70 symbol_conf.event_group = perf_config_bool(var, value); in report__config()
73 if (!strcmp(var, "report.percent-limit")) { in report__config()
77 if (!strcmp(var, "report.children")) { in report__config()
78 symbol_conf.cumulate_callchain = perf_config_bool(var, value); in report__config()
81 if (!strcmp(var, "report.queue-size")) { in report__config()
82 rep->queue_size = perf_config_u64(var, value); in report__config()
86 return perf_default_config(var, value, cb); in report__config()
Dbuiltin-record.c675 static int perf_record_config(const char *var, const char *value, void *cb) in perf_record_config() argument
677 if (!strcmp(var, "record.call-graph")) in perf_record_config()
678 var = "call-graph.record-mode"; /* fall-through */ in perf_record_config()
680 return perf_default_config(var, value, cb); in perf_record_config()
Dbuiltin-top.c1026 static int perf_top_config(const char *var, const char *value, void *cb) in perf_top_config() argument
1028 if (!strcmp(var, "top.call-graph")) in perf_top_config()
1029 var = "call-graph.record-mode"; /* fall-through */ in perf_top_config()
1030 if (!strcmp(var, "top.children")) { in perf_top_config()
1031 symbol_conf.cumulate_callchain = perf_config_bool(var, value); in perf_top_config()
1035 return perf_default_config(var, value, cb); in perf_top_config()
/tools/perf/scripts/perl/Perf-Trace-Util/
DContext.c38 # define PERL_UNUSED_VAR(var) if (0) var = var argument
/tools/testing/ktest/examples/
Dsnowball.conf20 TFTPBOOT := /var/lib/tftpboot
52 TARGET_IMAGE = /var/lib/tftpboot/snowball-image
/tools/power/cpupower/bench/
Dexample.cfg5 output = /var/log/cpufreq-bench
Dcpufreq-bench_script.sh61 …cpufreq-bench -o /var/log/cpufreq-bench/up_threshold_${up_threshold}_sampling_rate_${sampling_rate}
/tools/testing/ktest/
Dktest.pl621 my $var = $2;
625 if (defined($variable{$var})) {
626 $retval = "$retval$variable{$var}";
633 $retval = "$retval\$\{$var\}";
637 $used_options{$var} = 1;
1163 my $var = $2;
1172 my $o = "$var\[$i\]";
1173 my $parento = "$var\[$parent\]";
1176 if (($var eq $name) && defined($opt{$var})) {
1177 $o = $opt{$var};
[all …]
/tools/perf/Documentation/
Dperf-probe.txt139var->field, var.field2), local array with fixed index (e.g. array[1], var->array[0], var->pointer[…
/tools/thermal/tmon/
DREADME43 -l, --log log data to /var/tmp/tmon.log
/tools/perf/ui/
Dbrowser.c528 static int ui_browser__color_config(const char *var, const char *value, in ui_browser__color_config() argument
535 if (prefixcmp(var, "colors.") != 0) in ui_browser__color_config()
539 const char *name = var + 7; in ui_browser__color_config()

12