logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pmSetProgname, pmGetProgname - application name services

C Synopsis

#include<pcp/pmapi.h>voidpmSetProgname(constchar*program);char*pmGetProgname(void);cc...-lpcp

Description

       Within  the Performance Co-Pilot (PCP) run-time libraries the name of a running application is maintained
       to be used in error and diagnostic messages.

       The default application name is pcp.

       pmSetProgname may be used to set the application name to program after stripping any  leading  components
       that begin with the filesystem path name separator (``/'' for Unix-like systems).

       It  is  the  callers  responsibility to ensure the memory pointed to by program remains available for the
       life of the application.  Typically, the value passed as program for a C program would  be  argv[0].   If
       program is NULL, the default application name is restored.

       pmGetProgname may be used to return the current application name.

Name

pmSetProgname, pmGetProgname - application name services

See Also

PMAPI(3).

Performance Co-Pilot                                   PCP                                      PMSETPROGNAME(3)

See Also