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

12.profile cannot use with virtual machine #54

Open
Tigerlee233 opened this issue Aug 4, 2023 · 0 comments
Open

12.profile cannot use with virtual machine #54

Tigerlee233 opened this issue Aug 4, 2023 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@Tigerlee233
Copy link

In the 'main' function of profile.c,I cannot define the attr.type to PERF_TYPE_HARDWARE because the virtualmachine has no entry to the performance count. After changed the code like these:
attr.type = PERF_TYPE_HARDWARE;
attr.size = sizeof(attr);
attr.config = PERF_COUNT_HW_CPU_CYCLES;
I can run the profile in my virtual machine. I would like to confirm if my views are correct.And could you tell me the differeces of these two type: PERF_TYPE_HARDWARE & PERF_TYPE_SOFTWARE? If I get the online cpus' information of kernel stacks and user stacks,what's the difference between I get these information from HARD or SOFT?

@yunwei37 yunwei37 added good first issue Good for newcomers help wanted Extra attention is needed and removed good first issue Good for newcomers labels Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants