当前位置: 首页 > article >正文

Linux: Ftrace: function_graph 里面有irq处理的函数

Linux: ftrace: echo function_graph > current_tracer
在做这个函数调用图的时候,会发现这个函数调用非常的大,有些是irq的处理函数,也放在其中,前后有标记:

Line 18702:  1)   <========== |
Line 22335:  1)   ==========> |

commit f8b755ac8e0cc3f330269e4c4504514f987167a2
Author: Frederic Weisbecker fweisbec@gmail.com
Date: Tue Dec 9 23:55:25 2008 +0100
tracing/function-graph-tracer: Output arrows signal on hardirq call/return
Impact: make more obvious the hardirq calls in the output
When a hardirq is triggered inside the codeflow on output, we have now two arrows that indicate the entry and return of the hardirq.

怎么去掉这些不关心的irq的函数调用呢?只能说自己写一个脚本将其删除。
python:

f_trace = open('trace.out', 'r')
f_message = open('trace.out.out', 'w')

	
flag1 = 0 
for line in f_trace:
	if len(line)!=1: ###if the line is empty 
		if line.find("==========>")>-1:
			flag1=1

		if line.find("<==========")>-1:
			flag1=0

		if flag1==0 and not line.find("<==========")>-1:
			f_message.write(line)


http://www.kler.cn/news/149896.html

相关文章:

  • Linux使用固定ip地址
  • Linux MYSQL-5.7.23-rpm安装(附带安装包)
  • 基于深度学习的点云三维目标检测方法综述
  • 算法基础之KMP算法
  • PHP连接数据库 错误抑制 三元运算符 学习资料
  • 解决PDF预览时,电子签章、日期等不显示问题
  • 基于springboot实现农机电招平台系统项目【项目源码+论文说明】计算机毕业设计
  • einj 注入内存ue/ce故障
  • 人工智能_机器学习055_拉格朗日乘子法_拉格朗日乘数法的原理介绍_流程详解---人工智能工作笔记0095
  • 团购生鲜系统丨分销丨外卖丨跑腿丨app小程序H5,源码交付,支持二开!
  • 轻松整合Knife4j:快速搭建Swagger文档界面与接口调试
  • 面试题背诵,回答的思路和模板,思路清晰
  • 【论文笔记】SDCL: Self-Distillation Contrastive Learning for Chinese Spell Checking
  • 基于LangChain实现的知识库问答工具Langchain-Chatchat
  • 数据库的增删查改(CRUD)基础版
  • C++面试的一些总结day1:指针和引用的区别
  • Spring Boot 在进行依赖注入时,使用了反射机制,类加载器-启动类拓展类-应用类加载器
  • 第二十章Java博客
  • Java学习笔记45——类的加载和反射机制
  • Android 13 - Media框架(14)- OpenMax(三)
  • 新王加冕,GPT-4V 屠榜视觉问答
  • Python---练习:求某同学成绩的总分及平均分
  • 二分查找(折半查找)探究学习
  • 常见的 QML 类型
  • MySQL之JDBC编程
  • 阿里巴巴矢量图标库的使用
  • calendar --- 日历相关函数
  • C++中的前缀和
  • Unity一些常用的接口
  • ubuntu 22.04版本修改时区的操作方法