Skip to content

Commit

Permalink
Merge pull request #239 from Treece-Burgess/09-17-2024-libpfm4-update
Browse files Browse the repository at this point in the history
Update libpfm4 to Commit 332285
  • Loading branch information
Treece-Burgess authored Sep 22, 2024
2 parents 7159013 + 3ad9b90 commit 7c6281e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libpfm4/lib/pfmlib_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,10 @@ pfmlib_init_env(void)
str = getenv("LIBPFM_DISABLED_PMUS");
if (str)
pfm_cfg.blacklist_pmus = str;

str = getenv("LIBPFM_PROC_CPUINFO");
if (str)
pfm_cfg.proc_cpuinfo = str;
}

static int
Expand Down
1 change: 1 addition & 0 deletions src/libpfm4/lib/pfmlib_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ typedef struct {
int inactive;
char *forced_pmu;
char *blacklist_pmus;
char *proc_cpuinfo; /* override /proc/cpuinfo with this file */
FILE *fp; /* verbose and debug file descriptor, default stderr or PFMLIB_DEBUG_STDOUT */
} pfmlib_config_t;

Expand Down

0 comments on commit 7c6281e

Please sign in to comment.