Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191203
b: refs/heads/master
c: 46656ac
h: refs/heads/master
i:
  191201: f2fc10e
  191199: ac7e5f7
v: v3
  • Loading branch information
Tom Zanussi authored and Ingo Molnar committed Apr 14, 2010
1 parent b5fb297 commit 91115d9
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 529870e37473a9fc609078f03cc5b4148cf06a87
refs/heads/master: 46656ac7fb3252f8a3db29b18638e0e8067849ba
12 changes: 11 additions & 1 deletion trunk/tools/perf/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,22 @@ static struct perf_event_ops event_ops = {
.read = process_read_event,
};

extern volatile int session_done;

static void sig_handler(int sig __attribute__((__unused__)))
{
session_done = 1;
}

static int __cmd_report(void)
{
int ret = -EINVAL;
struct perf_session *session;
struct rb_node *next;
const char *help = "For a higher level overview, try: perf report --sort comm,dso";

signal(SIGINT, sig_handler);

session = perf_session__new(input_name, O_RDONLY, force);
if (session == NULL)
return -ENOMEM;
Expand Down Expand Up @@ -465,7 +474,8 @@ int cmd_report(int argc, const char **argv, const char *prefix __used)
{
argc = parse_options(argc, argv, options, report_usage, 0);

setup_browser();
if (strcmp(input_name, "-") != 0)
setup_browser();

if (symbol__init() < 0)
return -1;
Expand Down

0 comments on commit 91115d9

Please sign in to comment.