'op-check-perfevents' is called by 'opcontrol' and 'oparchive' may be
useful for easier examination. 'ocount' and 'operf' are only build if
kernel headers are installed, but recommended to use with newer kernels
and hardware supporting it.

Signed-off-by: Alexander Dahl <[email protected]>
---
 rules/oprofile.make |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/rules/oprofile.make b/rules/oprofile.make
index dabf5f8..f1e7589 100644
--- a/rules/oprofile.make
+++ b/rules/oprofile.make
@@ -58,10 +58,17 @@ $(STATEDIR)/oprofile.targetinstall:
        @$(call install_fixup, oprofile,AUTHOR,"Robert Schwebel 
<[email protected]>")
        @$(call install_fixup, oprofile,DESCRIPTION,missing)
 
+       @$(call install_copy, oprofile, 0, 0, 0755, -, 
/usr/bin/op-check-perfevents)
        @$(call install_copy, oprofile, 0, 0, 0755, -, /usr/bin/opcontrol)
        @$(call install_copy, oprofile, 0, 0, 0755, -, /usr/bin/ophelp)
        @$(call install_copy, oprofile, 0, 0, 0755, -, /usr/bin/opreport)
        @$(call install_copy, oprofile, 0, 0, 0755, -, /usr/bin/oprofiled)
+       @$(call install_copy, oprofile, 0, 0, 0755, -, /usr/bin/oparchive)
+
+ifdef PTXCONF_KERNEL_HEADER
+       @$(call install_copy, oprofile, 0, 0, 0755, -, /usr/bin/ocount)
+       @$(call install_copy, oprofile, 0, 0, 0755, -, /usr/bin/operf)
+endif
 
        @$(call install_tree, oprofile, 0, 0, -, /usr/share/oprofile)
 
-- 
1.7.10.4


-- 
ptxdist mailing list
[email protected]

Reply via email to