OLD | NEW |
1 // Copyright (c) 2005, Google Inc. | 1 // Copyright (c) 2005, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 int skip_count); | 107 int skip_count); |
108 | 108 |
109 // Same as above, but to be used from a signal handler. The "uc" parameter | 109 // Same as above, but to be used from a signal handler. The "uc" parameter |
110 // should be the pointer to ucontext_t which was passed as the 3rd parameter | 110 // should be the pointer to ucontext_t which was passed as the 3rd parameter |
111 // to sa_sigaction signal handler. It may help the unwinder to get a | 111 // to sa_sigaction signal handler. It may help the unwinder to get a |
112 // better stack trace under certain conditions. The "uc" may safely be NULL. | 112 // better stack trace under certain conditions. The "uc" may safely be NULL. |
113 extern PERFTOOLS_DLL_DECL int GetStackTraceWithContext(void** result, int max_de
pth, | 113 extern PERFTOOLS_DLL_DECL int GetStackTraceWithContext(void** result, int max_de
pth, |
114 int skip_count, const void *uc); | 114 int skip_count, const void *uc); |
115 | 115 |
116 #endif /* GOOGLE_STACKTRACE_H_ */ | 116 #endif /* GOOGLE_STACKTRACE_H_ */ |
OLD | NEW |