Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158245
b: refs/heads/master
c: 11be1a7
h: refs/heads/master
i:
  158243: dfb59ba
v: v3
  • Loading branch information
Robert Richter committed Jul 20, 2009
1 parent 2f4d460 commit 77410cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 61d149d5248ad7428801cdede0f5fcc2b90cd61c
refs/heads/master: 11be1a7b54283021777f409aa983ce125945e67c
4 changes: 1 addition & 3 deletions trunk/arch/x86/oprofile/nmi_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,13 @@ static int nmi_create_files(struct super_block *sb, struct dentry *root)
struct dentry *dir;
char buf[4];

#ifndef CONFIG_OPROFILE_EVENT_MULTIPLEX
/* quick little hack to _not_ expose a counter if it is not
* available for use. This should protect userspace app.
* NOTE: assumes 1:1 mapping here (that counters are organized
* sequentially in their struct assignment).
*/
if (unlikely(!avail_to_resrv_perfctr_nmi_bit(i)))
if (!avail_to_resrv_perfctr_nmi_bit(op_x86_virt_to_phys(i)))
continue;
#endif /* CONFIG_OPROFILE_EVENT_MULTIPLEX */

snprintf(buf, sizeof(buf), "%d", i);
dir = oprofilefs_mkdir(sb, root, buf);
Expand Down

0 comments on commit 77410cb

Please sign in to comment.