LunaVulpo
LunaVulpo

Reputation: 3221

What do the columns of /proc/wakelocks mean?

After cat /proc/wakelocks i get something like this. But what means number in columns?

    ------ KERNEL WAKELOCKS (/proc/wakelocks) ------
name    count   expire_count    wake_count  active_since    total_time  sleep_time  max_time    last_change
"event2-366"    26021   0   0   0   1780516781  0   98555000    2746261947545
"mmc0"  0   0   0   0   0   0   0   0
"qcril" 467 0   0   0   262658558   1293333 71696667    2745863710879
"rpc_reply" 250 0   0   0   208878752   17641665    21993333    2745857429212

Upvotes: 1

Views: 1577

Answers (1)

Anup Kavari
Anup Kavari

Reputation: 54

  1. count: indicates how many times the lock was held

  2. expire_count: indicates no of times the wakeup sources' timeout has expired. This happens for example when some module has opened a device and not used it for long time. Then upon timeout, wakeup source will expire.

  3. active_since: indicates for how long wakeup source is active. The value is in jiffies.

  4. total_time: indicates total time in jiffies this wakeup source was held.

  5. max_time: indicates maximum time(jiffies) wakeup source was held

Upvotes: 1

Related Questions