X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-tracepoint-event-write.h;h=faf26e2c0ced9fa0b7e3159f49c1399dd591bc4a;hb=48d660d146a6c8c7c8a54a183faac7d493deb32b;hp=e0c6eed7e3e8fcde9ddbc7d730fe5fbedc834157;hpb=180901e6c233d9a352ab4ba5f31ddae460017774;p=lttng-ust.git diff --git a/include/lttng/ust-tracepoint-event-write.h b/include/lttng/ust-tracepoint-event-write.h index e0c6eed7..faf26e2c 100644 --- a/include/lttng/ust-tracepoint-event-write.h +++ b/include/lttng/ust-tracepoint-event-write.h @@ -10,6 +10,14 @@ * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. */ #undef ctf_integer @@ -42,14 +50,33 @@ #undef ctf_sequence #define ctf_sequence(_type, _item, _src, _length_type, _src_length) \ - _ctf_sequence_encoded(_type, _item, _src, \ - _length_type, _src_length, none, 0) + _ctf_sequence_encoded(_type, _item, _src, BYTE_ORDER, \ + _length_type, _src_length, none, 0, 10) + +#undef ctf_sequence_hex +#define ctf_sequence_hex(_type, _item, _src, _length_type, _src_length) \ + _ctf_sequence_encoded(_type, _item, _src, BYTE_ORDER, \ + _length_type, _src_length, none, 0, 16) + +#undef ctf_sequence_network +#define ctf_sequence_network(_type, _item, _src, _length_type, _src_length) \ + _ctf_sequence_encoded(_type, _item, _src, BIG_ENDIAN, \ + _length_type, _src_length, none, 0, 10) + +#undef ctf_sequence_network_hex +#define ctf_sequence_network_hex(_type, _item, _src, _length_type, _src_length) \ + _ctf_sequence_encoded(_type, _item, _src, BIG_ENDIAN, \ + _length_type, _src_length, none, 0, 16) #undef ctf_sequence_text #define ctf_sequence_text(_type, _item, _src, _length_type, _src_length) \ - _ctf_sequence_encoded(_type, _item, _src, \ - _length_type, _src_length, UTF8, 0) + _ctf_sequence_encoded(_type, _item, _src, BYTE_ORDER, \ + _length_type, _src_length, UTF8, 0, 10) #undef ctf_string #define ctf_string(_item, _src) \ _ctf_string(_item, _src, 0) + +#undef ctf_enum +#define ctf_enum(_provider, _name, _type, _item, _src) \ + _ctf_enum(_provider, _name, _type, _item, _src, 0)