{-# LINE 1 "libraries/base/GHC/RTS/Flags.hsc" #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE RecordWildCards #-}
module GHC.RTS.Flags
( RtsTime
, RTSFlags (..)
, GiveGCStats (..)
, GCFlags (..)
, ConcFlags (..)
, MiscFlags (..)
, DebugFlags (..)
, DoCostCentres (..)
, CCFlags (..)
, DoHeapProfile (..)
, ProfFlags (..)
, DoTrace (..)
, TraceFlags (..)
, TickyFlags (..)
, ParFlags (..)
, getRTSFlags
, getGCFlags
, getConcFlags
, getMiscFlags
, getDebugFlags
, getCCFlags
, getProfFlags
, getTraceFlags
, getTickyFlags
, getParFlags
) where
import Control.Applicative
import Control.Monad
import Foreign
import Foreign.C
import GHC.Base
import GHC.Enum
import GHC.IO
import GHC.Real
import GHC.Show
type RtsTime = Word64
data GiveGCStats
= NoGCStats
| CollectGCStats
| OneLineGCStats
| SummaryGCStats
| VerboseGCStats
deriving (Show)
instance Enum GiveGCStats where
fromEnum NoGCStats = 0
{-# LINE 74 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum CollectGCStats = 1
{-# LINE 75 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum OneLineGCStats = 2
{-# LINE 76 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum SummaryGCStats = 3
{-# LINE 77 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum VerboseGCStats = 4
{-# LINE 78 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 0 = NoGCStats
{-# LINE 80 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 1 = CollectGCStats
{-# LINE 81 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 2 = OneLineGCStats
{-# LINE 82 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 3 = SummaryGCStats
{-# LINE 83 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 4 = VerboseGCStats
{-# LINE 84 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum e = errorWithoutStackTrace ("invalid enum for GiveGCStats: " ++ show e)
data GCFlags = GCFlags
{ statsFile :: Maybe FilePath
, giveStats :: GiveGCStats
, maxStkSize :: Word32
, initialStkSize :: Word32
, stkChunkSize :: Word32
, stkChunkBufferSize :: Word32
, maxHeapSize :: Word32
, minAllocAreaSize :: Word32
, largeAllocLim :: Word32
, nurseryChunkSize :: Word32
, minOldGenSize :: Word32
, heapSizeSuggestion :: Word32
, heapSizeSuggestionAuto :: Bool
, oldGenFactor :: Double
, pcFreeHeap :: Double
, generations :: Word32
, squeezeUpdFrames :: Bool
, compact :: Bool
, compactThreshold :: Double
, sweep :: Bool
, ringBell :: Bool
, idleGCDelayTime :: RtsTime
, doIdleGC :: Bool
, heapBase :: Word
, allocLimitGrace :: Word
, numa :: Bool
, numaMask :: Word
} deriving (Show)
data ConcFlags = ConcFlags
{ ctxtSwitchTime :: RtsTime
, ctxtSwitchTicks :: Int
} deriving (Show)
data MiscFlags = MiscFlags
{ tickInterval :: RtsTime
, installSignalHandlers :: Bool
, installSEHHandlers :: Bool
, generateCrashDumpFile :: Bool
, generateStackTrace :: Bool
, machineReadable :: Bool
, linkerMemBase :: Word
} deriving (Show)
data DebugFlags = DebugFlags
{ scheduler :: Bool
, interpreter :: Bool
, weak :: Bool
, gccafs :: Bool
, gc :: Bool
, block_alloc :: Bool
, sanity :: Bool
, stable :: Bool
, prof :: Bool
, linker :: Bool
, apply :: Bool
, stm :: Bool
, squeeze :: Bool
, hpc :: Bool
, sparks :: Bool
} deriving (Show)
data DoCostCentres
= CostCentresNone
| CostCentresSummary
| CostCentresVerbose
| CostCentresAll
| CostCentresJSON
deriving (Show)
instance Enum DoCostCentres where
fromEnum CostCentresNone = 0
{-# LINE 178 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum CostCentresSummary = 1
{-# LINE 179 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum CostCentresVerbose = 2
{-# LINE 180 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum CostCentresAll = 3
{-# LINE 181 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum CostCentresJSON = 4
{-# LINE 182 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 0 = CostCentresNone
{-# LINE 184 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 1 = CostCentresSummary
{-# LINE 185 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 2 = CostCentresVerbose
{-# LINE 186 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 3 = CostCentresAll
{-# LINE 187 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 4 = CostCentresJSON
{-# LINE 188 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum e = errorWithoutStackTrace ("invalid enum for DoCostCentres: " ++ show e)
data CCFlags = CCFlags
{ doCostCentres :: DoCostCentres
, profilerTicks :: Int
, msecsPerTick :: Int
} deriving (Show)
data DoHeapProfile
= NoHeapProfiling
| HeapByCCS
| HeapByMod
| HeapByDescr
| HeapByType
| HeapByRetainer
| HeapByLDV
| HeapByClosureType
deriving (Show)
instance Enum DoHeapProfile where
fromEnum NoHeapProfiling = 0
{-# LINE 216 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum HeapByCCS = 1
{-# LINE 217 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum HeapByMod = 2
{-# LINE 218 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum HeapByDescr = 4
{-# LINE 219 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum HeapByType = 5
{-# LINE 220 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum HeapByRetainer = 6
{-# LINE 221 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum HeapByLDV = 7
{-# LINE 222 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum HeapByClosureType = 8
{-# LINE 223 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 0 = NoHeapProfiling
{-# LINE 225 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 1 = HeapByCCS
{-# LINE 226 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 2 = HeapByMod
{-# LINE 227 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 4 = HeapByDescr
{-# LINE 228 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 5 = HeapByType
{-# LINE 229 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 6 = HeapByRetainer
{-# LINE 230 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 7 = HeapByLDV
{-# LINE 231 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 8 = HeapByClosureType
{-# LINE 232 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum e = errorWithoutStackTrace ("invalid enum for DoHeapProfile: " ++ show e)
data ProfFlags = ProfFlags
{ doHeapProfile :: DoHeapProfile
, heapProfileInterval :: RtsTime
, heapProfileIntervalTicks :: Word
, includeTSOs :: Bool
, showCCSOnException :: Bool
, maxRetainerSetSize :: Word
, ccsLength :: Word
, modSelector :: Maybe String
, descrSelector :: Maybe String
, typeSelector :: Maybe String
, ccSelector :: Maybe String
, ccsSelector :: Maybe String
, retainerSelector :: Maybe String
, bioSelector :: Maybe String
} deriving (Show)
data DoTrace
= TraceNone
| TraceEventLog
| TraceStderr
deriving (Show)
instance Enum DoTrace where
fromEnum TraceNone = 0
{-# LINE 266 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum TraceEventLog = 1
{-# LINE 267 "libraries/base/GHC/RTS/Flags.hsc" #-}
fromEnum TraceStderr = 2
{-# LINE 268 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 0 = TraceNone
{-# LINE 270 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 1 = TraceEventLog
{-# LINE 271 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum 2 = TraceStderr
{-# LINE 272 "libraries/base/GHC/RTS/Flags.hsc" #-}
toEnum e = errorWithoutStackTrace ("invalid enum for DoTrace: " ++ show e)
data TraceFlags = TraceFlags
{ tracing :: DoTrace
, timestamp :: Bool
, traceScheduler :: Bool
, traceGc :: Bool
, sparksSampled :: Bool
, sparksFull :: Bool
, user :: Bool
} deriving (Show)
data TickyFlags = TickyFlags
{ showTickyStats :: Bool
, tickyFile :: Maybe FilePath
} deriving (Show)
data ParFlags = ParFlags
{ nCapabilities :: Word32
, migrate :: Bool
, maxLocalSparks :: Word32
, parGcEnabled :: Bool
, parGcGen :: Word32
, parGcLoadBalancingEnabled :: Bool
, parGcLoadBalancingGen :: Word32
, parGcNoSyncWithIdle :: Word32
, parGcThreads :: Word32
, setAffinity :: Bool
}
deriving (Show)
data RTSFlags = RTSFlags
{ gcFlags :: GCFlags
, concurrentFlags :: ConcFlags
, miscFlags :: MiscFlags
, debugFlags :: DebugFlags
, costCentreFlags :: CCFlags
, profilingFlags :: ProfFlags
, traceFlags :: TraceFlags
, tickyFlags :: TickyFlags
, parFlags :: ParFlags
} deriving (Show)
foreign import ccall "&RtsFlags" rtsFlagsPtr :: Ptr RTSFlags
getRTSFlags :: IO RTSFlags
getRTSFlags = do
RTSFlags <$> getGCFlags
<*> getConcFlags
<*> getMiscFlags
<*> getDebugFlags
<*> getCCFlags
<*> getProfFlags
<*> getTraceFlags
<*> getTickyFlags
<*> getParFlags
peekFilePath :: Ptr () -> IO (Maybe FilePath)
peekFilePath ptr
| ptr == nullPtr = return Nothing
| otherwise = return (Just "<filepath>")
peekCStringOpt :: Ptr CChar -> IO (Maybe String)
peekCStringOpt ptr
| ptr == nullPtr = return Nothing
| otherwise = Just <$> peekCString ptr
getGCFlags :: IO GCFlags
getGCFlags = do
let ptr = ((\hsc_ptr -> hsc_ptr `plusPtr` 0)) rtsFlagsPtr
{-# LINE 355 "libraries/base/GHC/RTS/Flags.hsc" #-}
GCFlags <$> (peekFilePath =<< (\hsc_ptr -> peekByteOff hsc_ptr 0) ptr)
{-# LINE 356 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toEnum . fromIntegral <$>
((\hsc_ptr -> peekByteOff hsc_ptr 8) ptr :: IO Word32))
{-# LINE 358 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 12) ptr
{-# LINE 359 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 16) ptr
{-# LINE 360 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 20) ptr
{-# LINE 361 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 24) ptr
{-# LINE 362 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 28) ptr
{-# LINE 363 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 32) ptr
{-# LINE 364 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 36) ptr
{-# LINE 365 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 40) ptr
{-# LINE 366 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 44) ptr
{-# LINE 367 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 48) ptr
{-# LINE 368 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 52) ptr :: IO CBool))
{-# LINE 370 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 56) ptr
{-# LINE 371 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 64) ptr
{-# LINE 372 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 72) ptr
{-# LINE 373 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 76) ptr :: IO CBool))
{-# LINE 375 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 77) ptr :: IO CBool))
{-# LINE 377 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 80) ptr
{-# LINE 378 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 88) ptr :: IO CBool))
{-# LINE 380 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 89) ptr :: IO CBool))
{-# LINE 382 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 96) ptr
{-# LINE 383 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 104) ptr :: IO CBool))
{-# LINE 385 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 120) ptr
{-# LINE 386 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 128) ptr
{-# LINE 387 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 144) ptr :: IO CBool))
{-# LINE 389 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 152) ptr
{-# LINE 390 "libraries/base/GHC/RTS/Flags.hsc" #-}
getParFlags :: IO ParFlags
getParFlags = do
let ptr = ((\hsc_ptr -> hsc_ptr `plusPtr` 368)) rtsFlagsPtr
{-# LINE 394 "libraries/base/GHC/RTS/Flags.hsc" #-}
ParFlags
<$> (\hsc_ptr -> peekByteOff hsc_ptr 0) ptr
{-# LINE 396 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 4) ptr :: IO CBool))
{-# LINE 398 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 8) ptr
{-# LINE 399 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 12) ptr :: IO CBool))
{-# LINE 401 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 16) ptr
{-# LINE 402 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 20) ptr :: IO CBool))
{-# LINE 404 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 24) ptr
{-# LINE 405 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 28) ptr
{-# LINE 406 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 32) ptr
{-# LINE 407 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 36) ptr :: IO CBool))
{-# LINE 409 "libraries/base/GHC/RTS/Flags.hsc" #-}
getConcFlags :: IO ConcFlags
getConcFlags = do
let ptr = ((\hsc_ptr -> hsc_ptr `plusPtr` 160)) rtsFlagsPtr
{-# LINE 413 "libraries/base/GHC/RTS/Flags.hsc" #-}
ConcFlags <$> (\hsc_ptr -> peekByteOff hsc_ptr 0) ptr
{-# LINE 414 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 8) ptr
{-# LINE 415 "libraries/base/GHC/RTS/Flags.hsc" #-}
getMiscFlags :: IO MiscFlags
getMiscFlags = do
let ptr = ((\hsc_ptr -> hsc_ptr `plusPtr` 176)) rtsFlagsPtr
{-# LINE 419 "libraries/base/GHC/RTS/Flags.hsc" #-}
MiscFlags <$> (\hsc_ptr -> peekByteOff hsc_ptr 0) ptr
{-# LINE 420 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 8) ptr :: IO CBool))
{-# LINE 422 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 9) ptr :: IO CBool))
{-# LINE 424 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 10) ptr :: IO CBool))
{-# LINE 426 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 11) ptr :: IO CBool))
{-# LINE 428 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 12) ptr :: IO CBool))
{-# LINE 430 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 16) ptr
{-# LINE 431 "libraries/base/GHC/RTS/Flags.hsc" #-}
getDebugFlags :: IO DebugFlags
getDebugFlags = do
let ptr = ((\hsc_ptr -> hsc_ptr `plusPtr` 200)) rtsFlagsPtr
{-# LINE 435 "libraries/base/GHC/RTS/Flags.hsc" #-}
DebugFlags <$> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 0) ptr :: IO CBool))
{-# LINE 437 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 1) ptr :: IO CBool))
{-# LINE 439 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 2) ptr :: IO CBool))
{-# LINE 441 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 3) ptr :: IO CBool))
{-# LINE 443 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 4) ptr :: IO CBool))
{-# LINE 445 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 5) ptr :: IO CBool))
{-# LINE 447 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 6) ptr :: IO CBool))
{-# LINE 449 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 7) ptr :: IO CBool))
{-# LINE 451 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 8) ptr :: IO CBool))
{-# LINE 453 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 9) ptr :: IO CBool))
{-# LINE 455 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 10) ptr :: IO CBool))
{-# LINE 457 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 11) ptr :: IO CBool))
{-# LINE 459 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 12) ptr :: IO CBool))
{-# LINE 461 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 13) ptr :: IO CBool))
{-# LINE 463 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 14) ptr :: IO CBool))
{-# LINE 465 "libraries/base/GHC/RTS/Flags.hsc" #-}
getCCFlags :: IO CCFlags
getCCFlags = do
let ptr = ((\hsc_ptr -> hsc_ptr `plusPtr` 0)) rtsFlagsPtr
{-# LINE 469 "libraries/base/GHC/RTS/Flags.hsc" #-}
CCFlags <$> (toEnum . fromIntegral
<$> ((\hsc_ptr -> peekByteOff hsc_ptr 0) ptr :: IO Word32))
{-# LINE 471 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 4) ptr
{-# LINE 472 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 8) ptr
{-# LINE 473 "libraries/base/GHC/RTS/Flags.hsc" #-}
getProfFlags :: IO ProfFlags
getProfFlags = do
let ptr = ((\hsc_ptr -> hsc_ptr `plusPtr` 248)) rtsFlagsPtr
{-# LINE 477 "libraries/base/GHC/RTS/Flags.hsc" #-}
ProfFlags <$> (toEnum <$> (\hsc_ptr -> peekByteOff hsc_ptr 0) ptr)
{-# LINE 478 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 8) ptr
{-# LINE 479 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 16) ptr
{-# LINE 480 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 20) ptr :: IO CBool))
{-# LINE 482 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 21) ptr :: IO CBool))
{-# LINE 484 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 24) ptr
{-# LINE 485 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (\hsc_ptr -> peekByteOff hsc_ptr 28) ptr
{-# LINE 486 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (peekCStringOpt =<< (\hsc_ptr -> peekByteOff hsc_ptr 32) ptr)
{-# LINE 487 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (peekCStringOpt =<< (\hsc_ptr -> peekByteOff hsc_ptr 40) ptr)
{-# LINE 488 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (peekCStringOpt =<< (\hsc_ptr -> peekByteOff hsc_ptr 48) ptr)
{-# LINE 489 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (peekCStringOpt =<< (\hsc_ptr -> peekByteOff hsc_ptr 56) ptr)
{-# LINE 490 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (peekCStringOpt =<< (\hsc_ptr -> peekByteOff hsc_ptr 64) ptr)
{-# LINE 491 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (peekCStringOpt =<< (\hsc_ptr -> peekByteOff hsc_ptr 72) ptr)
{-# LINE 492 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (peekCStringOpt =<< (\hsc_ptr -> peekByteOff hsc_ptr 80) ptr)
{-# LINE 493 "libraries/base/GHC/RTS/Flags.hsc" #-}
getTraceFlags :: IO TraceFlags
getTraceFlags = do
let ptr = ((\hsc_ptr -> hsc_ptr `plusPtr` 336)) rtsFlagsPtr
{-# LINE 497 "libraries/base/GHC/RTS/Flags.hsc" #-}
TraceFlags <$> (toEnum . fromIntegral
<$> ((\hsc_ptr -> peekByteOff hsc_ptr 0) ptr :: IO CInt))
{-# LINE 499 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 4) ptr :: IO CBool))
{-# LINE 501 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 5) ptr :: IO CBool))
{-# LINE 503 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 6) ptr :: IO CBool))
{-# LINE 505 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 7) ptr :: IO CBool))
{-# LINE 507 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 8) ptr :: IO CBool))
{-# LINE 509 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 9) ptr :: IO CBool))
{-# LINE 511 "libraries/base/GHC/RTS/Flags.hsc" #-}
getTickyFlags :: IO TickyFlags
getTickyFlags = do
let ptr = ((\hsc_ptr -> hsc_ptr `plusPtr` 352)) rtsFlagsPtr
{-# LINE 515 "libraries/base/GHC/RTS/Flags.hsc" #-}
TickyFlags <$> (toBool <$>
((\hsc_ptr -> peekByteOff hsc_ptr 0) ptr :: IO CBool))
{-# LINE 517 "libraries/base/GHC/RTS/Flags.hsc" #-}
<*> (peekFilePath =<< (\hsc_ptr -> peekByteOff hsc_ptr 8) ptr)
{-# LINE 518 "libraries/base/GHC/RTS/Flags.hsc" #-}