[lkml]   [2007]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [ANNOUNCE] System Inactivity Monitor v1.0

    > The /proc/bus/input/devices has an extensible structure. You can just
    > add an "A:" line (for Activity) instead of adding a new proc file.
    > I know, but IMO there is too much stuff to parse in there. Activity counters
    > are frequently accessed by daemons, and four or five concurrent daemons are the
    > norm in a typical X11 linux box...

    Syscalls are fast enough, and the file is _very_ easy (=> fast) to parse.

    > Also, the activity counters should IMO coincide with the event times
    > passed through /dev/input/event, and should not be jiffies based.
    > Ideally, both should be based on clock_gettime(CLOCK_MONOTONIC).
    > In evdev.c do_gettimeofday() is used. Anyway I just need of a monotonic
    > counter, so get_jiffies_64() wouldn't be better? It isn't affected by wrapping
    > issues and it is probably faster than do_gtod().

    Just use same time source rest of inputs already do...
    (cesky, pictures)
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-01-29 23:31    [W:0.019 / U:7.848 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site