Lines Matching defs:Site
51 // Atomic32 at every VLOG_IS_ON() call site. The level determines
52 // whether the site should log, and the epoch determines whether the
53 // site is stale and should be reinitialized. A verbosity level of
55 // the verbosity level. When the site is (re)initialized, a verbosity
90 // Each log site determines whether its log level is up to date by
93 // global epoch is advanced, invalidating all site epochs.
108 // The least significant half of a site is the epoch.
109 inline int SiteEpoch(Atomic32 site) { return site & 0x0000FFFF; }
111 // The most significant half of a site is the logging level.
112 inline int SiteLevel(Atomic32 site) { return site >> 16; }
114 // Construct a logging site from a logging level and epoch.
115 inline Atomic32 Site(int level, int epoch) {
119 // Attempt to initialize or reinitialize a VLOG site. Returns the
120 // level of the log site, regardless of whether the attempt succeeds
122 // site: The address of the log site's state.
124 int InitVLOG(Atomic32* site, const char* fname);
126 // Determine whether verbose logging should occur at a given log site.
131 inline bool VLogEnabled(Atomic32* site, int32 level, const char* const file) {
132 const Atomic32 site_copy = Acquire_Load(site);
135 SiteLevel(site_copy) : InitVLOG(site, file);