Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312322
b: refs/heads/master
c: 9bc8f9f
h: refs/heads/master
v: v3
  • Loading branch information
Robert Richter authored and Arnaldo Carvalho de Melo committed Jun 29, 2012
1 parent e3883ba commit b7dfe75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 287e74aa3db097469bdca401f33f00ef20dc710d
refs/heads/master: 9bc8f9fe2c6e3778202c76ef85ef291567c00cb8
3 changes: 2 additions & 1 deletion trunk/tools/perf/util/pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static int pmu_format(char *name, struct list_head *format)
"%s/bus/event_source/devices/%s/format", sysfs, name);

if (stat(path, &st) < 0)
return -1;
return 0; /* no error if format does not exist */

if (pmu_format_parse(path, format))
return -1;
Expand Down Expand Up @@ -252,6 +252,7 @@ static struct perf_pmu *pmu_lookup(char *name)
list_splice(&aliases, &pmu->aliases);
pmu->name = strdup(name);
pmu->type = type;
list_add_tail(&pmu->list, &pmus);
return pmu;
}

Expand Down

0 comments on commit b7dfe75

Please sign in to comment.