Skip to content

Commit

Permalink
Merge pull request #281 from dbarry9/2024.11.12_cat-bug
Browse files Browse the repository at this point in the history
2024.11.12 cat bug
  • Loading branch information
Treece-Burgess authored Jan 9, 2025
2 parents a81cb4c + 4a37c72 commit 2efc5af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/counter_analysis_toolkit/eventstock.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,15 @@ int build_stock(evstock* stock)
}

if( 0 == tmp_event_count ){
fprintf(stderr,"ERROR: CPU component (%s) not found. Exiting.",_PAPI_CPU_COMPONENT_NAME);
fprintf(stderr,"ERROR: CPU component (%s) not found. Exiting.\n",_PAPI_CPU_COMPONENT_NAME);
goto gracious_error;
}

// At this point "cid" contains the id of the perf_event (CPU) component.

ret=PAPI_enum_cmp_event(&event_i,PAPI_ENUM_FIRST,cid);
if(ret!=PAPI_OK){
fprintf(stderr,"ERROR: CPU component does not contain any events. Exiting");
goto gracious_error;
return 0;
}

do{
Expand Down
1 change: 0 additions & 1 deletion src/counter_analysis_toolkit/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ int main(int argc, char*argv[])
if(status)
{
free(params.outputdir);
remove_stock(data);
if(READ_FROM_FILE == params.mode)
{
for(i = 0; i < ct; ++i)
Expand Down

0 comments on commit 2efc5af

Please sign in to comment.