Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199101
b: refs/heads/master
c: 8a7ddad
h: refs/heads/master
i:
  199099: 03398ec
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed May 19, 2010
1 parent 6e98ead commit 9416ec1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: b448c4b613542c16ad66042017946e68da4e422b
refs/heads/master: 8a7ddad8e756a72906851fdd5a6e149cbb056e0d
10 changes: 7 additions & 3 deletions trunk/tools/perf/builtin-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ static int parse_probe_event(const char *str)
int ret;

pr_debug("probe-definition(%d): %s\n", params.nevents, str);
if (++params.nevents == MAX_PROBES)
die("Too many probes (> %d) are specified.", MAX_PROBES);
if (++params.nevents == MAX_PROBES) {
pr_err("Too many probes (> %d) were specified.", MAX_PROBES);
return -1;
}

/* Parse a perf-probe command into event */
ret = parse_perf_probe_command(str, pev);
Expand All @@ -84,7 +86,9 @@ static int parse_probe_event_argv(int argc, const char **argv)
len = 0;
for (i = 0; i < argc; i++)
len += strlen(argv[i]) + 1;
buf = xzalloc(len + 1);
buf = zalloc(len + 1);
if (buf == NULL)
return -ENOMEM;
len = 0;
for (i = 0; i < argc; i++)
len += sprintf(&buf[len], "%s ", argv[i]);
Expand Down

0 comments on commit 9416ec1

Please sign in to comment.