In RHEL6 oprofile is showing 'Option "--setup" not valid with "--save"' error.

Solution Verified - Updated -

Issue

  • In RHEL6 oprofile is showing 'Option "--setup" not valid with "--save"' error, while using --session-dir with --dump and --save options.
  • Issue is not in RHEL5.

# opcontrol --start --session-dir=/local/tmp/root.lyIVNu --vmlinux=/usr/lib/debug/lib/modules/2.6.32-71.18.1.el6.x86_64/vmlinux --separate=lib  --event=CPU_CLK_UNHALTED:6000::0:1
Profiler running.
]# opcontrol --stop
Stopping profiling.
# opcontrol --session-dir=/local/tmp/root.lyIVNu --dump
Option "--setup" not valid with "--dump".
#  opcontrol --session-dir=/local/tmp/root.lyIVNu --save=CPU_CLK_UNHALTED
Option "--setup" not valid with "--save".

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content