diff options
author | Igor Zhbanov <i.zhbanov@samsung.com> | 2012-07-11 12:33:34 +0400 |
---|---|---|
committer | Chris E Ferron <chris.e.ferron@linux.intel.com> | 2012-07-17 14:06:28 -0700 |
commit | c52170a5e08dfb5fab256a56a1fac3dc58954555 (patch) | |
tree | 2ac23401df7b2e872aa40d4c84cdf471fbdad63a /src/process | |
parent | ccb84e2aaca18f3bca83288c48d9806fdf3fef4d (diff) |
Wrong common field name in GFX Wakeups event
Here is formatted version of the patch:
From 23362fa0f7bbfd0497a8ccbb9d06a4520eae8057 Mon Sep 17 00:00:00 2001
From: Igor Zhbanov<i.zhbanov@samsung.com>
Date: Wed, 11 Jul 2012 12:30:27 +0400
Subject: [PATCH] Wrong common field name in GFX Wakeups event
I have found that PowerTOP doesn't displays values in "GFX Wakeups/s" column.
It is because of wrong event field name the handle_trace_point() method
expects to find in a trace event.
Diffstat (limited to 'src/process')
-rw-r--r-- | src/process/do_process.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process/do_process.cpp b/src/process/do_process.cpp index b7006ee..731fe3e 100644 --- a/src/process/do_process.cpp +++ b/src/process/do_process.cpp @@ -312,7 +312,7 @@ void perf_process_bundle::handle_trace_point(void *trace, int cpu, uint64_t time int flags; int pid; - ret = pevent_get_common_field_val(NULL, event, "flags", &rec, &val, 0); + ret = pevent_get_common_field_val(NULL, event, "common_flags", &rec, &val, 0); if (ret < 0) return; flags = (int)val; @@ -597,7 +597,7 @@ void perf_process_bundle::handle_trace_point(void *trace, int cpu, uint64_t time class power_consumer *consumer = NULL; int flags; - ret = pevent_get_common_field_val(NULL, event, "flags", &rec, &val, 0); + ret = pevent_get_common_field_val(NULL, event, "common_flags", &rec, &val, 0); if (ret < 0) return; flags = (int)val; |