diff options
| author | Robert Richter <[email protected]> | 2012-06-14 22:38:37 +0200 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-06-29 13:31:27 -0300 |
| commit | 9bc8f9fe2c6e3778202c76ef85ef291567c00cb8 (patch) | |
| tree | 26c483617ef9bbb10d352347df0d7fe1b80a0b20 /drivers/scsi/mpt2sas/mpi/mpi2_init.h | |
| parent | 287e74aa3db097469bdca401f33f00ef20dc710d (diff) | |
perf tools: Fix generation of pmu list
The internal pmu list was never used. With each perf_pmu__find() call
the pmu structure was created new by parsing sysfs. Beside this it
caused memory leaks. We now keep all pmus by adding them to the list.
Also, pmu_lookup() should return pmus that do not expose the format
specifier in sysfs.
We need a valid internal pmu list in a later patch to iterate over all
pmus that exist in the system.
Signed-off-by: Robert Richter <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_init.h')
0 files changed, 0 insertions, 0 deletions