当前位置:首页>Linux>打破禁区:在 ARM64 Linux 上“强开”中断抢占

打破禁区:在 ARM64 Linux 上“强开”中断抢占

  • 2026-02-06 18:09:48
打破禁区:在 ARM64 Linux 上“强开”中断抢占

一、Linux 的中断策略

1.1 核心概念:PSTATE中的DAIF

在深入探讨“中断抢占”之前,我们需要先回到 ARM Architecture Reference Manual,看懂控制 CPU 控制中断的四个开关——PSTATE 寄存器中的 DAIF 域。

这四个位决定了 CPU 当前是否响应特定的异常事件:

  • • D (Debug): 调试异常掩码。如果设为 1,Breakpoint 和 Watchpoint 将被忽略。
  • • A (SError): 系统错误掩码。处理异步外部中断(Asynchronous External Abort),通常代表严重的硬件故障。
  • • I (IRQ)普通中断掩码。控制定时器、网络、外设等常规中断的响应。
  • • F (FIQ): 快速中断掩码。在 Linux 中通常用于 TrustZone,或者作为伪 NMI 使用。

当这些位为 1 (Masked) 时,表示为中断屏蔽;只有为 0 (Unmasked) 时,CPU 才会去处理异常。

由于硬件操作,DAIF 默认被屏蔽。那么,这是否意味着 Arm64 不支持中断嵌套呢?

让我们看看官方文档的说明:

If software is to support nested exceptions, for example, to allow a higher priority exception to interrupt the handling of a lower priority exception, then software needs to explicitly re-enable interrupts. After corruptible registers have been stacked, exceptions can be nested.

换句话说,要在 Arm64 下实现抢占,需要通过软件解除 DAIF 屏蔽

1.2 Linux的处理策略

在 ARM64 架构的 Linux 世界中,当一个 IRQ 发生时,硬件逻辑会自动将 PSTATE.DAIF 全部置为 1。这意味着,在进入中断向量表的那一刻,CPU 处于一种“绝对原子”的状态——不响应调试、不理会硬件报错、更不会被其他中断打断。然而,Linux 内核并非一直保持这种全封闭状态。在 entry.S 的处理逻辑中,内核会显式调用 enable_da_f

el1_irq:        kernel_entry 1        enable_da_f

只清除了 D、A 和 F的掩码,唯独保留了 PSTATE.I = 1。这意味着绝对禁止另一个 IRQ 进来抢占当前的 CPU 资源。

为了更好的理解,尝试用Qemu来复现这个环境,在 Qemu 中添加一个GPIO控制器,通过 QMP 给 Linux 中注入 GPIO 中断,中断服务函数打印出 DAIF 的值。

// Linux上的测试程序,只贴出关键部分。static irqreturn_t daif_spy_isr(int irq, void *dev_id){    unsigned long daif;    asm volatile("mrs %0, daif" : "=r"(daif));    pr_info("[Target Verified] DAIF: 0x%lx \n", daif);    pl061_write(PL061_ICR, gpio_mask);    return IRQ_HANDLED;}

可以看到终端输出

 [Target Verified] DAIF: 0x80

DAIF = 0x80 → 只有 I=1(IRQ 屏蔽),D/A/F 已被清掉。

接下来尝试把el1_irq 中的enable_da_f 注释。

终端输出:

 [Target Verified] DAIF: 0x3c0

DAIF = 0x3c0 → D/A/I/F 全部为 1(全部屏蔽)

那么Linux为什么要这么设计只禁用IRQ?

ARM64 的内核栈通常只有 16KB,如果允许中断嵌套,每来一个中断就要压一次栈。如果出现了中断风暴,就很容易爆栈。

支持中断嵌套也会引入额外的重入问题。中断 A 拿了一把锁,被中断 B 打断,中断 B 又要去拿同一把锁,这就死锁了。

Linux 内核社区在极速响应系统稳定之间,毫不犹豫地选择了后者。对于服务器而言,晚 10 微秒响应网卡中断是可以接受的,但内核栈溢出导致宕机是不可接受的。

而需要enable_da_f 的原因是因为需要及时响应高优先级异常(Debug/SError/FIQ),其场景有:

  1. 1. Debug(D)
    • • 内核调试/跟踪:kgdb、kprobe、breakpoint、single-step、ptrace 等需要在任意时刻插入。
    • • 如果在 IRQ 里把 D 也屏蔽,会导致调试点失效或延迟,影响定位严重 bug。
  2. 2. SError(A)
    • • 硬件错误上报:ECC、总线/内存子系统异步错误、RAS 事件。
    • • 这类错误往往“时间敏感”,延迟处理可能导致错误扩散或丢失上下文。
    • • firmware‑first 系统尤其希望尽快进入 EL3/firmware 处理。
  3. 3. FIQ(F)
    • • 更高优先级的快速中断:某些平台把看门狗、关键计时器、性能/安全相关事件放在 FIQ。
    • • 如果在 IRQ 中屏蔽 FIQ,可能导致看门狗超时或关键定时事件延迟。

我们前面讨论的 DAIF 都是异步异常。有些读者可能会问,既然我们都在 IRQ 里了,那由代码逻辑直接触发的同步异常(如访问空指针、缺页)会被屏蔽吗?答案是:不会,而且是致命的。即使 DAIF 全关,一旦触发缺页,CPU 依然会跳转到 el1_sync。但因为此时内核处于原子上下文(Atomic Context),无法睡眠等待磁盘 I/O,内核会直接由 OOPS 转为 Panic。

既然Linux 对中断嵌套的态度已经很明确了:不支持。那如果尝试在 Linux 中支持中断嵌套,会对中断延迟性能提高还是降低呢?

二、打破禁区

接下来,我们开始进行这个实验——在 GPIO 中断上下文中解除 I 位屏蔽,然后触发另一个中断,观察是否能实现中断抢占。

测试方法是在 Qemu 中添加两个 GPIO chip。由于 Linux 在 GIC 驱动中将所有 SPI/PPI 的默认优先级设为 0xa0,外设之间默认没有优先级区分。我们通过设置 GIC 的 IPRIORITYR 寄存器,让 GPIO B 的优先级高于 GPIO A。

在 GPIO A 的 ISR 中加入延时窗口,然后触发 GPIO B 中断,这样就能观察到中断抢占现象。

终端输入的日志为:

[  194.630234] [Target Verified] DAIF: 0x80 (I-bit is SET) depth=1[  194.632865] daif_spy: HPPIR=0x00000005 iter=0[  194.633854] daif_spy: DAIF after enable=0x0[  194.634426] daif_spy: GIC PMR=0xf0 BPR=0x03 HPPIR=0x00000005 IGRPEN1=0x01 CTLR=0x8c00[  195.351570] daif_spy_b: first hit (depth=1) ——> **执行了GPIO B的ISR**[  196.635751] daif_spy: preempt_hits=1 ——> 回到**GPIO A的ISR**[  196.636346] [Target Verified] DAIF: 0x80 (I-bit is SET)

时间轴参考如下:

  t0: GPIO_A 触发 (IRQ_A / daif_spy为 GPIO_A 中断服务函数)      ├─ 进入 IRQ_A      │   irq_depth: 0 → 1      │   preempt_hits: 0      │   DAIF = 0x80 (I-bit set)      │      │   local_irq_enable()      │   DAIF = 0x0  (I-bit clear)      │   busy_us 延迟窗口      │  t1: GPIO_B 触发 (IRQ_B / daif_spy_b 为 GPIO_B 中断服务函数)      ├─ 进入 IRQ_B(抢占 IRQ_A)      │   irq_depth: 仍为 1   (B ISR 读取 depth=1)      │   preempt_hits: 0 → 1 (在 B ISR 内检测到 depth>0)      │   IRQ_B 处理完成      │      └─ 返回 IRQ_A          IRQ_A 收尾:          local_irq_disable()          clear IRQ_A          打印 preempt_hits=1          irq_depth: 1 → 0

我们通过挂载 Tracepoint 从第三方角度观察中断抢占:

 echo 0 > /sys/kernel/tracing/tracing_on  echo > /sys/kernel/tracing/trace  echo 1 > /sys/kernel/tracing/events/irq/irq_handler_entry/enable  echo 1 > /sys/kernel/tracing/events/irq/irq_handler_exit/enable  echo 1 > /sys/kernel/tracing/tracing_on

模拟注入 GPIO 中断后查看 Trace 日志:

<idle>-0     [000] d.h.   194.629827: irq_handler_entry: irq=49 name=daif_spy<idle>-0     [000] d.h.   195.351225: irq_handler_entry: irq=50 name=daif_spy_b<idle>-0     [000] d.h.   195.352257: irq_handler_exit: irq=50 ret=handled<idle>-0     [000] dNh.   196.636168: irq_handler_exit: irq=49 ret=handled

从日志中可以看到:

CPU Timeline:|----------------- IRQ A (GPIO_A) -----------------|      [Unmask I]          |          |   /--- IRQ B (GPIO_B) ---\          |   |                      |          +-->| Preempts A!          |              |                      |              \----------------------/          |      [Mask I]|--------------------------------------------------|

这是标准的嵌套/抢占模式,说明 GPIO_B 成功在 GPIO_A 的中断服务函数内完成了抢占。

总结

我们从技术上验证了 Linux 可以通过简单修改代码来实现中断抢占,但真的有必要这么做吗?

对于通用 Linux,不推荐。风险(栈溢出、死锁)远大于收益。

对于特定嵌入式场景(已知中断源有限、栈可控),这是一种极端优化手段,但更推荐使用中断线程化。中断线程化通过将中断处理程序分为上半部和下半部,在保持系统稳定性的同时,也能提供足够的实时性保证。

此外,对于需要极低延迟的场景,可以考虑使用 PREEMPT_RT 补丁或者专门的实时操作系统。通过这次死磕,我们证明了:规则是可以被打破的,但前提是你必须完全理解规则存在的意义。 Linux 关闭中断抢占不是因为‘做不到’,而是为了换取系统全局的稳定性。

If software is to support nested exceptions, for example, to allow a higher priority exception to interrupt the handling of a lower priority exception, then software needs to explicitly re-enable interrupts. After corruptible registers have been stacked, exceptions can be nested.

换句话说,要在 Arm64 下实现抢占,需要通过软件解除 DAIF 屏蔽

1.2 Linux的处理策略

在 ARM64 架构的 Linux 世界中,当一个 IRQ 发生时,硬件逻辑会自动将 PSTATE.DAIF 全部置为 1。这意味着,在进入中断向量表的那一刻,CPU 处于一种“绝对原子”的状态——不响应调试、不理会硬件报错、更不会被其他中断打断。然而,Linux 内核并非一直保持这种全封闭状态。在 entry.S 的处理逻辑中,内核会显式调用 enable_da_f

el1_irq:        kernel_entry 1        enable_da_f

只清除了 D、A 和 F的掩码,唯独保留了 PSTATE.I = 1。这意味着绝对禁止另一个 IRQ 进来抢占当前的 CPU 资源。

为了更好的理解,尝试用Qemu来复现这个环境,在 Qemu 中添加一个GPIO控制器,通过 QMP 给 Linux 中注入 GPIO 中断,中断服务函数打印出 DAIF 的值。

// Linux上的测试程序,只贴出关键部分。static irqreturn_t daif_spy_isr(int irq, void *dev_id){    unsigned long daif;    asm volatile("mrs %0, daif" : "=r"(daif));    pr_info("[Target Verified] DAIF: 0x%lx \n", daif);    pl061_write(PL061_ICR, gpio_mask);    return IRQ_HANDLED;}

可以看到终端输出

 [Target Verified] DAIF: 0x80

DAIF = 0x80 → 只有 I=1(IRQ 屏蔽),D/A/F 已被清掉。

接下来尝试把el1_irq 中的enable_da_f 注释。

终端输出:

 [Target Verified] DAIF: 0x3c0

DAIF = 0x3c0 → D/A/I/F 全部为 1(全部屏蔽)

那么Linux为什么要这么设计只禁用IRQ?

ARM64 的内核栈通常只有 16KB,如果允许中断嵌套,每来一个中断就要压一次栈。如果出现了中断风暴,就很容易爆栈。

支持中断嵌套也会引入额外的重入问题。中断 A 拿了一把锁,被中断 B 打断,中断 B 又要去拿同一把锁,这就死锁了。

Linux 内核社区在极速响应系统稳定之间,毫不犹豫地选择了后者。对于服务器而言,晚 10 微秒响应网卡中断是可以接受的,但内核栈溢出导致宕机是不可接受的。

而需要enable_da_f 的原因是因为需要及时响应高优先级异常(Debug/SError/FIQ),其场景有:

  1. 1. Debug(D)
    • • 内核调试/跟踪:kgdb、kprobe、breakpoint、single-step、ptrace 等需要在任意时刻插入。
    • • 如果在 IRQ 里把 D 也屏蔽,会导致调试点失效或延迟,影响定位严重 bug。
  2. 2. SError(A)
    • • 硬件错误上报:ECC、总线/内存子系统异步错误、RAS 事件。
    • • 这类错误往往“时间敏感”,延迟处理可能导致错误扩散或丢失上下文。
    • • firmware‑first 系统尤其希望尽快进入 EL3/firmware 处理。
  3. 3. FIQ(F)
    • • 更高优先级的快速中断:某些平台把看门狗、关键计时器、性能/安全相关事件放在 FIQ。
    • • 如果在 IRQ 中屏蔽 FIQ,可能导致看门狗超时或关键定时事件延迟。

我们前面讨论的 DAIF 都是异步异常。有些读者可能会问,既然我们都在 IRQ 里了,那由代码逻辑直接触发的同步异常(如访问空指针、缺页)会被屏蔽吗?答案是:不会,而且是致命的。即使 DAIF 全关,一旦触发缺页,CPU 依然会跳转到 el1_sync。但因为此时内核处于原子上下文(Atomic Context),无法睡眠等待磁盘 I/O,内核会直接由 OOPS 转为 Panic。

既然Linux 对中断嵌套的态度已经很明确了:不支持。那如果尝试在 Linux 中支持中断嵌套,会对中断延迟性能提高还是降低呢?

二、打破禁区

接下来,我们开始进行这个实验——在 GPIO 中断上下文中解除 I 位屏蔽,然后触发另一个中断,观察是否能实现中断抢占。

测试方法是在 Qemu 中添加两个 GPIO chip。由于 Linux 在 GIC 驱动中将所有 SPI/PPI 的默认优先级设为 0xa0,外设之间默认没有优先级区分。我们通过设置 GIC 的 IPRIORITYR 寄存器,让 GPIO B 的优先级高于 GPIO A。

在 GPIO A 的 ISR 中加入延时窗口,然后触发 GPIO B 中断,这样就能观察到中断抢占现象。

终端输入的日志为:

[  194.630234] [Target Verified] DAIF: 0x80 (I-bit is SET) depth=1[  194.632865] daif_spy: HPPIR=0x00000005 iter=0[  194.633854] daif_spy: DAIF after enable=0x0[  194.634426] daif_spy: GIC PMR=0xf0 BPR=0x03 HPPIR=0x00000005 IGRPEN1=0x01 CTLR=0x8c00[  195.351570] daif_spy_b: first hit (depth=1) ——> **执行了GPIO B的ISR**[  196.635751] daif_spy: preempt_hits=1 ——> 回到**GPIO A的ISR**[  196.636346] [Target Verified] DAIF: 0x80 (I-bit is SET)

时间轴参考如下:

  t0: GPIO_A 触发 (IRQ_A / daif_spy为 GPIO_A 中断服务函数)      ├─ 进入 IRQ_A      │   irq_depth: 0 → 1      │   preempt_hits: 0      │   DAIF = 0x80 (I-bit set)      │      │   local_irq_enable()      │   DAIF = 0x0  (I-bit clear)      │   busy_us 延迟窗口      │  t1: GPIO_B 触发 (IRQ_B / daif_spy_b 为 GPIO_B 中断服务函数)      ├─ 进入 IRQ_B(抢占 IRQ_A)      │   irq_depth: 仍为 1   (B ISR 读取 depth=1)      │   preempt_hits: 0 → 1 (在 B ISR 内检测到 depth>0)      │   IRQ_B 处理完成      │      └─ 返回 IRQ_A          IRQ_A 收尾:          local_irq_disable()          clear IRQ_A          打印 preempt_hits=1          irq_depth: 1 → 0

我们通过挂载 Tracepoint 从第三方角度观察中断抢占:

 echo 0 > /sys/kernel/tracing/tracing_on  echo > /sys/kernel/tracing/trace  echo 1 > /sys/kernel/tracing/events/irq/irq_handler_entry/enable  echo 1 > /sys/kernel/tracing/events/irq/irq_handler_exit/enable  echo 1 > /sys/kernel/tracing/tracing_on

模拟注入 GPIO 中断后查看 Trace 日志:

<idle>-0     [000] d.h.   194.629827: irq_handler_entry: irq=49 name=daif_spy<idle>-0     [000] d.h.   195.351225: irq_handler_entry: irq=50 name=daif_spy_b<idle>-0     [000] d.h.   195.352257: irq_handler_exit: irq=50 ret=handled<idle>-0     [000] dNh.   196.636168: irq_handler_exit: irq=49 ret=handled

从日志中可以看到:

CPU Timeline:|----------------- IRQ A (GPIO_A) -----------------|      [Unmask I]          |          |   /--- IRQ B (GPIO_B) ---\          |   |                      |          +-->| Preempts A!          |              |                      |              \----------------------/          |      [Mask I]|--------------------------------------------------|

这是标准的嵌套/抢占模式,说明 GPIO_B 成功在 GPIO_A 的中断服务函数内完成了抢占。

三、总结

我们从技术上验证了 Linux 可以通过简单修改代码来实现中断抢占,但真的有必要这么做吗?

对于通用 Linux,不推荐。风险(栈溢出、死锁)远大于收益。

对于特定嵌入式场景(已知中断源有限、栈可控),这是一种极端优化手段,但更推荐使用中断线程化。中断线程化通过将中断处理程序分为上半部和下半部,在保持系统稳定性的同时,也能提供足够的实时性保证。

此外,对于需要极低延迟的场景,可以考虑使用 PREEMPT_RT 补丁或者专门的实时操作系统。通过这次死磕,我们证明了:规则是可以被打破的,但前提是你必须完全理解规则存在的意义。 Linux 关闭中断抢占不是因为‘做不到’,而是为了换取系统全局的稳定性。

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-02-08 04:39:38 HTTP/2.0 GET : https://f.mffb.com.cn/a/466567.html
  2. 运行时间 : 0.208983s [ 吞吐率:4.79req/s ] 内存消耗:4,494.84kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=1f29b73475d62efe27c1382fe78d4dc9
  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.001062s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001442s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000721s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000722s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001332s ]
  6. SELECT * FROM `set` [ RunTime:0.001135s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001421s ]
  8. SELECT * FROM `article` WHERE `id` = 466567 LIMIT 1 [ RunTime:0.002300s ]
  9. UPDATE `article` SET `lasttime` = 1770496778 WHERE `id` = 466567 [ RunTime:0.003145s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.001144s ]
  11. SELECT * FROM `article` WHERE `id` < 466567 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.001211s ]
  12. SELECT * FROM `article` WHERE `id` > 466567 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.002077s ]
  13. SELECT * FROM `article` WHERE `id` < 466567 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.014970s ]
  14. SELECT * FROM `article` WHERE `id` < 466567 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.013214s ]
  15. SELECT * FROM `article` WHERE `id` < 466567 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.013390s ]
0.210553s