Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147623
b: refs/heads/master
c: ed966aa
h: refs/heads/master
i:
  147621: 4474f4c
  147619: b24cd35
  147615: dc50df1
v: v3
  • Loading branch information
Ingo Molnar committed Jun 3, 2009
1 parent 6ec94f4 commit 776327b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5352f35d6ae7b8b981d77137fb268bc54d10624f
refs/heads/master: ed966aac335a63083d3125198479447248637d9e
15 changes: 15 additions & 0 deletions trunk/Documentation/perf_counter/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,8 @@ static int __cmd_report(void)
event->ip.pid,
(void *)(long)ip);

dprintf(" ... thread: %s:%d\n", thread->comm, thread->pid);

if (thread == NULL) {
fprintf(stderr, "problem processing %d event, skipping it.\n",
event->header.type);
Expand All @@ -740,6 +742,8 @@ static int __cmd_report(void)

dso = kernel_dso;

dprintf(" ...... dso: %s\n", dso->name);

} else if (event->header.misc & PERF_EVENT_MISC_USER) {

show = SHOW_USER;
Expand All @@ -749,11 +753,22 @@ static int __cmd_report(void)
if (map != NULL) {
dso = map->dso;
ip -= map->start + map->pgoff;
} else {
/*
* If this is outside of all known maps,
* and is a negative address, try to look it
* up in the kernel dso, as it might be a
* vsyscall (which executes in user-mode):
*/
if ((long long)ip < 0)
dso = kernel_dso;
}
dprintf(" ...... dso: %s\n", dso ? dso->name : "<not found>");

} else {
show = SHOW_HV;
level = 'H';
dprintf(" ...... dso: [hypervisor]\n");
}

if (show & show_mask) {
Expand Down

0 comments on commit 776327b

Please sign in to comment.