lkml.org 
[lkml]   [2016]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH v2 0/2] ACPI / debugger: Add kernel flushing support
    Date
    AML debugger is implemented in the kernel as a character device located in
    the debugfs. Currently, when its batch mode is used, the userspace tool
    needs to flush the logs/prompts remained in the kernel output buffer, this
    is implemented in an inefficient way in the userspace by polling the IO and
    reading everything out.

    This patch introduces a kernel space flushing support, so that userspace
    can invoke ioctl() to put the driver into a state waiting for new commands,
    all kernel space logs/prompts will be automatically discarded by ioctl().

    Lv Zheng (2):
    ACPI / debugger: Add kernel flushing support
    tools/power/acpi/acpidbg: Use new flushing mechanism

    drivers/acpi/acpi_dbg.c | 98 ++++++++++++++++++++++++++++--
    include/linux/acpi-ioctls.h | 21 +++++++
    tools/power/acpi/tools/acpidbg/acpidbg.c | 51 +++-------------
    3 files changed, 122 insertions(+), 48 deletions(-)
    create mode 100644 include/linux/acpi-ioctls.h

    --
    1.7.10

    \
     
     \ /
      Last update: 2016-07-19 12:41    [W:5.003 / U:0.168 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site