# 3. 设置已验证的函数名(根据 available_filter_functions) echo"__arm64_sys_mmap" | sudo tee -a set_graph_function > /dev/null echo"ksys_mmap_pgoff" | sudo tee -a set_graph_function > /dev/null echo"vm_mmap_pgoff" | sudo tee -a set_graph_function > /dev/null echo"do_mmap" | sudo tee -a set_graph_function > /dev/null echo"mmap_region" | sudo tee -a set_graph_function > /dev/null echo"__mmap_region" | sudo tee -a set_graph_function > /dev/null echo"rpi_gpiomem_mmap" | sudo tee -a set_graph_function > /dev/null echo"rpi_gpiomem_open" | sudo tee -a set_graph_function > /dev/null
# 4. 添加 VMA 相关函数 echo"vm_area_alloc" | sudo tee -a set_graph_function > /dev/null echo"vma_merge_new_range" | sudo tee -a set_graph_function > /dev/null echo"vma_link_file" | sudo tee -a set_graph_function > /dev/null echo"vma_set_page_prot" | sudo tee -a set_graph_function > /dev/null
# 5. 添加内存映射核心函数 echo"remap_pfn_range" | sudo tee -a set_graph_function > /dev/null echo"remap_pfn_range_internal" | sudo tee -a set_graph_function > /dev/null echo"__pte_offset_map_lock" | sudo tee -a set_graph_function > /dev/null
# 6. 配置跟踪选项 echo 1 | sudo tee options/func_stack_trace > /dev/null echo 1 | sudo tee options/sleep-time > /dev/null echo 1 | sudo tee options/graph-time > /dev/null
# 系统调用入口 echo"__arm64_sys_mmap" | sudo tee -a set_graph_function > /dev/null echo"ksys_mmap_pgoff" | sudo tee -a set_graph_function > /dev/null
# 内存管理核心函数 echo"vm_mmap_pgoff" | sudo tee -a set_graph_function > /dev/null echo"do_mmap" | sudo tee -a set_graph_function > /dev/null echo"mmap_region" | sudo tee -a set_graph_function > /dev/null echo"__mmap_region" | sudo tee -a set_graph_function > /dev/null
# VMA 操作函数 echo"vm_area_alloc" | sudo tee -a set_graph_function > /dev/null echo"vma_merge_new_range" | sudo tee -a set_graph_function > /dev/null echo"vma_link_file" | sudo tee -a set_graph_function > /dev/null echo"vma_set_page_prot" | sudo tee -a set_graph_function > /dev/null
# 文件操作相关 echo"fget" | sudo tee -a set_graph_function > /dev/null echo"fput" | sudo tee -a set_graph_function > /dev/null
# 驱动特定函数 echo"rpi_gpiomem_mmap" | sudo tee -a set_graph_function > /dev/null echo"rpi_gpiomem_open" | sudo tee -a set_graph_function > /dev/null
# 页表操作函数 echo"remap_pfn_range" | sudo tee -a set_graph_function > /dev/null echo"remap_pfn_range_internal" | sudo tee -a set_graph_function > /dev/null echo"__pte_offset_map_lock" | sudo tee -a set_graph_function > /dev/null
# 安全相关函数 echo"security_mmap_file" | sudo tee -a set_graph_function > /dev/null echo"security_mmap_addr" | sudo tee -a set_graph_function > /dev/null echo"cap_mmap_file" | sudo tee -a set_graph_function > /dev/null echo"cap_mmap_addr" | sudo tee -a set_graph_function > /dev/null
# 设置跟踪选项 echo 1 | sudo tee options/func_stack_trace > /dev/null echo 1 | sudo tee options/graph-time > /dev/null