Re: Debugging a device driver

From: Khimenko Victor (khim@sch57.msk.ru)
Date: Mon May 29 2000 - 08:16:41 EST


In <393268FD.A8DF44DA@orga.com> John O'Connor (joconnor@orga.com) wrote:
> Hello,

> I'm currently trying to debug a device driver that I'm writing for a
> special purpose application.

> I have a problem whereby my driver freezes my system. (2.2.14 kernel)

> Reading the section on debugging techniques in Rubini's device drivers
> book, I was prompted to see if Shift-Printscreen would elicit any
> response.

It's there. Just not Shift-Printscreen but Shift-ScrollLock.

> It didn't so, just to check, I booted fresh and tried to see what would
> be the result of Shift-Printscreen.

> Still no result even though the system is running fine. (My driver is
> not loaded.)

No wonder - it's just wrong combination.

> I checked klogd and then halted it and restarted it with "klogd -c 5"
> but there was still no response to Shift-Printscreen. (Or CTRL-P or
> RightAlt-P)

> Is this function still there in the 2.2.14 kernel? If so, how to I turn
> it on?

It's there but if you plan to debug something then you REALLY should read
/usr/src/linux/Documentation/sysrq.txt and use "MAGIC SYSRQ" instead...

> Many thanks in advance.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:21 EST