]>
git.proxmox.com Git - ceph.git/blob - ceph/src/common/BackTrace.h
fe0ad0e7efacd21abc705f2797ef0cd0fcaa06c8
1 #ifndef CEPH_BACKTRACE_H
2 #define CEPH_BACKTRACE_H
14 const static int max
= 100;
21 explicit BackTrace(int s
) : skip(s
) {
22 #ifdef HAVE_EXECINFO_H
23 size
= backtrace(array
, max
);
24 strings
= backtrace_symbols(array
, size
);
35 BackTrace(const BackTrace
& other
);
36 const BackTrace
& operator=(const BackTrace
& other
);
38 void print(std::ostream
& out
) const;
41 inline std::ostream
& operator<<(std::ostream
& out
, const BackTrace
& bt
) {