]> git.neil.brown.name Git - history.git/commit
[PATCH] Fix oprofile on hyperthreaded P4's
authorAndrew Morton <akpm@digeo.com>
Mon, 14 Apr 2003 13:09:35 +0000 (06:09 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 14 Apr 2003 13:09:35 +0000 (06:09 -0700)
commitec7708a234f332be15443b6fe953f55441b22814
tree66a306ec5f15cc30810d0e169cb45adbb8418131
parent4e09bf0b229f73da9aa521269d284777c5241fac
[PATCH] Fix oprofile on hyperthreaded P4's

From: Philippe Elie <phil.el@wanadoo.fr>

- oprofile is currently only profiling one sibling.  Fix that with
  appropriate register settings.

- fix an oops which could occur if the userspace driver were to request a
  non-existent resource.

- in NMI handler counter_config[i].event is accessible from user space so
  user can change the event during profiling by echo xxx >
  /dev/oprofile/event

- event mask was wrong, the bit field is 6 bits length not 5, events
  SSE_INPUT_ASSIST and X87_SIMD_MOVES_UOP was affected by masking high bit of
  event number.
arch/i386/oprofile/op_model_p4.c