PT_LIBRARY_VERSION(3)

NAME

pt_library_version - version information

SYNOPSIS

#include <intel-pt.h>
struct pt_version pt_library_version();

Link with -lipt.

DESCRIPTION

pt_library_version() returns the decoder library version.

RETURN VALUE

pt_library_version() returns a pt_version structure which is declared as:

    /** The library version. */
    struct pt_version {
        /** Major version number. */
        uint8_t major;
        /** Minor version number. */
        uint8_t minor;
        /** Patch level. */
        uint16_t patch;
        /** Build number. */
        uint32_t build;
        /** Version extension. */
        const char *ext;
    };