摘要: https://github.com/torvalds/linux/blob/v6.5/tools/perf/design.txt Performance Counters for Linux Performance counters are special hardware registers a 阅读全文
posted @ 2024-01-28 19:20 摩斯电码 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 目录示例程序1单计数器多计数器示例程序2Configure a single counterConfigure multiple counters (no multiplexing) 示例程序1 Linux perf子系统的使用(一)——计数 刚刚入职的时候我就研究了perf_event_open( 阅读全文
posted @ 2024-01-28 19:20 摩斯电码 阅读(495) 评论(0) 推荐(0) 编辑
摘要: 目录参考内核版本作者正文初始化内核写__perf_event_outputperf_output_begin_forwardperf_output_sampleperf_output_put_handle唤醒应用应用读 参考 perf_event内核框架 tracepoint events soft 阅读全文
posted @ 2024-01-28 17:36 摩斯电码 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 目录示例程序2采集单个值采集多个值示例程序2示例程序3 示例程序2 Linux perf子系统的使用(二)——采样(signal方式) 在上一篇《Linux perf子系统的使用(一)——计数》已经讲解了如何使用perf_event_open、read和ioctl对perf子系统进行编程。但有时我们 阅读全文
posted @ 2024-01-28 17:12 摩斯电码 阅读(541) 评论(0) 推荐(0) 编辑