Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191212
b: refs/heads/master
c: 84b13fd
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Apr 15, 2010
1 parent 33a5cc5 commit db49d82
Show file tree
Hide file tree
Showing 7 changed files with 253 additions and 114 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: a0cccc2e8e9fb16cbed3a117b30e3fbac3092ee3
refs/heads/master: 84b13fd596522db47f9545d5124c30cc00dfdf5a
12 changes: 12 additions & 0 deletions trunk/include/linux/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,14 @@ enum perf_group_flag {
PERF_GROUP_SOFTWARE = 0x1,
};

#define SWEVENT_HLIST_BITS 8
#define SWEVENT_HLIST_SIZE (1 << SWEVENT_HLIST_BITS)

struct swevent_hlist {
struct hlist_head heads[SWEVENT_HLIST_SIZE];
struct rcu_head rcu_head;
};

/**
* struct perf_event - performance event kernel representation:
*/
Expand All @@ -597,6 +605,7 @@ struct perf_event {
struct list_head group_entry;
struct list_head event_entry;
struct list_head sibling_list;
struct hlist_node hlist_entry;
int nr_siblings;
int group_flags;
struct perf_event *group_leader;
Expand Down Expand Up @@ -744,6 +753,9 @@ struct perf_cpu_context {
int active_oncpu;
int max_pertask;
int exclusive;
struct swevent_hlist *swevent_hlist;
struct mutex hlist_mutex;
int hlist_refcount;

/*
* Recursion avoidance:
Expand Down
Loading

0 comments on commit db49d82

Please sign in to comment.