1. 15 Aug, 2018 1 commit
  2. 18 Dec, 2017 1 commit
    • Swann Perarnau's avatar
      Partial Revert of powercap API update · ec563afb
      Swann Perarnau authored
      Previous commit 0c93ce6a broke the
      sample code used by the daemon, by reverting the sample function to a
      json message generator. This is due to inconsistencies between the coolr
      code and the NRM import: we removed json generation from coolr, to push
      it on the messaging side, while upstream still does it on sensor
      reading.
      
      This commit fixes that, but doesn't touch the new test code embedded in
      clr_rapl.py
      We will move that the test infrastructure later.
      ec563afb
  3. 17 Dec, 2017 1 commit
  4. 30 Aug, 2017 2 commits
    • Swann Perarnau's avatar
      [refactor] Remove json formatting from clr_rapl · 409efea2
      Swann Perarnau authored
      clr_rapl was merging sampling data generation and formatting that same
      data into a json string. This patch removes the json formatting, to let
      users of the module use the data in a python structure.
      
      The patch also removes __main__ code from clr_rapl, as it is unnecessary
      here. We might end up reusing some of this code in unit tests later, but
      not right now.
      409efea2
    • Swann Perarnau's avatar
      Import coolr files into project, link to sensor · 48771c04
      Swann Perarnau authored
      This a partial import of github.com/coolr-hpc/pycoolr from
      master branch, commit id: 67e7aa4b89b67744922b5926cd1459adf650013b
      
      Coolr will provide us the capability to read power, topology and
      msr-based sensors.
      
      This patch links the sensor module with the coolr code as it is, which
      doesn't really work. The core issue is that the current coolr code is
      meant to be stand-alone, and the main functions to both sampling and
      formatting of the data in json, by hand.
      
      We will solve that in the next commit, removing the json-specific code
      from the sample function to create a dict of values instead.
      48771c04