crash utility help page:  timer


NAME
  timer - timer queue data

SYNOPSIS
  timer [-r]

DESCRIPTION
  This command displays the timer queue entries, both old- and new-style,
  in chronological order.  In the case of the old-style timers, the
  timer_table array index is shown; in the case of the new-style timers, 
  the timer_list address is shown.  On later kernels, the timer data is
  per-cpu.

    -r  Display hrtimer timer queue entries, both old- and new-style, in
        chronological order.  In the case of the old-style hrtimers, the
        expiration time is a single value; in the new-style hrtimers, the
        expiration time is a range.

EXAMPLES
    crash> timer
    JIFFIES
      68102
    EXPIRES  TIMER_LIST/TABLE  FUNCTION
      68346      c0241934      c01775d4  <tcp_sltimer_handler>
      68379      c0241204      c01696d8  <dev_do_watchdog>
      68523      c7fcdfc0      c0112d6c  <process_timeout>
      68718      c7fd8edc      c018719c  <irlmp_discovery_timer_expired>
      68723   timer_table[2]   c01c707c  <rs_timer>
      68742      c20c1f7c      c0112d6c  <process_timeout>
      68742      c20c1f7c      c0112d6c  <process_timeout>
      68742      c20c1f7c      c0112d6c  <process_timeout>
      68752      c7fd1fc4      c0112d6c  <process_timeout>
      68752      c7fd1fc4      c0112d6c  <process_timeout>
      68989      c0241d40      c0168060  <neigh_periodic_timer>
      69028      c2533f7c      c0112d6c  <process_timeout>
      69134      c22dd868      c0181948  <unix_destroy_timer>
      71574      c0241430      c0169ea4  <rt_check_expire>
      72179      c7fb1c48      c01cb9a0  <vortex_timer>
      73144      c1b17f10      c0112d6c  <process_timeout>
      73259      c17a5f10      c0112d6c  <process_timeout>
     112929      c203ff10      c0112d6c  <process_timeout>
     372010      c2323f7c      c0112d6c  <process_timeout>
     372138      c2191f10      c0112d6c  <process_timeout>
    8653052      c1f13f10      c0112d6c  <process_timeout>
 
  Display the timer queue on a 2-cpu system:

    crash> timer
    TVEC_BASES[0]: c1299be0
     JIFFIES
    18256298
     EXPIRES  TIMER_LIST  FUNCTION
    18256406   cd5ddec0   c01232bb  <process_timeout>
    18256677   ceea93e0   c011e3cc  <it_real_fn>
    18256850   ceea7f64   c01232bb  <process_timeout>
    18258751   cd1d4f64   c01232bb  <process_timeout>
    18258792   cf5782f0   c011e3cc  <it_real_fn>
    18261266   c03c9f80   c022fad5  <rt_check_expire>
    18262196   c02dc2e0   c0233329  <peer_check_expire>
    18270518   ceb8bf1c   c01232bb  <process_timeout>
    18271327   c03c9120   c0222074  <flow_cache_new_hashrnd>
    18271327   c03ca580   c0233ace  <ipfrag_secret_rebuild>
    18272532   c02d1e18   c0129946  <delayed_work_timer_fn>
    18276518   c03c9fc0   c022fd40  <rt_secret_rebuild>
    18332334   ceea9970   c011e3cc  <it_real_fn>
    18332334   cfb6a840   c011e3cc  <it_real_fn>
    18665378   cec25ec0   c01232bb  <process_timeout>
    TVEC_BASES[1]: c12a1be0
     JIFFIES
    18256298
     EXPIRES  TIMER_LIST  FUNCTION
    18256493   c02c7d00   c013dad5  <wb_timer_fn>
    18256499   c12a2db8   c0129946  <delayed_work_timer_fn>
    18277900   ceebaec0   c01232bb  <process_timeout>
    18283769   cf739f64   c01232bb  <process_timeout>
    18331902   cee8af64   c01232bb  <process_timeout>
 
  Display a new-style hrtimer queue:

    crash> timer -r
    CPU: 0  HRTIMER_CPU_BASE: c1e03fc0
      CLOCK: 0  HRTIMER_CLOCK_BASE: c1e03fc4  [ktime_get_real]
      (empty)
    
      CLOCK: 1  HRTIMER_CLOCK_BASE: c1e03ff0  [ktime_get]
         CURRENT
      322894000000
       SOFTEXPIRES     EXPIRES    HRTIMER   FUNCTION
      322895000000  322895000000  c1e04080  c04833e0  <tick_sched_timer>
      324022213609  324022213609  c1e041c0  c04b17d0  <watchdog_timer_fn>
      326766922781  326766972781  f3a45f44  c0477ed0  <hrtimer_wakeup>
      364516801997  364516851997  f43bbf44  c0477ed0  <hrtimer_wakeup>
 
      CLOCK: 2  HRTIMER_CLOCK_BASE: c1e0401c  [ktime_get_boottime]
      (empty)
    
    CPU: 1  HRTIMER_CPU_BASE: c1e43fc0
      CLOCK: 0  HRTIMER_CLOCK_BASE: c1e43fc4  [ktime_get_real]
      (empty)
    
      CLOCK: 1  HRTIMER_CLOCK_BASE: c1e43ff0  [ktime_get]
         CURRENT
      322894000000
       SOFTEXPIRES     EXPIRES    HRTIMER   FUNCTION
      322895062500  322895062500  c1e44080  c04833e0  <tick_sched_timer>
      324087213609  324087213609  c1e441c0  c04b17d0  <watchdog_timer_fn>
      381034500892  381034550892  f3a1bea0  c0477ed0  <hrtimer_wakeup>
 
      CLOCK: 2  HRTIMER_CLOCK_BASE: c1e4401c  [ktime_get_boottime]
      (empty)
    ...
 
  Display an old-style hrtimer queue:

    crash> timer -r
    CPU: 0
      CLOCK: 0  HRTIMER_BASE: ca00dae0  [ktime_get_real]
      (empty)
    
      CLOCK: 1  HRTIMER_BASE: ca00db0c  [ktime_get]
           CURRENT
      1480537567000000
           EXPIRES      HRTIMER   FUNCTION
      1480997557052703  f79c4944  c0427d18  <it_real_fn>
      1481009329944302  cdcbaf6c  c0436a1e  <hrtimer_wakeup>
      1481026181758643  ea01cf6c  c0436a1e  <hrtimer_wakeup>
      1481497068511094  f79a6244  c0427d18  <it_real_fn>
      1481589831928489  f7af6944  c0427d18  <it_real_fn>
      1481592731187337  f64ed784  c0427d18  <it_real_fn>
    
    CPU: 1
      CLOCK: 0  HRTIMER_BASE: ca0148c4  [ktime_get_real]
      (empty)
    
      CLOCK: 1  HRTIMER_BASE: ca0148f0  [ktime_get]
           CURRENT
      1480537567000000
           EXPIRES      HRTIMER   FUNCTION
      1481017523822478  ca3b15c4  c0427d18  <it_real_fn>
      1481238077723188  f5f35f6c  c0436a1e  <hrtimer_wakeup>
      1481492107740948  f5dadf6c  c0436a1e  <hrtimer_wakeup>
      1482936527251241  ca1becc4  c0427d18  <it_real_fn>
      1482936545249010  f7d42e84  c0427d18  <it_real_fn>
      1492850155229325  ea01ef6c  c0436a1e  <hrtimer_wakeup>
    ...