diff options
Diffstat (limited to 'meta/packages/oprofile/oprofile/fix-arith.patch')
-rw-r--r-- | meta/packages/oprofile/oprofile/fix-arith.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/packages/oprofile/oprofile/fix-arith.patch b/meta/packages/oprofile/oprofile/fix-arith.patch new file mode 100644 index 0000000000..5c55f4b349 --- /dev/null +++ b/meta/packages/oprofile/oprofile/fix-arith.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | Index: utils/opcontrol | ||
2 | =================================================================== | ||
3 | RCS file: /cvsroot/oprofile/oprofile/utils/opcontrol,v | ||
4 | retrieving revision 1.148 | ||
5 | diff -u -r1.148 opcontrol | ||
6 | --- utils/opcontrol 8 Nov 2007 09:24:30 -0000 1.148 | ||
7 | +++ utils/opcontrol 27 Nov 2007 17:02:20 -0000 | ||
8 | @@ -395,7 +395,7 @@ | ||
9 | echo "SESSION_DIR=$SESSION_DIR" >>$SETUP_FILE | ||
10 | |||
11 | if test "$NR_CHOSEN" != "0"; then | ||
12 | - for f in `seq 0 $((NR_CHOSEN - 1))`; do | ||
13 | + for f in `seq 0 $(($NR_CHOSEN - 1))`; do | ||
14 | get_event $f | ||
15 | echo "CHOSEN_EVENTS_${f}=$GOTEVENT" >>$SETUP_FILE | ||
16 | done | ||
17 | @@ -590,7 +590,7 @@ | ||
18 | OPHELP_ARGS= | ||
19 | |||
20 | if test "$NR_CHOSEN" != 0; then | ||
21 | - for f in `seq 0 $((NR_CHOSEN - 1))`; do | ||
22 | + for f in `seq 0 $(($NR_CHOSEN - 1))`; do | ||
23 | get_event $f | ||
24 | if test "$GOTEVENT" != ""; then | ||
25 | OPHELP_ARGS="$OPHELP_ARGS $GOTEVENT" | ||
26 | @@ -612,7 +612,7 @@ | ||
27 | return | ||
28 | fi | ||
29 | |||
30 | - for f in `seq 0 $((NR_CHOSEN - 1))`; do | ||
31 | + for f in `seq 0 $(($NR_CHOSEN - 1))`; do | ||
32 | get_event $f | ||
33 | if test "$GOTEVENT" != ""; then | ||
34 | EVENT=`echo $GOTEVENT | awk -F: '{print $1}'` | ||
35 | @@ -1226,7 +1226,7 @@ | ||
36 | verify_counters | ||
37 | |||
38 | OPROFILED_EVENTS= | ||
39 | - for f in `seq 0 $((NR_CHOSEN - 1))`; do | ||
40 | + for f in `seq 0 $(($NR_CHOSEN - 1))`; do | ||
41 | get_event $f | ||
42 | if test "$GOTEVENT" != ""; then | ||
43 | EVENT=`echo $GOTEVENT | awk -F: '{print $1}'` | ||
44 | @@ -1383,7 +1383,7 @@ | ||
45 | fi | ||
46 | |||
47 | if test "$NR_CHOSEN" != "0"; then | ||
48 | - for f in `seq 0 $((NR_CHOSEN - 1))`; do | ||
49 | + for f in `seq 0 $(($NR_CHOSEN - 1))`; do | ||
50 | get_event $f | ||
51 | echo "Event $f: $GOTEVENT" | ||
52 | done | ||