Re: [PATCH V2 4/4] sh: Use the perf-events backend for oprofile

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert Richter
Date: Tuesday, August 31, 2010 - 4:28 am

On 27.08.10 16:19:46, Matt Fleming wrote:

Ok, we don't need it if we add architectural dependencies to Kconfig
for those architectures requiring perf.


No, but with that implementation we always have to update the cpu
string with each new cpu though nothing else changes. We may keep this
code. But, shouldn't we return a default string "sh/<name>" for all
other cases? We will then need to update only the oprofile userland
with new cpus.


I am not sure if we need such wrappers, and if so we could implement
it anyway, e.g.:

 oprofile_perf_init(perf_ops, name, num_events);

 op_sh_setup():

	/* setup something */
	...

	perf_ops->setup();

	/* setup more */
	...

But I don't think we need this. And the above makes the interface much
cleaner.

-Robert

-- 
Advanced Micro Devices, Inc.
Operating System Research Center

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH V2 4/4] sh: Use the perf-events backend for opr ..., Robert Richter, (Tue Aug 31, 4:28 am)