Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147691
b: refs/heads/master
c: 8953645
h: refs/heads/master
i:
  147689: 85d3d62
  147687: 1aa5ea5
v: v3
  • Loading branch information
Ingo Molnar committed Jun 6, 2009
1 parent 3505ee3 commit 6df842f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d37a0cbd68c875fa984fa97bcf5c7f4b7950b6d
refs/heads/master: 8953645fec933f992223286ad407dc371ac2caa5
8 changes: 4 additions & 4 deletions trunk/tools/perf/util/parse-events.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ static int parse_aliases(const char *str, char *names[][MAX_ALIASES], int size)
}
}

return 0;
return -1;
}

static int parse_generic_hw_symbols(const char *str, struct perf_counter_attr *attr)
{
__u8 cache_type = -1, cache_op = 0, cache_result = 0;
int cache_type = -1, cache_op = 0, cache_result = 0;

cache_type = parse_aliases(str, hw_cache, PERF_COUNT_HW_CACHE_MAX);
/*
Expand All @@ -179,8 +179,8 @@ static int parse_generic_hw_symbols(const char *str, struct perf_counter_attr *a
/*
* Fall back to reads:
*/
if (cache_type == -1)
cache_type = PERF_COUNT_HW_CACHE_OP_READ;
if (cache_op == -1)
cache_op = PERF_COUNT_HW_CACHE_OP_READ;

cache_result = parse_aliases(str, hw_cache_result,
PERF_COUNT_HW_CACHE_RESULT_MAX);
Expand Down

0 comments on commit 6df842f

Please sign in to comment.