On 13.12.2017 00:32, Rodney W. Grimes wrote:

>> I am not sure if there are tools that can analyze stack requirements for
>> possible call chains rather than individual functions.
> 
> Call graphs can be used to find deep chains.  Combine the above
> with a call graph and we should be able to come up with some
> data.
> 
> This also sounds like a good caniate for GSOC, creation
> of a call graph with static analysis of local variable size +
> call frame size requirements as a O(1) stack space estimator.

"Longitude" of call chain greatly depends of run-time system configuration.
For example, application sendto() call can result in variable number
of system calls performing IPSEC transformations (ESP, AH, IPCOMP)
then custom PFIL processing then multiple NETGRAPH calls then complex
WiFi stack operations and each of such calls can result in kernel stack 
exhaustion.

_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to