Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 257073
b: refs/heads/master
c: 26ca5c1
h: refs/heads/master
i:
  257071: b0adc86
v: v3
  • Loading branch information
Avi Kivity authored and Ingo Molnar committed Jul 1, 2011
1 parent e0b4f47 commit c0af5ee
Show file tree
Hide file tree
Showing 3 changed files with 8 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: 0af3ac1fdb9d5c297b4b07c9e0172531d42b6716
refs/heads/master: 26ca5c11fb45ae2b2ac7e3574b8db6b3a3c7d350
5 changes: 5 additions & 0 deletions trunk/include/linux/perf_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,7 @@ extern void perf_pmu_disable(struct pmu *pmu);
extern void perf_pmu_enable(struct pmu *pmu);
extern int perf_event_task_disable(void);
extern int perf_event_task_enable(void);
extern int perf_event_refresh(struct perf_event *event, int refresh);
extern void perf_event_update_userpage(struct perf_event *event);
extern int perf_event_release_kernel(struct perf_event *event);
extern struct perf_event *
Expand Down Expand Up @@ -1149,6 +1150,10 @@ static inline void perf_event_delayed_put(struct task_struct *task) { }
static inline void perf_event_print_debug(void) { }
static inline int perf_event_task_disable(void) { return -EINVAL; }
static inline int perf_event_task_enable(void) { return -EINVAL; }
static inline int perf_event_refresh(struct perf_event *event, int refresh)
{
return -EINVAL;
}

static inline void
perf_sw_event(u32 event_id, u64 nr, struct pt_regs *regs, u64 addr) { }
Expand Down
3 changes: 2 additions & 1 deletion trunk/kernel/events/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,7 @@ void perf_event_enable(struct perf_event *event)
raw_spin_unlock_irq(&ctx->lock);
}

static int perf_event_refresh(struct perf_event *event, int refresh)
int perf_event_refresh(struct perf_event *event, int refresh)
{
/*
* not supported on inherited events
Expand All @@ -1777,6 +1777,7 @@ static int perf_event_refresh(struct perf_event *event, int refresh)

return 0;
}
EXPORT_SYMBOL_GPL(perf_event_refresh);

static void ctx_sched_out(struct perf_event_context *ctx,
struct perf_cpu_context *cpuctx,
Expand Down

0 comments on commit c0af5ee

Please sign in to comment.