Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169594
b: refs/heads/master
c: 196f02b
h: refs/heads/master
v: v3
  • Loading branch information
Anton Blanchard authored and Paul Mackerras committed Oct 28, 2009
1 parent c655b6b commit 7da843b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 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: eecff81d1fcda22cd0029d11fe2a71dceed11dad
refs/heads/master: 196f02bf900c5eb6f85d889c4f70e7cc11fda7e8
16 changes: 14 additions & 2 deletions trunk/arch/powerpc/include/asm/emulated_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#define _ASM_POWERPC_EMULATED_OPS_H

#include <asm/atomic.h>
#include <linux/perf_event.h>


#ifdef CONFIG_PPC_EMULATED_STATS
Expand Down Expand Up @@ -70,7 +71,18 @@ extern void ppc_warn_emulated_print(const char *type);

#endif /* !CONFIG_PPC_EMULATED_STATS */

#define PPC_WARN_EMULATED(type, regs) __PPC_WARN_EMULATED(type)
#define PPC_WARN_ALIGNMENT(type, regs) __PPC_WARN_EMULATED(type)
#define PPC_WARN_EMULATED(type, regs) \
do { \
perf_sw_event(PERF_COUNT_SW_EMULATION_FAULTS, \
1, 0, regs, 0); \
__PPC_WARN_EMULATED(type); \
} while (0)

#define PPC_WARN_ALIGNMENT(type, regs) \
do { \
perf_sw_event(PERF_COUNT_SW_ALIGNMENT_FAULTS, \
1, 0, regs, regs->dar); \
__PPC_WARN_EMULATED(type); \
} while (0)

#endif /* _ASM_POWERPC_EMULATED_OPS_H */

0 comments on commit 7da843b

Please sign in to comment.