stacktrace filter is enabled by setting the value of/debugfs/*/stacktrace-depth more than 0.and specify the range of the virtual addressby the /debugfs/*/address-start and /debugfs/*/address-endPlease see the example that demostrates how to inject slab allocationfailures only for a specific modulein Documentation/fault-injection/fault-injection.txt

/* A value of '0' means process filter is disabled. */ u32 process_filter;++ /*+ * maximam number of stacktrace depth walking allowed+ * A value of '0' means stacktrace filter is disabled.+ */+ unsigned long stacktrace_depth;++ /*+ * If stacktrace_depth is enabled, it allows failing only when it+ * has been called from the virtual addresses in the range+ * 'address_start' to 'address_end-1'+ */ + unsigned long address_start;+ unsigned long address_end;+ };