proxygen
|
#include <cstring>
#include <folly/experimental/TestUtil.h>
#include <folly/experimental/symbolizer/StackTrace.h>
#include <folly/experimental/symbolizer/Symbolizer.h>
#include <glog/logging.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Functions | |
FOLLY_NOINLINE void | foo1 () |
FOLLY_NOINLINE void | foo2 () |
void | verifyStackTraces () |
void | handler (int, siginfo_t *, void *) |
TEST (StackTraceTest, Simple) | |
TEST (StackTraceTest, Signal) | |
ssize_t | read_all (int fd, uint8_t *buffer, size_t size) |
off_t | get_stack_trace (int fd, size_t file_pos, uint8_t *buffer, size_t count) |
template<class StackTracePrinter > | |
void | testStackTracePrinter (StackTracePrinter &printer, int fd) |
TEST (StackTraceTest, SafeStackTracePrinter) | |
TEST (StackTraceTest, FastStackTracePrinter) | |
Variables | |
volatile bool | handled = false |
void foo1 | ( | ) |
Definition at line 65 of file StackTraceTest.cpp.
References foo2().
void foo2 | ( | ) |
Definition at line 69 of file StackTraceTest.cpp.
References verifyStackTraces().
Referenced by foo1(), free_function_retire_test(), TEST(), and TEST_F().
off_t get_stack_trace | ( | int | fd, |
size_t | file_pos, | ||
uint8_t * | buffer, | ||
size_t | count | ||
) |
Definition at line 115 of file StackTraceTest.cpp.
References read_all().
Referenced by testStackTracePrinter().
void handler | ( | int | , |
siginfo_t * | , | ||
void * | |||
) |
Definition at line 74 of file StackTraceTest.cpp.
References foo1(), and handled.
Referenced by wangle::PipelineBase::addBack(), wangle::PipelineBase::addFront(), HTTPDownstreamTest< SPDY3_1CodecPair >::addSimpleNiceHandler(), HTTPDownstreamTest< SPDY3_1CodecPair >::addSimpleStrictHandler(), folly::allocate_unique(), folly::gen::detail::Interleave< Container >::Generator< Value, Source >::apply(), folly::gen::Group< Key, Value >::apply(), folly::gen::detail::Zip< Container >::Generator< Value1, Source, Value2, Result >::apply(), folly::gen::detail::ReferencedSource< Container, Value >::apply(), folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::Puller::apply(), folly::gen::detail::PMap< Predicate >::Generator< Value, Source, Input, Output >::apply(), folly::gen::detail::CopiedSource< StorageType, Container >::apply(), folly::gen::detail::RangeSource< Iterator >::apply(), folly::gen::detail::Sequence< Value, SequenceImpl >::apply(), folly::gen::detail::Parallel< Ops >::Generator< Input, Source, InputDecayed, Composed, Output, OutputDecayed >::apply(), folly::gen::detail::Chain< Value, First, Second >::apply(), folly::gen::detail::ChunkedRangeSource< Iterator >::apply(), folly::gen::detail::Yield< Value, Source >::apply(), folly::gen::detail::SingleReference< Value >::apply(), folly::gen::detail::SingleCopy< Value >::apply(), folly::gen::detail::Map< Predicate >::Generator< Value, Source, Result >::apply(), folly::gen::detail::Filter< Predicate >::Generator< Value, Source >::apply(), folly::gen::detail::Until< Predicate >::Generator< Value, Source >::apply(), folly::gen::detail::Take::Generator< Value, Source >::apply(), folly::gen::detail::Visit< Visitor >::Generator< Value, Source >::apply(), folly::gen::detail::Stride::Generator< Value, Source >::apply(), folly::gen::detail::Sample< Random >::Generator< Value, Source, Rand, StorageType >::apply(), folly::gen::detail::Skip::Generator< Value, Source >::apply(), folly::gen::detail::Order< Selector, Comparer >::Generator< Value, Source, StorageType, Result >::apply(), folly::gen::detail::GroupBy< Selector >::Generator< Value, Source, ValueDecayed, Key, KeyDecayed >::apply(), folly::gen::detail::GroupByAdjacent< Selector >::Generator< Value, Source, ValueDecayed, Key, KeyDecayed >::apply(), folly::gen::detail::Distinct< Selector >::Generator< Value, Source >::apply(), folly::gen::detail::Batch::Generator< Value, Source, StorageType, VectorType >::apply(), folly::gen::detail::Window::Generator< Value, Source, StorageType >::apply(), folly::gen::detail::Concat::Generator< Inner, Source, InnerValue >::apply(), folly::gen::detail::RangeConcat::Generator< Range, Source, InnerValue >::apply(), folly::gen::detail::GuardImpl< Exception, ErrorHandler >::Generator< Value, Source >::apply(), folly::gen::detail::Dereference::Generator< Value, Source, Result >::apply(), folly::gen::detail::Indirect::Generator< Value, Source, Result >::apply(), folly::gen::detail::Cycle< forever >::Generator< Value, Source >::apply(), folly::gen::VirtualGen< Value >::WrapperImpl< Wrapped >::apply(), folly::gen::VirtualGen< Value >::apply(), folly::AsyncServerSocket::attachEventBase(), folly::AsyncServerSocket::backoffTimeoutExpired(), folly::AsyncServerSocket::detachEventBase(), TestAbortPost< stage >::doAbortTest(), folly::AsyncServerSocket::enterBackoff(), folly::LoggerDB::flushAllHandlers(), folly::LoggerDB::getConfigImpl(), folly::LogCategory::getDB(), wangle::BroadcastPool< T, R, P >::BroadcastManager::getHandler(), folly::AsyncServerSocket::getSockets(), wangle::PipelineBase::getTransport(), folly::gen::guard(), proxygen::HTTPSessionBase::handleErrorDirectly(), folly::LoggerDB::internalWarningImpl(), folly::AsyncSignalHandler::libeventCallback(), folly::EventHandler::libeventCallback(), folly::AsyncServerSocket::listen(), proxygen::MockHTTPTransaction::MockHTTPTransaction(), proxygen::RequestHandlerAdaptor::newExMessage(), proxygen::HTTPSession::newExTransaction(), wangle::ObservingPipelineFactory< std::string, std::string >::newPipeline(), wangle::MockObservingPipelineFactory::newPipeline(), proxygen::Filter::newPushedResponse(), proxygen::HTTPSession::newPushedTransaction(), proxygen::HTTPSession::numIncomingStreams(), proxygen::RequestHandlerAdaptor::onExTransaction(), HTTPUpstreamTest< SPDY3CodecPair >::openNiceTransaction(), HTTPUpstreamTest< SPDY3CodecPair >::openTransaction(), MockHTTPUpstreamTest::openTransaction(), folly::gen::operator|(), folly::AsyncServerSocket::pauseAccepting(), wangle::PipelineBase::remove(), folly::AsyncServerSocket::removeAcceptCallback(), wangle::PipelineBase::removeHelper(), proxygen::MockHTTPTransactionTransport::sendBody(), proxygen::HTTPTransaction::setHandler(), folly::AsyncServerSocket::setKeepAliveEnabled(), wangle::PipelineBase::setOwner(), proxygen::RequestHandler::setResponseHandler(), proxygen::Filter::setResponseHandler(), folly::AsyncServerSocket::setReusePortEnabled(), folly::AsyncServerSocket::setTosReflect(), EchoHandlerFixture::SetUp(), BroadcastHandlerTest::SetUp(), proxygen::HTTPDownstreamSession::setupOnHeadersComplete(), proxygen::ScopedHTTPServer::start(), folly::AsyncServerSocket::startAccepting(), folly::LoggerDB::startConfigUpdate(), wangle::StaticPipeline< R, W, Handler, Handlers... >::StaticPipeline(), folly::AsyncServerSocket::stopAccepting(), TEST(), TEST_F(), HTTPUpstreamTest< C >::testBasicRequest(), HTTPUpstreamTest< C >::testBasicRequestHttp10(), HTTPDownstreamTest< C >::testChunks(), MockCodecDownstreamTest::testGoaway(), testNumHandlers(), HTTPDownstreamTest< C >::testPriorities(), HTTPDownstreamTest< C >::testSimpleUpgrade(), HTTPUpstreamTest< C >::testSimpleUpgrade(), proxygen::HTTPSession::transactionTimeout(), TYPED_TEST_P(), proxygen::HTTPTransaction::Transport::~Transport(), and folly::gen::VirtualGen< Value >::WrapperBase::~WrapperBase().
ssize_t read_all | ( | int | fd, |
uint8_t * | buffer, | ||
size_t | size | ||
) |
Definition at line 95 of file StackTraceTest.cpp.
References buffer(), fizz::detail::read(), and uint8_t.
Referenced by get_stack_trace().
TEST | ( | StackTraceTest | , |
Simple | |||
) |
Definition at line 81 of file StackTraceTest.cpp.
References foo1().
TEST | ( | StackTraceTest | , |
Signal | |||
) |
TEST | ( | StackTraceTest | , |
SafeStackTracePrinter | |||
) |
Definition at line 150 of file StackTraceTest.cpp.
References folly::test::TemporaryFile::fd().
TEST | ( | StackTraceTest | , |
FastStackTracePrinter | |||
) |
Definition at line 158 of file StackTraceTest.cpp.
References folly::test::TemporaryFile::fd().
void testStackTracePrinter | ( | StackTracePrinter & | printer, |
int | fd | ||
) |
Definition at line 127 of file StackTraceTest.cpp.
References ASSERT_GT, ASSERT_STREQ, folly::gen::first, and get_stack_trace().
void verifyStackTraces | ( | ) |
Definition at line 33 of file StackTraceTest.cpp.
References folly::symbolizer::FrameArray< N >::addresses, folly::symbolizer::SymbolizePrinter::COLOR_IF_TTY, EXPECT_EQ, folly::symbolizer::FrameArray< N >::frameCount, folly::symbolizer::getStackTrace(), folly::symbolizer::getStackTraceSafe(), i, folly::INFO, folly::symbolizer::SymbolizePrinter::println(), and folly::symbolizer::Symbolizer::symbolize().
Referenced by foo2().
volatile bool handled = false |
Definition at line 73 of file StackTraceTest.cpp.
Referenced by folly::StandardLogHandlerFactory::createHandler(), folly::exception_wrapper::handle_(), handler(), TEST(), and folly::exception_wrapper::with_exception_().