lkml.org 
[lkml]   [2011]   [Aug]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v6 2/2] Output stall data in debugfs
    From
    Date
    On Wed, 2011-08-10 at 11:02 -0700, Alex Neronskiy wrote:

    > +static unsigned long softstall_trace_entries[STALL_MAX_TRACE_DEPTH * 2];
    > +static struct stack_trace softstall_traces[2];
    > +static spinlock_t softstall_locks[2];
    > +static DEFINE_SPINLOCK(softstall_read_lock);
    > +static DEFINE_SPINLOCK(softstall_write_lock);
    > +static int soft_read_ind;
    >
    > static DEFINE_PER_CPU(unsigned long, watchdog_touch_ts);
    > static DEFINE_PER_CPU(struct task_struct *, softlockup_watchdog);
    > @@ -46,7 +67,12 @@ static DEFINE_PER_CPU(unsigned long, hrtimer_interrupts_missed);
    > static DEFINE_PER_CPU(struct perf_event *, watchdog_ev);
    >
    > unsigned long worst_hardstall;
    > +static unsigned long hardstall_trace_entries[STALL_MAX_TRACE_DEPTH * 2];
    > +static struct stack_trace hardstall_traces[2];
    > +static spinlock_t hardstall_locks[2];
    > +static DEFINE_SPINLOCK(hardstall_read_lock);
    > +static DEFINE_SPINLOCK(hardstall_write_lock);
    > +static int hard_read_ind;

    You really gotta love typing, but the rest of us know to use structures
    for this.


    \
     
     \ /
      Last update: 2011-08-11 21:15    [W:0.019 / U:1.188 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site