Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147332
b: refs/heads/master
c: 0c593b3
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Apr 7, 2009
1 parent 82feeef commit fd3eb4f
Show file tree
Hide file tree
Showing 2 changed files with 33 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: 79f146415623fe74f39af67c0f6adc208939a410
refs/heads/master: 0c593b3411341e3a05a61f5527df36ab02bd11e8
32 changes: 32 additions & 0 deletions trunk/include/linux/perf_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,20 @@ struct perf_event_header {

enum perf_event_type {

/*
* The MMAP events record the PROT_EXEC mappings so that we can
* correlate userspace IPs to code. They have the following structure:
*
* struct {
* struct perf_event_header header;
*
* u32 pid, tid;
* u64 addr;
* u64 len;
* u64 pgoff;
* char filename[];
* };
*/
PERF_EVENT_MMAP = 1,
PERF_EVENT_MUNMAP = 2,

Expand All @@ -217,6 +231,24 @@ enum perf_event_type {
*
* These events will have types of the form:
* PERF_EVENT_COUNTER_OVERFLOW { | __PERF_EVENT_* } *
*
* struct {
* struct perf_event_header header;
*
* { u64 ip; } && __PERF_EVENT_IP
* { u32 pid, tid; } && __PERF_EVENT_TID
*
* { u64 nr;
* { u64 event, val; } cnt[nr]; } && __PERF_EVENT_GROUP
*
* { u16 nr,
* hv,
* kernel,
* user;
* u64 ips[nr]; } && __PERF_EVENT_CALLCHAIN
*
* { u64 time; } && __PERF_EVENT_TIME
* };
*/
PERF_EVENT_COUNTER_OVERFLOW = 1UL << 31,
__PERF_EVENT_IP = PERF_RECORD_IP,
Expand Down

0 comments on commit fd3eb4f

Please sign in to comment.