Skip to content

Commit 74f40c1

Browse files
author
Ingo Molnar
committed
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Pull perf/urgent fixes from Arnaldo Carvalho de Melo: - Fix 'perf probe -a' segfault if passed with '' (Wang Nan) - Fix report -T/--threads option (Namhyung Kim) Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org>
2 parents 8cc67c3 + e59d29e commit 74f40c1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tools/perf/builtin-report.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ static int perf_evlist__tty_browse_hists(struct perf_evlist *evlist,
329329
fprintf(stdout, "\n\n");
330330
}
331331

332-
if (sort_order == default_sort_order &&
332+
if (sort_order == NULL &&
333333
parent_pattern == default_parent_pattern) {
334334
fprintf(stdout, "#\n# (%s)\n#\n", help);
335335

tools/perf/util/probe-event.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,8 @@ static int parse_perf_probe_point(char *arg, struct perf_probe_event *pev)
10841084
*
10851085
* TODO:Group name support
10861086
*/
1087+
if (!arg)
1088+
return -EINVAL;
10871089

10881090
ptr = strpbrk(arg, ";=@+%");
10891091
if (ptr && *ptr == '=') { /* Event name */

0 commit comments

Comments
 (0)