Home
last modified time | relevance | path

Searched refs:expr (Results 1 – 25 of 43) sorted by relevance

12

/tools/perf/util/
Dexpr.y48 %type <num> expr if_expr
83 expr IF expr ELSE expr { $$ = $3 ? $1 : $5; }
84 | expr
87 expr: NUMBER
99 | expr '|' expr { $$ = (long)$1 | (long)$3; }
100 | expr '&' expr { $$ = (long)$1 & (long)$3; }
101 | expr '^' expr { $$ = (long)$1 ^ (long)$3; }
102 | expr '<' expr { $$ = $1 < $3; }
103 | expr '>' expr { $$ = $1 > $3; }
104 | expr '+' expr { $$ = $1 + $3; }
[all …]
Dexpr.c232 __expr__parse(double *val, struct expr_parse_ctx *ctx, const char *expr, in __expr__parse() argument
243 pr_debug2("parsing metric: %s\n", expr); in __expr__parse()
249 buffer = expr__scan_string(expr, scanner); in __expr__parse()
265 const char *expr, int runtime) in expr__parse() argument
267 return __expr__parse(final_val, ctx, expr, EXPR_PARSE, runtime) ? -1 : 0; in expr__parse()
270 int expr__find_other(const char *expr, const char *one, in expr__find_other() argument
273 int ret = __expr__parse(NULL, ctx, expr, EXPR_OTHER, runtime); in expr__find_other()
DBuild135 perf-y += expr-flex.o
136 perf-y += expr-bison.o
137 perf-y += expr.o
225 $(OUTPUT)util/expr-flex.c $(OUTPUT)util/expr-flex.h: util/expr.l $(OUTPUT)util/expr-bison.c
227 $(Q)$(call echo-cmd,flex)$(FLEX) -o $(OUTPUT)util/expr-flex.c \
228 --header-file=$(OUTPUT)util/expr-flex.h $(PARSER_DEBUG_FLEX) $<
230 $(OUTPUT)util/expr-bison.c $(OUTPUT)util/expr-bison.h: util/expr.y
233 -o $(OUTPUT)util/expr-bison.c -p expr_
245 FLEX_GE_26 := $(shell expr $(shell $(FLEX) --version | sed -e 's/flex \([0-9]\+\).\([0-9]\+\)/\1\2…
260 BISON_GE_35 := $(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([…
[all …]
Dstring.c222 char *expr = malloc(size); in asprintf_expr_inout_ints() local
224 if (expr) { in asprintf_expr_inout_ints()
226 char *e = expr; in asprintf_expr_inout_ints()
244 return expr; in asprintf_expr_inout_ints()
247 free(expr); in asprintf_expr_inout_ints()
Dexpr.h44 const char *expr, int runtime);
45 int expr__find_other(const char *expr, const char *one,
Dmetricgroup.c84 struct metric_expr *expr, *tmp; in metric_event_delete() local
86 list_for_each_entry_safe(expr, tmp, &me->head, nd) { in metric_event_delete()
87 free(expr->metric_refs); in metric_event_delete()
88 free(expr->metric_events); in metric_event_delete()
89 free(expr); in metric_event_delete()
309 struct metric_expr *expr; in metricgroup__setup_events() local
348 expr = malloc(sizeof(struct metric_expr)); in metricgroup__setup_events()
349 if (!expr) { in metricgroup__setup_events()
366 free(expr); in metricgroup__setup_events()
384 expr->metric_refs = metric_refs; in metricgroup__setup_events()
[all …]
/tools/debugging/
Dkernel-chktaint55 if [ `expr $T % 2` -eq 0 ]; then
62 T=`expr $T / 2`
63 if [ `expr $T % 2` -eq 0 ]; then
70 T=`expr $T / 2`
71 if [ `expr $T % 2` -eq 0 ]; then
78 T=`expr $T / 2`
79 if [ `expr $T % 2` -eq 0 ]; then
86 T=`expr $T / 2`
87 if [ `expr $T % 2` -eq 0 ]; then
94 T=`expr $T / 2`
[all …]
/tools/include/linux/
Dbuild_bug.h78 #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) argument
79 #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) argument
/tools/testing/selftests/powerpc/include/
Dbasic_asm.h8 #define LOAD_REG_IMMEDIATE(reg, expr) \ argument
9 lis reg, (expr)@highest; \
10 ori reg, reg, (expr)@higher; \
12 oris reg, reg, (expr)@high; \
13 ori reg, reg, (expr)@l;
/tools/memory-model/scripts/
Dcmplitmushist.sh26 perfect=`expr "$perfect" + 1`
37 obsline=`expr "$obsline" + 1`
42 noobsline=`expr "$noobsline" + 1`
51 obsresult=`expr "$obsresult" + 1`
55 badcompare=`expr "$badcompare" + 1`
/tools/pci/
Dpcitest.sh12 bar=`expr $bar + 1`
28 msi=`expr $msi + 1`
38 msix=`expr $msix + 1`
/tools/testing/selftests/ftrace/test.d/00basic/
Dringbuffer_size.tc9 expr $ORIG / 2 > buffer_size_kb
11 expr $ORIG \* 2 > buffer_size_kb
/tools/testing/selftests/ftrace/test.d/kprobe/
Dprobepoint.tc17 PREV=`expr $A1 - $A2` # offset to previous symbol
18 NEXT=+`expr $A3 - $A2` # offset to next symbol
/tools/testing/selftests/openat2/
Dhelpers.h89 #define E_assert(expr, msg, ...) \ argument
91 if (!(expr)) \
93 __FILE__, __LINE__, #expr, ##__VA_ARGS__); \
/tools/perf/tests/shell/
Dstat_bpf_counters.sh14 upper=$(expr $first_num + $first_num / 10 )
16 lower=$(expr $first_num - $first_num / 10 )
/tools/bootconfig/
Dtest-bootconfig.sh63 total_size=$(expr $bconf_size + $initrd_size + 9 + 12 + $ALIGN - 1 )
64 total_size=$(expr $total_size / $ALIGN)
65 total_size=$(expr $total_size \* $ALIGN)
/tools/perf/scripts/python/bin/
Dsyscall-counts-report5 if ! expr match "$1" "-" > /dev/null ; then
Dsyscall-counts-by-pid-report5 if ! expr match "$1" "-" > /dev/null ; then
Dfailed-syscalls-by-pid-report5 if ! expr match "$1" "-" > /dev/null ; then
Dsctop-report7 if expr match "$i" "-" > /dev/null ; then
Dexport-to-postgresql-report7 if expr match "$i" "-" > /dev/null ; then
/tools/perf/scripts/perl/bin/
Dfailed-syscalls-report5 if ! expr match "$1" "-" > /dev/null ; then
Drwtop-report7 if expr match "$i" "-" > /dev/null ; then
/tools/testing/selftests/powerpc/pmu/ebb/
Debb_handler.S72 #define LOAD_REG_IMMEDIATE(reg,expr) \ argument
73 lis reg,(expr)@highest; \
74 ori reg,reg,(expr)@higher; \
76 oris reg,reg,(expr)@h; \
77 ori reg,reg,(expr)@l;
/tools/testing/selftests/rcutorture/bin/
Dkvm-check-branches.sh65 ntry=`expr $ntry + 1`
88 nfail=`expr $nfail + 1`

12