!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ghc experimentalflorbitous@gmail.com Safe-InferredPretty printing interface. !Generate a document for a value. Render an instance of Pretty as a String. Render an instance of Bits as a list of Bool, where True represents the high bit and False represents the low bit. Render an instance of Bits as a String.  ghc experimentalflorbitous@gmail.comNonep'An unrecognised event was encountered. Instruction pointer.  Process ID.  Thread ID.  Timestamp.  Event ID. CPU ID. Duration of sample. parent proecess id parent thread id  timestamp start of memory range !size of memory range " page offset #binary file using this range % process id & thread id 'name of the application (Corresponds with the perf_event_header struct in < perf source>/util/ perf_event.h -.Identity and printable name of an event type. />This entry belongs to the perf event attr entry where .config  has the same value as this id. 1-Layout of event attribute and attribute ids. 3The attribute payload. 4 File offset to the ids section. 5"Size of the ids section in bytes. 6Corresponds with the perf_event_attr struct in include/linux/ perf_event.h 8Major type: hardwaresoftware tracepoint/etc. ( defined as enum perf_type_id in includelinux perf_event.h 9#Size of the attr structure, for fwd/ bwd compat. :,Link to .event id of perf trace event type. ;5Number of events when a sample is generated if .freq 7 is not set or frequency for sampling if .freq is set. <9Information about what is stored in the sampling record. ?.Wakeup every n events or bytes before wakeup. CCorresponds with the enum  perf_type_id in include/linux/ perf_event.h E5 F4 G3 H2 I1 J0 K See struct perf_event_attr in linux/ perf_event.h Lsample_type all events Mnon-exec mmap data Nprecise_ip, See also PERF_RECORD_MISC_EXACT_IP Oprecise_ip, See also PERF_RECORD_MISC_EXACT_IP Pprecise_ip, See also PERF_RECORD_MISC_EXACT_IP Qprecise_ip, See also PERF_RECORD_MISC_EXACT_IP Rwakeup_watermark S trace fork/exit Tnext exec enables Uper task counts Vuse freq, not period Winclude comm data Xinclude mmap data Ydon't count when idle Zditto hypervisor [ ditto kernel \don' t count user ]only group on PMU ^must always be on PMU _children inherit it `off by default aCorresponds with the perf_file_header struct in < perf source>/util/header.h cSize of (this) header. dSize of one attribute section. e&File offset to the attribute section. f(Size of the attribute section in bytes. g!File offset to the data section. h#Size of the data section in bytes. i"File offset to the event section. j$Size of the event section in bytes. k Bitfield. lCorresponds with the perf_file_section struct in < perf source>/util/header.h nFile offset to the section. oSize of the section in bytes. pA bitfield in perf_event_header->misc. q3 r2 s1 t0 u4Information about what is stored in a sample event. v1U << 10 w1U << 9 x1U << 8 y1U << 7 z1U << 6 {1U << 5 |1U << 4 }1U << 3 ~1U << 2 1U << 1 1U << 0 Encoding of the perf_event_header->type. A Single event record. .Information about the structure of the event. The event data. PA 16 bit measurement in bytes. For example the size of an object, or an offset. PA 32 bit measurement in bytes. For example the size of an object, or an offset. PA 64 bit measurement in bytes. For example the size of an object, or an offset. BA bitmap encoding information about the content of sample events. ?Measurement of time passed in nanoseconds since a given point.  Event ID. 5 Not really an identity. This number is used to link G an event to an event type. Multiple events can have the same EventID, 0 which means they all have the same event type. 6Event type ID (magic unique number of an event type).  Thread ID.  Process ID. <The various parts of the perf.data file collected together. 0File header explains the structure of the file. Common attributes of events. >Event identifiers to be associated with the event attributes. Event type information. The event payload. &Test if a given EventAttrFlag is set. BPretty print an event attribute bit field as a list of set flags.   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~lmnoabcdefghijk12345ptsrq6789:;<=>?@AB()*+,$ %&'%& !"#%&%&%& u~}|{zyxwv-./0K`_^]\[ZYXWVUTSRQPONMLCJIHGFED'4$ %&'%& !"#%&%&%& ()*+,-./0123456 789:;<=>?@ABCJIHGFEDK`_^]\[ZYXWVUTSRQPONMLa bcdefghijklmnoptsrqu ~}|{zyxwv ghc experimentalflorbitous@gmail.comNoneRead an  EventHeader from the input file handle. 1Read an event record from the input file handle. Read the perf data  FileHeader from the input file handle. ;Read the perf event attributes from the input file handle.  Read the EventIDs from the input file handle. <Read the event type information from the input file handle. / Input file. IByte offset from the start of the file to the start of the event header.  Input file. =Offset from the start of the file to the start of the event. ;A bitmap indicating what data is stored in a sample event.  Input file.  Input file. CPerf file header containing the byte offset of the attribute data.  Input file. @File attribute containing the byte offset of the event ID data.  Input file. DPerf file header containing the byte offset of the event type data. /ghc experimentalflorbitous@gmail.comNone*Style to use for printing the event data. LOutput command and sample events in time order with event type annotations. ROutput full details of the data file preserving the original order of the events. Type information for of event. $Printable name of the event source. @Kind of the event source (hardware, software, tracepoint etc.). %Unique number of this type of event. )Associate events with their event types. % Events are (usually) tagged with an EventID!. Many events can share the same  EventID. Each EventID; is associated with exactly one event type, which includes  the name of the event, an  EventSource and an  EventTypeID /Sort a list of events in ascending time order. D Events without a timestamp are treated as having a timestamp of 0, 6 which places them at the start of the sorted output. Build a map from EventIDs to their type information. 6Read the contents of the perf.data file and render it ! on stdout in a specified style. CRead and parse the perf.data file into its constituent components. GRender the components of the perf.data file under the specified style.  Don't create a single big Doc or String to avoid stack overflows. 4 Instead, lazily print events as they are rendered. GGet the Sample Type and test the sample_id_all bit in the flags field. HRead the events from file and return them in the order that they appear  (not sorted on timestamp).  BDump the events in a sequence, showing all their internal values.  FPrint a time sorted sequence of comm and sample events. Sample events ( show their human-friendly source name.             !"#$%&'()*+,--./0112344567889:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abbcdefghijkllmnopqrstuvwxyz{|}~linux-perf-0.3Profiling.Linux.Perf.PrettyProfiling.Linux.Perf.TypesProfiling.Linux.Perf.ParseProfiling.Linux.PerfPrettypretty prettyStringshowBits EventPayload UnknownEventUnThrottleEvent ThrottleEventeventPayload_stream_id SampleEventeventPayload_SampleIPeventPayload_SamplePIDeventPayload_SampleTIDeventPayload_SampleTimeeventPayload_SampleAddreventPayload_SampleIDeventPayload_SampleStreamIDeventPayload_SampleCPUeventPayload_SamplePeriod ReadEventeventPayload_ReadValueeventPayload_ReadTimeEnabledeventPayload_ReadTimeRunning LostEventeventPayload_ideventPayload_Lost ExitEvent ForkEventeventPayload_ppideventPayload_ptideventPayload_time MmapEventeventPayload_MmapStarteventPayload_MmapLeneventPayload_MmapPgoffeventPayload_MmapFilename CommEventeventPayload_pideventPayload_tideventPayload_CommName EventHeadereh_typeeh_misceh_sizeTraceEventType te_event_idte_nameFileAttrfa_attr fa_ids_offset fa_ids_size EventAttrea_typeea_size ea_configea_sample_period_or_freqea_sample_typeea_read_formatea_flagsea_wakeup_events_or_watermark ea_bp_typeea_bp_addr_or_config1ea_bp_len_or_config2 EventSourcePerfTypeUnknownPerfTypeBreakpoint PerfTypeRawPerfTypeHwCachePerfTypeTracePointPerfTypeSoftwarePerfTypeHardware EventAttrFlag SampleIdAllMmapDataCompulsoryZeroSkidRequestedZeroSkid ConstantSkid ArbitrarySkid WaterMarkTask EnableOnExec InheritStatFreqCommMmap ExcludeIdle ExcludeHV ExcludeKernel ExcludeUser ExclusivePinnedInheritDisabled FileHeaderfh_size fh_attr_sizefh_attrs_offset fh_attrs_sizefh_data_offset fh_data_sizefh_event_offset fh_event_sizefh_adds_features FileSection sec_offsetsec_size EventCPUModePERF_RECORD_MISC_HYPERVISORPERF_RECORD_MISC_USERPERF_RECORD_MISC_KERNELPERF_RECORD_CPUMODE_UNKNOWN SampleFormatPERF_SAMPLE_RAWPERF_SAMPLE_STREAM_IDPERF_SAMPLE_PERIODPERF_SAMPLE_CPUPERF_SAMPLE_IDPERF_SAMPLE_CALLCHAINPERF_SAMPLE_READPERF_SAMPLE_ADDRPERF_SAMPLE_TIMEPERF_SAMPLE_TIDPERF_SAMPLE_IP EventTypePERF_RECORD_UNKNOWNPERF_RECORD_SAMPLEPERF_RECORD_READPERF_RECORD_FORKPERF_RECORD_UNTHROTTLEPERF_RECORD_THROTTLEPERF_RECORD_EXITPERF_RECORD_COMMPERF_RECORD_LOSTPERF_RECORD_MMAPEvent ev_header ev_payload ByteCount16 byteCount16 ByteCount32 byteCount32 ByteCount64 byteCount64SampleTypeBitMapsampleTypeBitMap TimeStamp timeStampEventIDeventID EventTypeID eventTypeIDTIDtidPIDpidPerfDataperfData_fileHeaderperfData_attrs perfData_idssperfData_typesperfData_eventstestEventAttrFlagreadEventHeader readEvent readHeaderreadAttributesreadAttributeIDsreadEventTypes OutputStyleTraceDumpTypeInfo typeInfo_nametypeInfo_source typeInfo_idTypeMapsortEventsOnTime makeTypeMapreadAndDisplay readPerfDatadisplaybits$fPrettyByteString $fPretty(,)$fPrettyWord64$fPrettyWord32$fPrettyWord16 $fPrettyWord8 $fPrettyMaybe prettyFlags$fPrettyEventPayload$fPrettyEventHeader$fPrettyTraceEventType$fPrettyFileAttr$fPrettyEventAttr$fPrettyEventSource$fPrettyEventAttrFlag$fPrettyFileHeader$fPrettyFileSection$fPrettyEventCPUMode$fPrettySampleFormat$fPrettyEventType$fEnumEventType $fPrettyEvent GetEvents bytesInWord64getEgetBSNulgetBSgetU8getU16getU32getU64getPIDgetTID getEventID getTimeStampgetByteCount64getByteCount32getByteCount16 runGetEventsrunGetEventsCheck pERF_MAGIChEADER_FEAT_BITSparseFileSectionparseFileHeader readPerfTypeparseEventSourceparseEventAttrparseEventAttrFlags parseFileAttrparseTraceEventTypeparseEventHeaderparseMmapEventparseCommEventparseForkEventparseExitEventparseLostEventparseThrottleEventparseUnThrottleEventparseReadEventparseSampleTypeparseSampleEventparseEventPayload parseEvent getAttrInfo readEventsdumpertracer