Search

Quiz based on chapter-4 of book linux device drivers 3rd ed

Quiz on chapter-4 of book linux device drivers 3rd ed

Quiz on chapter-4 of book linux device drivers 3rd ed

  1. Which of the following config options need to be enabled to be able to debug kernel.

  2. CONFIG_DEBUG_KERNEL
    CONFIG_USB
    CONFIG_EXT4
    CONFIG_DBG

  3. The first argument passed to printk specifies the

  4. loglevel for the message to be printed
    terminal number for the message to be printed
    userid of the current user
    line number in which the message has to be printed

  5. The command that can be used to view the kernel logs from user space is

  6. kmesg
    dmesg
    kmsg
    dmsg

  7. The function create_proc_read_entry returns a pointer to

  8. struct proc_dir
    struct proc_entry
    struct proc_dir_entry
    struct proc

  9. The seq file interface is used for

  10. logging errors in kernel space
    Creating a /proc entry
    Passing user information to kernel
    Passing kernel information to user space

  11. output of strace shows

  12. The function calls made by user applications
    The system calls made by a user application
    The kernel modules used by a user application
    The various applications running in the user space.

  13. In a kernel oops message EIP points to

  14. The address of the faulty instruction
    The faulty instruction
    The faulty line in the user code
    The faulty user application

  15. While using gdb for kernel debugging the kernel core file used passed to gdb is

  16. /proc/core
    /proc/kcore
    /dev/core
    /dev/kcore

  17. Which of the following keys will launch the kdb

  18. sysrq
    pause
    shift
    del

  19. To use kgdb we need two systems connected by a serial cable

  20. True
    False
    depends on kernel version
    depends on kgdb version

No comments:

Post a Comment