Luke Gorrie wrote: > Does anybody know a simple way to run the profiler from Intel hardware > performance events? (perhaps Linux can generate a SIGPROF from those > instead of real time?) Umm, it's the other way round: SIGPROF is generated from a timer at fixed intervals. The counters for these events can then be sampled in the signal handler or the callback triggered by it. > I would quite like to get this same profiler output but measuring > branch-mispredictions, last-level-cache references, etc. AFAIK there are various libraries to do this. E.g. PAPI, though it looks a bit heavyweight for my taste. --Mike