Giter Club home page Giter Club logo

mu_telem_tool's Introduction

CPER Parsing

Supplying Data to the Parser

Events parsed here require either just the raw data blobs separated by newlines, or events exported from the Windows Event Logger in a .evtx file. Use the -s flag to specify the source file. If a non-absolute path is provided, the root directory of this repo (the location of this README file) will be used as the root of the address.

Extending known GUIDs

If there are guids you (the user) recognize which are either not currently being replaced by the -f (--Friendly) flag or are being replaced by a friendly name you do not prefer, simply add/edit the predefined_guids dictionary in cper_parsers.py

Extending Section Parsing

Without any updates, the sections within each CPER record will simply be hex dumped. If there is a specific section type (GUID) that you (the user) recognize, you can funnel that section data to your own parser by extending the SectionDataParser class, and placing the extension within the directory edk2-pytool-library\edk2toollib\windows\telem\decoders. An example is located within that directory. If the function CanParse() returns true, the section data will be passed to the plugin's Parse() function expecting a string in return.

Usage

  1. Use the command parse_cper -h to see the relevant commands
  2. Try parsing a CPER. Export Microsoft-Windows-Kernel-WHEA and/or Microsoft-Windows-WHEA-Logger events and specify them using the -s flag: Ex. parse_cper -f -s example.evtx -o output.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.