---
name: "PAPI_get_event_info"
section: "3"
platform: "linux"
package: "libpapi-dev"
version: "7.1.0-5+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PAPI_get_event_info"
---

# PAPI\_get\_event\_info(3)

Get the event's name and description info.

## NAME

PAPI\_get\_event\_info - Get the event's name and description info.

## SYNOPSIS

## Detailed Description

**Parameters**

*EventCode* event code (preset or native) \
 *info* structure with the event information **PAPI\_event\_info\_t**

**Return values**

*PAPI\_EINVAL* One or more of the arguments is invalid. \
 *PAPI\_ENOTPRESET* The PAPI preset mask was set, but the hardware event specified is not a valid PAPI preset. \
 *PAPI\_ENOEVNT* The PAPI preset is not available on the underlying hardware.

This function fills the event information into a structure. In Fortran, some fields of the structure are returned explicitly. This function works with existing PAPI preset and native event codes.

**See also**

**PAPI\_event\_name\_to\_code**

## Author

Generated automatically by Doxygen for PAPI from the source code.
