+#if HAVE_PAPI
+ container_t container =
+#endif
+ PJ_container_new(str, INSTR_SMPI, father);
+#if HAVE_PAPI
+ papi_counter_t counters = smpi_process_papi_counters();
+
+ for (auto& it : counters) {
+ /**
+ * Check whether this variable already exists or not. Otherwise, it will be created
+ * multiple times but only the last one would be used...
+ */
+ if (PJ_type_get_or_null(it.first.c_str(), container->type) == nullptr) {
+ PJ_type_variable_new(it.first.c_str(), NULL, container->type);
+ }
+ }
+#endif