LIBPFM - Online Linux Manual PageSection : 3
Updated : Apr, 2006
Source :
Note : Linux Programmer's Manual
NAMEpfm_regmask_set, pfm_regmask_isset, pfm_regmask_clr, pfm_regmask_weight, pfm_regmask_eq, pfm_regmask_and, pfm_regmask_or, pfm_regmask_copy - operations on pfmlib_regmask_t bitmasks
SYNOPSIS#include <perfmon/pfmlib.h>
int pfm_regmask_isset(pfmlib_regmask_t *mask, unsigned int b);
int pfm_regmask_set(pfmlib_regmask_t *mask, unsigned int b);
int pfm_regmask_clr(pfmlib_regmask_t *mask, unsigned int b);
int pfm_regmask_weight(pfmlib_regmask_t *mask, unsigned int *w);
int pfm_regmask_eq(pfmlib_regmask_t *mask1, pfmlib_regmask_t *mask2);
int pfm_regmask_and(pfmlib_regmask_t *dest, pfmlib_regmask_t *m1, pmlib_regmask_t *m2);
int pfm_regmask_or(pfmlib_regmask_t *dest, pfmlib_regmask_t *m1, pmlib_regmask_t *m2);
int pfm_regmask_copy(pfmlib_regmask_t *dest, pfmlib_regmask_t *src);
DESCRIPTION
This set of function is used to operate of the pfmlib_regmask_t bitmasks that are returned by certain functions or passed to the pfm_dispatch_events() function. To ensure portability, it is important that applications use only the functions specified here to access the bitmasks. It is strongly discouraged to access the internal fields of the pfm_regmask_t structure. The pfm_regmask_set() function is used to set bit b in the bitmask mask. The pfm_regmask_clr() function is used to clear bit b in the bitmask mask. The pfm_regmask_isset() function returns a non-zero value if b is set in the bitmask mask. The pfm_regmask_weight() function returns in w the number of bits set in the bitmask mask. The pfm_regmask_eq() function returns a non-zero value if the bitmasks mask1 and mask2 are identical. The pfm_regmask_and() function returns in bitmask dest the result of the logical AND operation between bitmask m1 and bitmask m2. The pfm_regmask_or() function returns in bitmask dest the result of the logical OR operation between bitmask m1 and bitmask m2. The pfm_regmask_copy() function copies bitmask src into bitmask dest.
RETURNThe function returns whether or not it was successful. A return value of PFMLIB_SUCCESS indicates success, otherwise the value is the error code.
ERRORSPFMLIB_ERR_INVAL the bit b exceeds the limit supported by the library
AUTHORStephane Eranian <eranian@hpl.hp.com> 0
Johanes Gumabo
Data Size : 9,040 byte
man-pfm_regmask_set.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 201,610
Visitor ID : :
Visitor IP : 3.12.147.12 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.