当前位置:首页>Linux>Linux中断子系统初始化全解析:从start_kernel到GIC-V3 IRQ Domain建立 【第11篇·共15篇】

Linux中断子系统初始化全解析:从start_kernel到GIC-V3 IRQ Domain建立 【第11篇·共15篇】

  • 2026-07-02 16:35:26
Linux中断子系统初始化全解析:从start_kernel到GIC-V3 IRQ Domain建立 【第11篇·共15篇】

摘要

本文是《Linux中断子系统》系列第3章的第三篇,深入讲解Linux中断子系统的初始化流程。从start_kernel出发,依次分析trap_init(注册异常处理钩子)、early_irq_init(初始化irq_desc数组或radix tree,支持稀疏IRQ)和init_IRQ(调用irqchip_init → of_irq_init解析设备树,触发gic_of_init回调)三个关键初始化函数。随后详细分析gic_init_bases的主要步骤:读取GICD_TYPER、调用irq_domain_create_tree创建GIC IRQ Domain、设置中断处理入口gic_handle_irq、初始化Distributor/CPU Interface/ITS等。最后介绍ARM V8 GIC-V3中三个IRQ Domain(GIC Domain、ITS Domain、MSI IRQ Domain)的层级关系及其在dmesg/proc/interrupts中的体现。


3.2 Linux 中断子系统初始化过程

3.2.1 初始化入口(中断描述符的初始化)

kernel_5.15\init\main.c

Linux系统中,中断管理系统的初始化主要由几个函数来完成。在系统初始化的start_kernel()函数(在文件init/main.c中定义)中可以看到:

asmlinkage void __init start_kernel(void){……   trap_init();……   early_irq_init();   init_IRQ();……}

start_kernel()函数调用trap_init()early_irq_init()init_IRQ()三个函数来初始化中断管理系统。

trap_init 不同平台实现不一样,以ARM64为例:

kernel_5.15\arch\arm64\kernel\traps.c

void __inittrap_init(void){	register_kernel_break_hook(&bug_break_hook);	register_kernel_break_hook(&fault_break_hook);#ifdef CONFIG_KASAN_SW_TAGS	register_kernel_break_hook(&kasan_break_hook);#endif	debug_traps_init();}

trap_init 函数的主要作用包括:为每一种异常类型(如除零异常、页故障等)注册相应的异常处理函数,以便在发生异常时能够正确地处理并恢复系统状态。

early_irq_init 和 init_IRQ 的区别和联系:

  • early_irq_init

    功能描述early_irq_init函数的主要任务是在内核启动的早期阶段,对中断处理机制进行基本的初始化。此时,内核可能还没有完全准备好处理所有高级功能或硬件抽象,因此early_irq_init的初始化工作相对基础但至关重要。

    执行内容

    特点:由于early_irq_init在内核启动的早期阶段被调用,因此它需要尽可能避免依赖那些尚未初始化的内核子系统或硬件功能。

    • 初始化irq_desc结构irq_desc是Linux中断机制的核心数据结构,用于描述中断线(或中断源)。在early_irq_init函数中,会初始化这个结构的一些基本字段,为后续的中断处理做准备。

    • 设置默认的中断亲和性:决定中断应该被哪个CPU核心处理。

    • 打印中断数量信息:函数会打印出系统中可用的中断数量(NR_IRQS)。

    • 初始化中断描述符数组:遍历irq_desc数组,为每个描述符设置一些基本的属性。

  • init_IRQ

    功能描述init_IRQ函数负责在内核启动的稍后期阶段,对中断处理系统进行更完整和复杂的初始化。

    执行内容

    • 配置硬件中断控制器:根据具体的硬件平台,配置和初始化中断控制器,包括设置中断触发方式、中断优先级等。

    • 初始化设备中断:对于每个连接到系统的设备,初始化其对应的中断处理逻辑。

    • 建立中断处理程序链:建立多个处理程序之间的链接关系,确保当中断发生时,能够按照正确的顺序执行处理程序。

    • 处理特殊的中断向量:对某些特殊的中断向量进行特殊处理,以确保它们的行为符合预期。

综上所述,early_irq_init负责基本的初始化工作,为后续的启动过程和中断处理提供必要的支持;而init_IRQ则负责更完整和复杂的初始化任务,确保中断处理系统的完整性和稳定性。

start_kernel()函数中调用了early_irq_init()函数,这个函数在kernel/handle.c文件中定义。根据内核配置时是否选择了CONFIG_SPARSE_IRQ,会选择两个不同版本的early_irq_init()中的一个进行编译。CONFIG_SPARSE_IRQ配置项用于支持稀疏irq号,允许定义一个高CONFIG_NR_CPUS值但仍然不希望消耗太多内存的情况。

early_irq_init 主要工作即为初始化用于管理中断的irq_desc[NR_IRQS]数组的每个元素,主要实现如下:

#ifdef CONFIG_SPARSE_IRQint __init early_irq_init(void){int i, initcnt, node = first_online_node;struct irq_desc *desc;init_irq_default_affinity();/* Let arch update nr_irqs and return the nr of preallocated irqs */	initcnt = arch_probe_nr_irqs();printk(KERN_INFO "NR_IRQS: %d, nr_irqs: %d, preallocated irqs: %d\n",	       NR_IRQS, nr_irqs, initcnt);if (WARN_ON(nr_irqs > IRQ_BITMAP_BITS))		nr_irqs = IRQ_BITMAP_BITS;if (WARN_ON(initcnt > IRQ_BITMAP_BITS))		initcnt = IRQ_BITMAP_BITS;if (initcnt > nr_irqs)		nr_irqs = initcnt;for (i = 0; i < initcnt; i++) {		desc = alloc_desc(i, node, 0NULLNULL);set_bit(i, allocated_irqs);irq_insert_desc(i, desc);	}return arch_early_irq_init();}#else/* !CONFIG_SPARSE_IRQ */int __init early_irq_init(void){int count, i, node = first_online_node;struct irq_desc *desc;init_irq_default_affinity();printk(KERN_INFO "NR_IRQS: %d\n", NR_IRQS);	desc = irq_desc;	count = ARRAY_SIZE(irq_desc);for (i = 0; i < count; i++) {		desc[i].kstat_irqs = alloc_percpu(unsigned int);alloc_masks(&desc[i], node);raw_spin_lock_init(&desc[i].lock);lockdep_set_class(&desc[i].lock, &irq_desc_lock_class);mutex_init(&desc[i].request_mutex);desc_set_defaults(i, &desc[i], node, NULLNULL);	}return arch_early_irq_init();}

init_IRQ(void)函数是一个特定于体系结构的函数,以ARM64为例:

kernel_5.15\arch\arm64\kernel\irq.c

void __init init_IRQ(void){init_irq_stacks();   // 初始化 irq stacks 大小init_irq_scs();irqchip_init();  // 核心实现if (system_uses_irq_prio_masking()) {WARN_ON(read_sysreg(daif) & PSR_A_BIT);local_daif_restore(DAIF_PROCCTX_NOIRQ);	}}

irqchip_init 主要实现如下:

void __init irqchip_init(void){of_irq_init(__irqchip_of_table);acpi_probe_device_table(irqchip);}

of_irq_init(__irqchip_of_table) 负责遍历设备树,查找所有中断控制器节点并触发其初始化回调。

3.2.2 中断控制器初始化

针对 ARM V8 中GIC-V3的设备树文件:

/* * ARM Ltd. * ARMv8 Foundation model DTS (GICv3 configuration) *// {	gic: interrupt-controller@2f000000 {		compatible = "arm,gic-v3";#interrupt-cells = <3>;#address-cells = <1>;#size-cells = <1>;		ranges = <0x0 0x0 0x2f000000 0x100000>;		interrupt-controller;		reg =	<0x0 0x2f000000 0x0 0x10000>,			<0x0 0x2f100000 0x0 0x200000>,			<0x0 0x2c000000 0x0 0x2000>,			<0x0 0x2c010000 0x0 0x2000>,			<0x0 0x2c02f000 0x0 0x2000>;		interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;		its: msi-controller@2f020000 {			compatible = "arm,gic-v3-its";			msi-controller;#msi-cells = <1>;			reg = <0x20000 0x20000>;		};	};};
  • compatible:用于匹配GICv3驱动

  • reg:GIC的物理基地址,分别对应GICD、GICR、GICC…

  • interrupt-controller:表示该节点是一个中断控制器

初始化

kernel_5.15\drivers\irqchip\irq-gic-v3.c

IRQCHIP_DECLARE(gic_v3"arm,gic-v3"gic_of_init);

定义 IRQCHIP_DECLARE 之后,相应的内容会保存到 __irqchip_of_table 里边:

#define IRQCHIP_DECLARE(name, compat, fn) OF_DECLARE_2(irqchip, name, compat, fn)#define OF_DECLARE_2(table, name, compat, fn) \        _OF_DECLARE(table, name, compat, fn, of_init_fn_2)#define _OF_DECLARE(table, name, compat, fn, fn_type)            \    static const struct of_device_id __of_table_##name        \        __used __section(__##table##_of_table)            \         = { .compatible = compat,                \             .data = (fn == (fn_type)NULL) ? fn : fn  }

__irqchip_of_table 在链接脚本 vmlinux.lds 里,被放到了 __irqchip_begin 和 __irqchip_of_end 之间:

#ifdef CONFIG_IRQCHIP    #define IRQCHIP_OF_MATCH_TABLE()                    \        . = ALIGN(8);                           \        VMLINUX_SYMBOL(__irqchip_begin) = .;                \        *(__irqchip_of_table)                       \        *(__irqchip_of_end)#endif

在内核启动初始化中断的函数中,of_irq_init 函数会去查找设备节点信息,该函数的传入参数就是 __irqchip_of_table 段。of_irq_init 函数会根据 "arm,gic-v3" 去查找对应的设备节点,并获取设备的信息,最终会回调 IRQCHIP_DECLARE 声明的回调函数,也就是 gic_of_init,而这个函数就是 GIC 驱动的初始化入口。

#ifdef CONFIG_IRQCHIP    #define IRQCHIP_OF_MATCH_TABLE()                    \        . = ALIGN(8);                           \        VMLINUX_SYMBOL(__irqchip_begin) = .;                \        *(__irqchip_of_table)                       \        *(__irqchip_of_end)#endif

通过调试可以打印:

gic_of_init 流程——核心的处理函数就是 gic_init_bases

void __initof_irq_init(conststruct of_device_id *matches){    const struct of_device_id *match;    struct device_node *np, *parent = NULL;    struct of_intc_desc *desc, *temp_desc;    struct list_head intc_desc_list, intc_parent_list;    INIT_LIST_HEAD(&intc_desc_list);    INIT_LIST_HEAD(&intc_parent_list);    for_each_matching_node_and_match(np, matches, &match)    {    	if (!of_property_read_bool(np, "interrupt-controller") ||    			!of_device_is_available(np))    		continue;        ....    	desc->irq_init_cb = match->data;    	desc->dev = of_node_get(np);    	desc->interrupt_parent = of_irq_find_parent(np);        ....    }    ....    while (!list_empty(&intc_desc_list)) {        ret = desc->irq_init_cb(desc->dev,        			desc->interrupt_parent);        .....    }}
gic_init_bases 流程:
static int __initgic_init_bases(void __iomem *dist_base,				 struct redist_region *rdist_regs,				 u32 nr_redist_regions,				 u64 redist_stride,				 struct fwnode_handle *handle){	u32 typer;int err;if (!is_hyp_mode_available())		static_branch_disable(&supports_deactivate_key);if (static_branch_likely(&supports_deactivate_key))		pr_info("GIC: Using split EOI/Deactivate mode\n");	gic_data.fwnode = handle;	gic_data.dist_base = dist_base;	gic_data.redist_regions = rdist_regs;	gic_data.nr_redist_regions = nr_redist_regions;	gic_data.redist_stride = redist_stride;/* 确认支持 SPI 中断号最大的值为多少。*/	typer = readl_relaxed(gic_data.dist_base + GICD_TYPER);	gic_data.rdists.gicd_typer = typer;	gic_enable_quirks(readl_relaxed(gic_data.dist_base + GICD_IIDR),			  gic_quirks, &gic_data);	pr_info("%d SPIs implemented\n", GIC_LINE_NR - 32);	pr_info("%d Extended SPIs implemented\n", GIC_ESPI_NR);if (!(gic_data.flags & FLAGS_WORKAROUND_CAVIUM_ERRATUM_38539))		gic_data.rdists.gicd_typer2 = readl_relaxed(gic_data.dist_base + GICD_TYPER2);/* 向系统中注册一个 irq domain 的数据结构,irq_domain 主要作用是将硬件中断号映射到 irq number。*/	gic_data.domain = irq_domain_create_tree(handle, &gic_irq_domain_ops,						 &gic_data);	gic_data.rdists.rdist = alloc_percpu(typeof(*gic_data.rdists.rdist));	gic_data.rdists.has_rvpeid = true;	gic_data.rdists.has_vlpis = true;	gic_data.rdists.has_direct_lpi = true;	gic_data.rdists.has_vpend_valid_dirty = true;if (WARN_ON(!gic_data.domain) || WARN_ON(!gic_data.rdists.rdist)) {		err = -ENOMEM;goto out_free;	}	irq_domain_update_bus_token(gic_data.domain, DOMAIN_BUS_WIRED);	gic_data.has_rss = !!(typer & GICD_TYPER_RSS);	pr_info("Distributor has %sRange Selector support\n",		gic_data.has_rss ? "" : "no ");if (typer & GICD_TYPER_MBIS) {		err = mbi_init(handle, gic_data.domain);if (err)			pr_err("Failed to initialize MBIs\n");	}/* 设定 arch 相关的 irq handler。*/	set_handle_irq(gic_handle_irq);	gic_update_rdist_properties();/* 初始化 Distributor。*/	gic_dist_init();/* 初始化 CPU interface。*/	gic_cpu_init();/* 设置 SMP 核间交互的回调函数,用于 IPI,回调函数为 gic_raise_softirq。*/	gic_smp_init();/* 初始化 GIC 电源管理。*/	gic_cpu_pm_init();	gic_syscore_init();/* 初始化 ITS。*/if (gic_dist_supports_lpis()) {		its_init(handle, &gic_data.rdists, gic_data.domain);		its_cpu_init();else {if (IS_ENABLED(CONFIG_ARM_GIC_V2M))			gicv2m_init(handle, gic_data.domain);	}	gic_enable_nmi_support();return 0;out_free:if (gic_data.domain)		irq_domain_remove(gic_data.domain);	free_percpu(gic_data.rdists.rdist);return err;}

gic_init_bases 函数重点分析:

  • 确认支持SPI中断号最大的值。GICv3最多支持1020个中断(SPI+SGI+PPI)。GICD_TYPER寄存器bit[4:0],如果该字段的值为N,则最大SPI INTID为32(N+1)-1。

  • 调用irq_domain_create_tree向系统中注册一个irq domain的数据结构,重要参数为gic_irq_domain_opsgic_datairq_domain主要作用是将硬件中断号映射到IRQ number。

  • 用于区分MSI域,比如一个域用作PCI/MSI,一个域用作wired IRQs。

  • 判断GICD是否支持RSS(Range Selector Support),表示SGI中断亲和性的范围。

  • 判断是否支持通过写GICD寄存器生成消息中断(GICD_TYPER寄存器bit[16])。

  • 设置handle_arch_irqgic_handle_irq。在kernel发生中断后,会跳转到汇编代码entry-armv.S__irq_svc处,进而调用handle_arch_irq,从而进入GIC驱动进行后续的中断处理。

  • 初始化ITS(Interrupt Translation Service),用来解析LPI中断。初始化之前需要先判断GIC是否支持LPI,该功能在ARM里是可选的。

  • gic_smp_init主要包含两个作用:触发SGI中断用于CPU之间通信(GICv3的回调函数定义为gic_raise_softirq);设置CPU上下线流程中和GIC相关的状态机。

3.2.3 中断域初始化(irq domain)

以ARM V8为例进行代码分析,在ARM V8 GIC-V3中总共创建了三个中断域:ARM-GIC-V3 IRQ Domain、ITS Domain和MSI IRQ Domain,三者关系如下:

通过dmesg打印信息可以看到三者之间的关系:

针对54号中断:

handler:  handle_fasteoi_irqdevice:   0000:00:02.0status:   0x00000000istate:   0x00000000ddepth:   0wdepth:   0dstate:   0x33400200            IRQD_ACTIVATED            IRQD_IRQ_STARTED            IRQD_SINGLE_TARGET            IRQD_AFFINITY_ON_ACTIVATE            IRQD_DEFAULT_TRIGGER_SET            IRQD_HANDLE_ENFORCE_IRQCTXnode:     -1affinity0-3effectiv0domain:  :intc@8000000:its@8080000-3 hwirq:   0x8000 chip:    ITS-MSI flags:   0x20          IRQCHIP_ONESHOT_SAFE parent:    domain:  :intc@8000000:its@8080000-5     hwirq:   0x2000     chip:    ITS     flags:   0x0     parent:        domain:  :intc@8000000-1         hwirq:   0x2000         chip:    GICv3         flags:   0x15                    IRQCHIP_SET_TYPE_MASKED                    IRQCHIP_MASK_ON_SUSPEND                    IRQCHIP_SKIP_SET_WAKE
  • GICv3 domain 创建

  • ITS Domain 注册过程

gic_init_bases	|- its_init(handle, &gic_data.rdists, gic_data.domain);		|- its_of_probe(of_node);            |- its_probe_one(&res, &np->fwnode, of_node_to_nid(np));            	|- irq_domain_create_tree(handle, &its_domain_ops, its);staticintits_init_domain(struct fwnode_handle *handle, struct its_node *its){struct irq_domain *inner_domain;struct msi_domain_info *info;	info = kzalloc(sizeof(*info), GFP_KERNEL);if (!info)return -ENOMEM;	inner_domain = irq_domain_create_tree(handle, &its_domain_ops, its);if (!inner_domain) {		kfree(info);return -ENOMEM;	}	inner_domain->parent = its_parent;	irq_domain_update_bus_token(inner_domain, DOMAIN_BUS_NEXUS);	inner_domain->flags |= its->msi_domain_flags;	info->ops = &its_msi_domain_ops;	info->data = its;	inner_domain->host_data = info;return 0;}static const struct of_device_id its_device_id[] = {	{	.compatible	= "arm,gic-v3-its",	},	{},};static const struct irq_domain_ops its_domain_ops = {	.alloc			= its_irq_domain_alloc,	.free			= its_irq_domain_free,	.activate		= its_irq_domain_activate,	.deactivate		= its_irq_domain_deactivate,};

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-03 15:34:09 HTTP/2.0 GET : https://f.mffb.com.cn/a/495165.html
  2. 运行时间 : 0.271989s [ 吞吐率:3.68req/s ] 内存消耗:4,880.55kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=81425b8eb5018a4119865ae9facd4aff
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.001305s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001779s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000697s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.001607s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001454s ]
  6. SELECT * FROM `set` [ RunTime:0.000651s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001476s ]
  8. SELECT * FROM `article` WHERE `id` = 495165 LIMIT 1 [ RunTime:0.001604s ]
  9. UPDATE `article` SET `lasttime` = 1783064049 WHERE `id` = 495165 [ RunTime:0.011227s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.000762s ]
  11. SELECT * FROM `article` WHERE `id` < 495165 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001627s ]
  12. SELECT * FROM `article` WHERE `id` > 495165 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.008702s ]
  13. SELECT * FROM `article` WHERE `id` < 495165 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.011407s ]
  14. SELECT * FROM `article` WHERE `id` < 495165 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.025208s ]
  15. SELECT * FROM `article` WHERE `id` < 495165 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.044393s ]
0.275645s