diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-01-07 18:17:13 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-01-07 18:17:13 +0100 |
commit | 171dd16155ab6241584247efd0c8d37e160b3851 (patch) | |
tree | dc9b62e9faea468865a92091b4d0f960be3ab7c5 /xen/include/xen/bitmap.h | |
parent | 961e52c4dfce4005329fe864aeec024955204021 (diff) | |
download | xen-171dd16155ab6241584247efd0c8d37e160b3851.tar.gz xen-171dd16155ab6241584247efd0c8d37e160b3851.tar.bz2 xen-171dd16155ab6241584247efd0c8d37e160b3851.zip |
Add cpumask_scnprintf() and cpulist_scnprintf(). This also
adds the bitmap_scnprintf functions and scnprintf itself.
Add dirty cpu and cpu affinity info to 'q'-key debug output.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/bitmap.h')
-rw-r--r-- | xen/include/xen/bitmap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/include/xen/bitmap.h b/xen/include/xen/bitmap.h index 3703384c3d..91622645c5 100644 --- a/xen/include/xen/bitmap.h +++ b/xen/include/xen/bitmap.h @@ -41,6 +41,8 @@ * bitmap_weight(src, nbits) Hamming Weight: number set bits * bitmap_shift_right(dst, src, n, nbits) *dst = *src >> n * bitmap_shift_left(dst, src, n, nbits) *dst = *src << n + * bitmap_scnprintf(buf, len, src, nbits) Print bitmap src to buf + * bitmap_scnlistprintf(buf, len, src, nbits) Print bitmap src as list to buf */ /* @@ -93,6 +95,10 @@ extern int __bitmap_subset(const unsigned long *bitmap1, const unsigned long *bitmap2, int bits); extern int __bitmap_weight(const unsigned long *bitmap, int bits); +extern int bitmap_scnprintf(char *buf, unsigned int len, + const unsigned long *src, int nbits); +extern int bitmap_scnlistprintf(char *buf, unsigned int len, + const unsigned long *src, int nbits); extern int bitmap_find_free_region(unsigned long *bitmap, int bits, int order); extern void bitmap_release_region(unsigned long *bitmap, int pos, int order); extern int bitmap_allocate_region(unsigned long *bitmap, int pos, int order); |