Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147320
b: refs/heads/master
c: 3df70fd
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Apr 6, 2009
1 parent f08e718 commit fdbe519
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: c457810ab4a825161aec6ef71b581e1bc8febd1a
refs/heads/master: 3df70fd623bb109e0079e697c0276d220a4b7908
9 changes: 4 additions & 5 deletions trunk/Documentation/perf_counter/kerneltop.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ static void create_perfstat_counter(int counter)

memset(&hw_event, 0, sizeof(hw_event));
hw_event.config = event_id[counter];
hw_event.record_type = PERF_RECORD_SIMPLE;
hw_event.record_type = 0;
hw_event.nmi = 0;
if (scale)
hw_event.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED |
Expand Down Expand Up @@ -1277,8 +1277,8 @@ static void mmap_read(struct mmap_data *md)
old += size;

switch (event->header.type) {
case PERF_EVENT_OVERFLOW | __PERF_EVENT_IP:
case PERF_EVENT_OVERFLOW | __PERF_EVENT_IP | __PERF_EVENT_TID:
case PERF_EVENT_COUNTER_OVERFLOW | __PERF_EVENT_IP:
case PERF_EVENT_COUNTER_OVERFLOW | __PERF_EVENT_IP | __PERF_EVENT_TID:
process_event(event->ip.ip, md->counter);
break;

Expand Down Expand Up @@ -1337,9 +1337,8 @@ int main(int argc, char *argv[])
memset(&hw_event, 0, sizeof(hw_event));
hw_event.config = event_id[counter];
hw_event.irq_period = event_count[counter];
hw_event.record_type = PERF_RECORD_IRQ;
hw_event.record_type = PERF_RECORD_IP | PERF_RECORD_TID;
hw_event.nmi = nmi;
hw_event.include_tid = 1;
hw_event.mmap = use_mmap;
hw_event.munmap = use_munmap;

Expand Down

0 comments on commit fdbe519

Please sign in to comment.