Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147324
b: refs/heads/master
c: 9c03d88
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Apr 7, 2009
1 parent 230a3c3 commit eb37694
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 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: a2e87d06ddbe6e6fdb8d6d2e5e985efe4efb07dd
refs/heads/master: 9c03d88e328d5f28f13191622c2ea1349c36b799
4 changes: 2 additions & 2 deletions trunk/include/linux/perf_counter.h
Original file line number Diff line number Diff line change
Expand Up @@ -507,10 +507,10 @@ extern void perf_counter_mmap(unsigned long addr, unsigned long len,
extern void perf_counter_munmap(unsigned long addr, unsigned long len,
unsigned long pgoff, struct file *file);

#define MAX_STACK_DEPTH 254
#define MAX_STACK_DEPTH 255

struct perf_callchain_entry {
u32 nr, hv, kernel, user;
u16 nr, hv, kernel, user;
u64 ip[MAX_STACK_DEPTH];
};

Expand Down
6 changes: 2 additions & 4 deletions trunk/kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1657,9 +1657,7 @@ void perf_counter_do_pending(void)
* Callchain support -- arch specific
*/

struct perf_callchain_entry *
__attribute__((weak))
perf_callchain(struct pt_regs *regs)
__weak struct perf_callchain_entry *perf_callchain(struct pt_regs *regs)
{
return NULL;
}
Expand Down Expand Up @@ -1819,7 +1817,7 @@ void perf_counter_output(struct perf_counter *counter,
callchain = perf_callchain(regs);

if (callchain) {
callchain_size = (2 + callchain->nr) * sizeof(u64);
callchain_size = (1 + callchain->nr) * sizeof(u64);

header.type |= __PERF_EVENT_CALLCHAIN;
header.size += callchain_size;
Expand Down

0 comments on commit eb37694

Please sign in to comment.