Comment 1 for bug 1898935

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2020-10-09 02:49 EDT-------
I found the root cause. When no CPU-measurement sampling facility is detected,
this error is printed first:

No CPU-measurement sampling facility detected

regardless of any command line options specified. Then program then exits.
This happened during the rewrite from perl to C.

When the CPU-measurement sampling facility is available and detected,
the command line options -h and -v are properly processed.

This error shows up only when no CPU-measurement sampling
facility is detected. Without any installed CPU-measurement sampling
facility, you can not change the CPU-measurement sampling facilities
buffer sizes (because it is not there!).

So I will change the code to honour previous behavior and print help
string and version number, even if the program can not be used properly.