diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2011-05-18 19:44:06 -0400 |
---|---|---|
committer | Arjan van de Ven <arjan@linux.intel.com> | 2011-05-18 19:44:06 -0400 |
commit | 5be1a722057a01bff171e5a22174186b3e68ac0f (patch) | |
tree | 001e23726dca313081621b1f3d075876b9f5f3b8 | |
parent | fee3cfe31b74dee2d5e6fc55f4b09b801aebbc35 (diff) | |
download | powertop-5be1a722057a01bff171e5a22174186b3e68ac0f.tar.gz |
fix issue with writes to disk not being detected
-rw-r--r-- | process/do_process.cpp | 2 | ||||
-rw-r--r-- | process/process.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/process/do_process.cpp b/process/do_process.cpp index 87d1b52..b5c1558 100644 --- a/process/do_process.cpp +++ b/process/do_process.cpp @@ -476,7 +476,7 @@ void perf_process_bundle::handle_trace_point(int type, void *trace, int cpu, uin drty = (struct dirty_inode *)trace; - if (consumer && strcmp(consumer->name(), "process")==0 && (drty->dev>>20) > 0) { + if (consumer && strcmp(consumer->name(), "process")==0 && drty->dev > 0) { consumer->disk_hits++; /* if the previous inode dirty was > 1 second ago, it becomes a hard hit */ diff --git a/process/process.h b/process/process.h index 0ece99a..a230461 100644 --- a/process/process.h +++ b/process/process.h @@ -180,6 +180,8 @@ struct workqueue_end { struct dirty_inode { uint32_t dev; + uint32_t inode; + uint32_t flags; }; |