X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ust-ctl%2Fustctl.c;h=7b6798802e0b04f6058103afa73ae8df4abf3860;hb=9bc9229a85264edbc77888f1474a8f054c9ce79c;hp=bcbd9c66c2a2b01da949e7f85a6a3628a34c49dc;hpb=8449a229b6adf4ed87d34ef4d6f128e2177c3354;p=lttng-ust.git diff --git a/src/lib/lttng-ust-ctl/ustctl.c b/src/lib/lttng-ust-ctl/ustctl.c index bcbd9c66..7b679880 100644 --- a/src/lib/lttng-ust-ctl/ustctl.c +++ b/src/lib/lttng-ust-ctl/ustctl.c @@ -1384,7 +1384,7 @@ error: int lttng_ust_ctl_get_nr_stream_per_channel(void) { - return num_possible_cpus(); + return get_possible_cpus_array_len(); } struct lttng_ust_ctl_consumer_channel * @@ -2904,7 +2904,7 @@ int lttng_ust_ctl_regenerate_statedump(int sock, int handle) int lttng_ust_ctl_get_nr_cpu_per_counter(void) { - return num_possible_cpus(); + return get_possible_cpus_array_len(); } struct lttng_ust_ctl_daemon_counter * @@ -3294,6 +3294,14 @@ int lttng_ust_ctl_counter_clear(struct lttng_ust_ctl_daemon_counter *counter, return counter->ops->counter_clear(counter->counter, dimension_indexes); } +int lttng_ust_ctl_get_version(uint32_t *major, uint32_t *minor, + uint32_t *patchlevel) { + *major = LTTNG_UST_MAJOR_VERSION; + *minor = LTTNG_UST_MINOR_VERSION; + *patchlevel = LTTNG_UST_PATCHLEVEL_VERSION; + return 0; +} + static void lttng_ust_ctl_ctor(void) __attribute__((constructor));