How to print stack uses of IRQ in ARM64

From: Vishnu Motghare
Date: Thu May 31 2018 - 06:07:26 EST


I found this discussion (https://lwn.net/Articles/657969/) regarding
implementation of separate IRQ stack for ARM64.

My understanding is each CPU getting its own IRQ stack. So is it
possible to print the stack uses of each IRQ handler? like, How much
stack is used & how much left free ?

like in process context we have API like stack_not_used(struct
task_struct *p) to get the unused stack of processes. So, is it
possible to get the similar result for IRQ?