From: Mathieu Desnoyers Date: Fri, 11 Dec 2020 15:43:08 +0000 (-0500) Subject: Cleanup: ust-abi: BITNESS_{32,64}BITS -> BITNESS_{32,64} X-Git-Tag: v2.13.0-rc1~407 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=38980ed1d67fee8112224294cba927d25dcfd08d;p=lttng-ust.git Cleanup: ust-abi: BITNESS_{32,64}BITS -> BITNESS_{32,64} Signed-off-by: Mathieu Desnoyers Change-Id: I5175116ec93d61fe55d1c17e2e2b99b02a0e73a9 --- diff --git a/include/lttng/ust-abi.h b/include/lttng/ust-abi.h index 455b0a4c..b1cd9b3d 100644 --- a/include/lttng/ust-abi.h +++ b/include/lttng/ust-abi.h @@ -110,8 +110,8 @@ enum lttng_ust_counter_arithmetic { }; enum lttng_ust_counter_bitness { - LTTNG_UST_COUNTER_BITNESS_32BITS = 4, - LTTNG_UST_COUNTER_BITNESS_64BITS = 8, + LTTNG_UST_COUNTER_BITNESS_32 = 4, + LTTNG_UST_COUNTER_BITNESS_64 = 8, }; struct lttng_ust_counter_dimension { diff --git a/liblttng-ust-ctl/ustctl.c b/liblttng-ust-ctl/ustctl.c index 8460dbf4..7d2c05a9 100644 --- a/liblttng-ust-ctl/ustctl.c +++ b/liblttng-ust-ctl/ustctl.c @@ -2579,10 +2579,10 @@ int ustctl_create_counter_data(struct ustctl_daemon_counter *counter, } switch (counter->attr->bitness) { case USTCTL_COUNTER_BITNESS_32: - counter_conf.bitness = LTTNG_UST_COUNTER_BITNESS_32BITS; + counter_conf.bitness = LTTNG_UST_COUNTER_BITNESS_32; break; case USTCTL_COUNTER_BITNESS_64: - counter_conf.bitness = LTTNG_UST_COUNTER_BITNESS_64BITS; + counter_conf.bitness = LTTNG_UST_COUNTER_BITNESS_64; break; default: return -EINVAL; diff --git a/liblttng-ust/lttng-ust-abi.c b/liblttng-ust/lttng-ust-abi.c index aad64a6d..b3506599 100644 --- a/liblttng-ust/lttng-ust-abi.c +++ b/liblttng-ust/lttng-ust-abi.c @@ -816,10 +816,10 @@ int lttng_ust_event_notifier_group_create_error_counter(int event_notifier_group return -EINVAL; switch (error_counter_conf->bitness) { - case LTTNG_UST_COUNTER_BITNESS_64BITS: + case LTTNG_UST_COUNTER_BITNESS_64: counter_transport_name = "counter-per-cpu-64-modular"; break; - case LTTNG_UST_COUNTER_BITNESS_32BITS: + case LTTNG_UST_COUNTER_BITNESS_32: counter_transport_name = "counter-per-cpu-32-modular"; break; default: