Commit 268a31a9 authored by Namhyung Kim's avatar Namhyung Kim
Browse files

perf stat: Add ScaleUnit to {cpu,task}-clock JSON description



This changes the output of the event like below.  In fact, that's the
output it used to have before the JSON conversion.

Before:
  $ perf stat -e task-clock true

   Performance counter stats for 'true':

             313,848      task-clock                       #    0.290 CPUs utilized

         0.001081223 seconds time elapsed

         0.001122000 seconds user
         0.000000000 seconds sys

After:
  $ perf stat -e task-clock true

   Performance counter stats for 'true':

                0.36 msec task-clock                       #    0.297 CPUs utilized

         0.001225435 seconds time elapsed

         0.001268000 seconds user
         0.000000000 seconds sys

Reviewed-by: default avatarIan Rogers <irogers@google.com>
Fixes: 9957d8c8 ("perf jevents: Add common software event json")
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent 6bd89ae7
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3,13 +3,15 @@
    "Unit": "software",
    "EventName": "cpu-clock",
    "BriefDescription": "Per-CPU high-resolution timer based event",
    "ConfigCode": "0"
    "ConfigCode": "0",
    "ScaleUnit": "1e-6msec"
  },
  {
    "Unit": "software",
    "EventName": "task-clock",
    "BriefDescription": "Per-task high-resolution timer based event",
    "ConfigCode": "1"
    "ConfigCode": "1",
    "ScaleUnit": "1e-6msec"
  },
  {
    "Unit": "software",
+134 −134

File changed.

Preview size limit exceeded, changes collapsed.