aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/linux/bitmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/include/linux/bitmap.h')
-rw-r--r--tools/include/linux/bitmap.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/include/linux/bitmap.h b/tools/include/linux/bitmap.h
index 60c44b615902..1cdded0041a8 100644
--- a/tools/include/linux/bitmap.h
+++ b/tools/include/linux/bitmap.h
@@ -75,4 +75,14 @@ static inline unsigned long *bitmap_alloc(int nbits)
75 return calloc(1, BITS_TO_LONGS(nbits) * sizeof(unsigned long)); 75 return calloc(1, BITS_TO_LONGS(nbits) * sizeof(unsigned long));
76} 76}
77 77
78/*
79 * bitmap_scnprintf - print bitmap list into buffer
80 * @bitmap: bitmap
81 * @nbits: size of bitmap
82 * @buf: buffer to store output
83 * @size: size of @buf
84 */
85size_t bitmap_scnprintf(unsigned long *bitmap, int nbits,
86 char *buf, size_t size);
87
78#endif /* _PERF_BITOPS_H */ 88#endif /* _PERF_BITOPS_H */