Skip to content

Conversation

@soramichi
Copy link
Contributor

@soramichi soramichi commented Nov 30, 2018

Related to #97.

For processors with 8 general purpose counters, pcm-core.x sometimes cannot run due to an error: "Linux Perf: Error on programming generic event #0 error: Operation not supported".

The reason is that EventSelectRegister regs[4] has the fixed length of 4, and m->program(...) passes non-initialized garbage values to perf_event_open when the number of general purpose counters is more than 4 (by accessing regs[4], regs[5] and beyond).

Copy link
Contributor

@opcm opcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot for catching this! Please consider suggested changes

@opcm opcm merged commit 0df446a into intel:master Nov 30, 2018
@soramichi soramichi deleted the fix_regs_init branch November 30, 2018 21:48
rdementi added a commit that referenced this pull request Dec 16, 2021
add silent info option -s to pcm-memory, some additional fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants