Skip to content

RFC I/O Hook: Method for emulating h/w events

Rui Wang linux-acpi linux-pci lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest3 patches 0 repliesNew
  2. v1 RFC3 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3I/O Hook: core functions and Register Overridearch/Kconfig arch/x86/boot/compressed/Makefile arch/x86/include/asm/io.h +7 more+577 -20 replies
2/3I/O Hook: kernel interface to manage the hookdrivers/misc/iohook/iohook.c+151 -00 replies
3/3I/O Hook: sysfs interface to emulate h/w eventsDocumentation/PCI/iohook.txt drivers/misc/iohook/iohook.c+772 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC v2 0/3] I/O Hook: Method for emulating h/w events

Hi Bjorn,

In this v2, I made the following changes according to your suggestion:

1) The iohook driver is now built-in so we have alot fewer exported symbols. But we still need to export two functions because the loadable modules need to call into the I/O Hook.
2) Non-PCI part moved from drivers/pci into drivers/misc/iohook
3) It's now platform neutral. The PCI part should now work on all platforms. The memory mapped I/O part can be easily extened later to non-x86 platforms by modifying their part under arch/

I tested this new version on Westmere-EX. It worked as expected.

Regards,
Rui Wang
Intel Open Source Technology Center

Rui Wang (3):
I/O Hook: core functions and Register Override
I/O Hook: kernel interface to manage the hook
I/O Hook: sysfs interface to emulate h/w events

 Documentation/PCI/iohook.txt      |  282 ++++++++++
 arch/Kconfig                      |   10 +
 arch/x86/boot/compressed/Makefile |    1 +
 arch/x86/include/asm/io.h         |   57 ++-
 arch/x86/vdso/Makefile            |    2 +
 drivers/misc/Makefile             |    1 +
 drivers/misc/iohook/Makefile      |    1 +
 drivers/misc/iohook/iohook.c      | 1025 +++++++++++++++++++++++++++++++++++++
 drivers/misc/iohook/iohook.h      |    6 +
 drivers/pci/access.c              |   66 +++
 include/linux/reg_ovrd.h          |   51 ++
 11 files changed, 1500 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/PCI/iohook.txt
 create mode 100644 drivers/misc/iohook/Makefile
 create mode 100644 drivers/misc/iohook/iohook.c
 create mode 100644 drivers/misc/iohook/iohook.h
 create mode 100644 include/linux/reg_ovrd.h
Signature · 1 line
1.7.5.4