Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257078
b: refs/heads/master
c: fd8ea21
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker committed Jun 29, 2011
1 parent 8c21faf commit 2765a19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: e84d21227c6865fe1f3d0c79d1539b6877f54c84
refs/heads/master: fd8ea21276adefc7f0133bd42fcf3b2faf0b15f8
12 changes: 6 additions & 6 deletions trunk/tools/perf/util/sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,9 @@ int sort_dimension__add(const char *tok)
for (i = 0; i < ARRAY_SIZE(sort_dimensions); i++) {
struct sort_dimension *sd = &sort_dimensions[i];

if (sd->taken)
continue;

if (strncasecmp(tok, sd->name, strlen(tok)))
continue;

if (sd->entry->se_collapse)
sort__need_collapse = 1;

if (sd->entry == &sort_parent) {
int ret = regcomp(&parent_regex, parent_pattern, REG_EXTENDED);
if (ret) {
Expand All @@ -281,6 +275,12 @@ int sort_dimension__add(const char *tok)
sort__has_parent = 1;
}

if (sd->taken)
return 0;

if (sd->entry->se_collapse)
sort__need_collapse = 1;

if (list_empty(&hist_entry__sort_list)) {
if (!strcmp(sd->name, "pid"))
sort__first_dimension = SORT_PID;
Expand Down

0 comments on commit 2765a19

Please sign in to comment.