diff --git a/uncore_perf_plugin.c b/uncore_perf_plugin.c index 35d6998..0a2d76a 100644 --- a/uncore_perf_plugin.c +++ b/uncore_perf_plugin.c @@ -72,6 +72,7 @@ char* env(const char* name) int name_len = strlen(name); int scorep_len = strlen("SCOREP_METRIC_"); char* scorep_name = malloc((name_len + scorep_len) * sizeof(char)); + sprintf(scorep_name, "%s%s", "SCOREP_METRIC_", name); char* ret = getenv(scorep_name); if (ret == NULL) {