17ec681f3Smrg/* 27ec681f3Smrg * Copyright (C) 2014 The Android Open Source Project 37ec681f3Smrg * 47ec681f3Smrg * Licensed under the Apache License, Version 2.0 (the "License"); 57ec681f3Smrg * you may not use this file except in compliance with the License. 67ec681f3Smrg * You may obtain a copy of the License at 77ec681f3Smrg * 87ec681f3Smrg * http://www.apache.org/licenses/LICENSE-2.0 97ec681f3Smrg * 107ec681f3Smrg * Unless required by applicable law or agreed to in writing, software 117ec681f3Smrg * distributed under the License is distributed on an "AS IS" BASIS, 127ec681f3Smrg * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 137ec681f3Smrg * See the License for the specific language governing permissions and 147ec681f3Smrg * limitations under the License. 157ec681f3Smrg */ 167ec681f3Smrg 177ec681f3Smrg#ifndef _BACKTRACE_BACKTRACE_CONSTANTS_H 187ec681f3Smrg#define _BACKTRACE_BACKTRACE_CONSTANTS_H 197ec681f3Smrg 207ec681f3Smrg// When the pid to be traced is set to this value, then trace the current 217ec681f3Smrg// process. If the tid value is not BACKTRACE_NO_TID, then the specified 227ec681f3Smrg// thread from the current process will be traced. 237ec681f3Smrg#define BACKTRACE_CURRENT_PROCESS (-1) 247ec681f3Smrg// When the tid to be traced is set to this value, then trace the specified 257ec681f3Smrg// current thread of the specified pid. 267ec681f3Smrg#define BACKTRACE_CURRENT_THREAD (-1) 277ec681f3Smrg 287ec681f3Smrg#define MAX_BACKTRACE_FRAMES 256 297ec681f3Smrg 307ec681f3Smrg#endif // _BACKTRACE_BACKTRACE_CONSTANTS_H 31