Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024.11.12 cat bug #281

Merged
merged 3 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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