Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349971
b: refs/heads/master
c: 1526813
h: refs/heads/master
i:
  349969: f0e63fe
  349967: 26457cc
v: v3
  • Loading branch information
Sukadev Bhattiprolu authored and Arnaldo Carvalho de Melo committed Jan 24, 2013
1 parent 20e5367 commit 29289a7
Show file tree
Hide file tree
Showing 3 changed files with 3 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: 3cecaa2002273887a9364c454684fa8491bb2b10
refs/heads/master: 15268138e334bd0362f8395edac4822351714a22
1 change: 1 addition & 0 deletions trunk/tools/perf/util/include/linux/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
#define BITS_TO_U64(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u64))
#define BITS_TO_U32(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u32))
#define BITS_TO_BYTES(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE)

#define for_each_set_bit(bit, addr, size) \
for ((bit) = find_first_bit((addr), (size)); \
Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ void perf_pmu__set_format(unsigned long *bits, long from, long to)
if (!to)
to = from;

memset(bits, 0, BITS_TO_LONGS(PERF_PMU_FORMAT_BITS));
memset(bits, 0, BITS_TO_BYTES(PERF_PMU_FORMAT_BITS));
for (b = from; b <= to; b++)
set_bit(b, bits);
}

0 comments on commit 29289a7

Please sign in to comment.