当前位置: 首页 > 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/a/149896.html

相关文章:

  • Android Studio 2024.2.2.13版本安装配置详细教程
  • innoDB 如何解决幻读
  • .net的一些知识点3
  • 2.Python基础知识:注释、变量以及数据类型、标识符和关键字、输入函数、输出函数、运算符、程序类型转换
  • 【华为OD-E卷 - 112 任务最优调度 100分(python、java、c++、js、c)】
  • IDEA使用Auto-dev+DeepSeek 10分钟快速集成,让java开发起飞
  • 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(三)