Add support for AMD's LWP extension - enable detection of LWP via cpuid (add an updated cpuid routine) - enable clean handling of the LWP instructions to the point where memcheck will not fail - add a test. The extension enables all-user-space profiling (no system calls required to dynamically collect the performance data) as well as enables value profiling to be performed.
Created attachment 78421 [details] Patch to enable proper cpuid handling to detect LWP Started from rev 13341, VEX rev 2702 Added support to detect an AMD cpu which supports LWP (and lzcnt, rdtscp) - an AMD FX-series core ('Bulldozer'). With this patch it becomes possible to add support for the various LWP instruction opcodes.
Created attachment 78479 [details] Patch to enable proper cpuid handling to detect LWP, enable building of a test, a test case Patch: (starting from svn rev 13351, VEX rev 2704 - enables cpuid handling - change config to permit building of the test case.
Created attachment 78480 [details] the .stdout.exp, .stderr.exp, .vgtest, .c (as a tarfile) The test case (as a tarfile) - new files
Created attachment 78709 [details] A believed to be complete patch for LWP support on x86_64 The patches to the core (non VEX) portions of valgrind (rev 13363)
Created attachment 78710 [details] Patches to VEX for full support of LWP on x86_64 This is the VEX content patch
Created attachment 78711 [details] Modified test case for LWP support on x86_64 A test case with expected results