ithemal / bhive

MIT License
35 stars 12 forks source link

Add function prototype for perf_event_open #11

Open andreas-abel opened 2 years ago

andreas-abel commented 2 years ago

This pull request adds a missing prototype for perf_event_open.

Without this, the following warning occurs when running make:

rdpmc.c: In function ‘rdpmc_open_attr’:
rdpmc.c:85:12: warning: implicit declaration of function ‘perf_event_open’ [-Wimplicit-function-declaration]
   85 |  ctx->fd = perf_event_open(attr, 0, -1,
fioushen commented 2 years ago

这是来自QQ邮箱的自动回复邮件。您好,申园园已收到您的邮件,谢谢。