X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fconstant.h;h=edf4c3a8dd97d9b189aae0d4779418fe1f17dc09;hb=36d2e35df61339e4394e84ad9790b984d259e0f0;hp=ed3ebe073b25c973495d059372a8a32e8ce091d9;hpb=1239a312e7e0e4c33948fdaf04e7637cb93c8b10;p=lttng-tools.git diff --git a/include/lttng/constant.h b/include/lttng/constant.h index ed3ebe073..edf4c3a8d 100644 --- a/include/lttng/constant.h +++ b/include/lttng/constant.h @@ -45,6 +45,15 @@ /* * Event symbol length. Copied from LTTng kernel ABI. */ -#define LTTNG_SYMBOL_NAME_LEN 256 +#define LTTNG_SYMBOL_NAME_LEN 256 + +/* + * PROC(5) mentions that PID_MAX_LIMIT may not exceed 2^22 on 64-bit HW. + * We prefer to use 32-bits for simplicity's sake. + */ +#define LTTNG_MAX_PID INT32_MAX +#define LTTNG_MAX_PID_STR "2147483647" + +#define LTTNG_NAME_MAX 255 #endif /* LTTNG_CONSTANT_H */