1. May 07, 2021
    • Tommy Thorn's avatar
      Untested: pad branch traces with dummy not-taken 0 branches · 5c0bd243
      Tommy Thorn authored
      Still untested: since we only use 15 bits for the sequence number
      delta, it's _possible_ (but practically impossible) to encounter
      events that don't fit the format.  For these, insert dummy non-taken
      branches (they will have a destination of 0 and can be ignored).
      5c0bd243
  2. Apr 19, 2021
    • Tommy Thorn's avatar
      Update docs · 66ae18d5
      Tommy Thorn authored
      66ae18d5
    • Tommy Thorn's avatar
      Make branch trace header all-JSON · 3650965d
      Tommy Thorn authored
      {
        "title": "Branch Trace",
        "format": [
          {
            "field": "was_taken",
            "bits": 1
          },
          {
            "field": "insn_delta",
            "bits": 15
          },
          {
            "field": "branch_addr",
            "bits": 48
          }
        ],
        "date": 20210418,
        "args": [
          "./temu","bool-linux.cfg"],
        "launch": 1618801656,
        "finished": 1618801657,
        "duration": 1,
        "branches": 15148555,
        "instructions": 117501736,
        "avg insn / branch":  7.757,
        "avg MIPS": 117.502,
        "avg taken ratio":  0.485
      }
      
      Slightly overkill, but it might be useful in future
      3650965d
    • Tommy Thorn's avatar
      Include more useful information in the branch trace header · 96d8579a
      Tommy Thorn authored
      Example header:
      
        {
                "title": "TinyEMU Branch Trace",
                "format": [
                        {
                                "field": "was_taken",
                                "bits": 1
                        },
                        {
                                "field": "insn_delta",
                                "bits": 15
                        },
                        {
                                "field": "branch_addr",
                                "bits": 48
                        }
                ],
                "date": "20210418"
        }
        Args: "./temu" "boot-linux.cfg"
        Launched: 1618780223
        Ended: 1618780226
        Duration: 3
        Branches: 75130370
        Instructions: 478005076
        Avg insn / branch:   6.36
        Avg MIPS: 159.34
        Avg taken ratio:   0.76
      96d8579a
    • Tommy Thorn's avatar
      New self documenting branch trace format · 4626c560
      Tommy Thorn authored
      4626c560
    • Tommy Thorn's avatar
      First attempt at dumping Branch Traces · 0cf85b3b
      Tommy Thorn authored
      0cf85b3b
  3. Apr 15, 2021
  4. Feb 03, 2018