Caffe2 - C++ API
A deep learning, cross platform ML framework
static_tracepoint.h
1 
17 /*
18  * Copyright 2017 Facebook, Inc.
19  *
20  * Licensed under the Apache License, Version 2.0 (the "License");
21  * you may not use this file except in compliance with the License.
22  * You may obtain a copy of the License at
23  *
24  * http://www.apache.org/licenses/LICENSE-2.0
25  *
26  * Unless required by applicable law or agreed to in writing, software
27  * distributed under the License is distributed on an "AS IS" BASIS,
28  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29  * See the License for the specific language governing permissions and
30  * limitations under the License.
31  */
32 
33 #pragma once
34 
35 #if defined(__ELF__) && (defined(__x86_64__) || defined(__i386__))
36 #include <caffe2/core/static_tracepoint_elfx86.h>
37 
38 #define CAFFE_SDT(name, ...) \
39  CAFFE_SDT_PROBE_N( \
40  caffe2, name, CAFFE_SDT_NARG(0, ##__VA_ARGS__), ##__VA_ARGS__)
41 #else
42 #define CAFFE_SDT(name, ...) do {} while(0)
43 #endif