Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370815
b: refs/heads/master
c: 3390405
h: refs/heads/master
i:
  370813: 2ddbf3a
  370811: 1da5812
  370807: 7f34331
  370799: 3e5faec
  370783: b688319
  370751: 526e445
  370687: 14862cc
v: v3
  • Loading branch information
Michael Ellerman authored and Benjamin Herrenschmidt committed Apr 26, 2013
1 parent 279d103 commit c15b099
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 5682c460264149b258b82105f0eefcb9878aa1e7
refs/heads/master: 33904054b40832908dfaeeece282f2f0ff636f14
9 changes: 7 additions & 2 deletions trunk/arch/powerpc/perf/core-book3s.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ static inline int siar_valid(struct pt_regs *regs)

#endif /* CONFIG_PPC32 */

static bool regs_use_siar(struct pt_regs *regs)
{
return !!(regs->result & 1);
}

/*
* Things that are specific to 64-bit implementations.
*/
Expand Down Expand Up @@ -162,7 +167,7 @@ static inline u32 perf_flags_from_msr(struct pt_regs *regs)

static inline u32 perf_get_misc_flags(struct pt_regs *regs)
{
unsigned long use_siar = regs->result;
bool use_siar = regs_use_siar(regs);

if (!use_siar)
return perf_flags_from_msr(regs);
Expand Down Expand Up @@ -1425,7 +1430,7 @@ unsigned long perf_misc_flags(struct pt_regs *regs)
*/
unsigned long perf_instruction_pointer(struct pt_regs *regs)
{
unsigned long use_siar = regs->result;
bool use_siar = regs_use_siar(regs);

if (use_siar && siar_valid(regs))
return mfspr(SPRN_SIAR) + perf_ip_adjust(regs);
Expand Down

0 comments on commit c15b099

Please sign in to comment.