All of lore.kernel.org
 help / color / mirror / Atom feed
* [help] How to test kernel code that I wrote?
@ 2016-08-24 10:18 Louie Lu
  2016-08-24 10:23 ` Nikolay Borisov
  2016-08-25 13:35 ` Valdis.Kletnieks at vt.edu
  0 siblings, 2 replies; 7+ messages in thread
From: Louie Lu @ 2016-08-24 10:18 UTC (permalink / raw)
  To: kernelnewbies

Hi everyone,

I'm now reading *Unreliable Guide To Locking* which came from
kernelnewbies.org (https://kernelnewbies.org/Documents/Kernel-Docbooks)

What I want to do is trying run the code that in this doc from 7.1 All
In User Context.

In my knowing for kernel programming,
I'll need to compile the code to something like
`main.ko` then insert into kernel space using `insmod`.

Here is the GitHub that I'm doing PoC code:
https://github.com/grapherd/unreliable_guide_to_locking

My question is,
Is my knowing right?
and, how can I use the function in main.ko (e.g. cache_add).
I'm using these function by test.ko, is that a normal way to use it?

in this doc have mention, there have hardirq, softirq.
How can I test it from these irq method?


Thanks!
Louie Lu.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-08-25 13:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-24 10:18 [help] How to test kernel code that I wrote? Louie Lu
2016-08-24 10:23 ` Nikolay Borisov
2016-08-24 11:39   ` Louie Lu
2016-08-24 23:27     ` Dave Hylands
2016-08-25  8:04       ` Louie Lu
2016-08-25 13:32         ` Valdis.Kletnieks at vt.edu
2016-08-25 13:35 ` Valdis.Kletnieks at vt.edu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.