~lttng/lttng-ust/lttng-ust

« back to all changes in this revision

Viewing changes to src/lib/lttng-ust-ctl/ustctl.c

  • Committer: Mathieu Desnoyers
  • Author(s): Michael Jeanson
  • Date: 2021-04-16 15:40:38 UTC
  • Revision ID: git-v1:74cc1f594e05b5a3524529f018d85efaad53f9a3
Remove duplicated 'smp' code

libcounter contains a namespaced copy of the smp code from libringbuffer,
remove it and move the original to libcommon.

Also add comments and hide some implementation details following the ABI
cleanup.

Change-Id: Ie7d78d4f34312c5c788abc07d1806de3ce6fc04c
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "lib/lttng-ust/lttng-tracer-core.h"
33
33
#include "lib/lttng-ust/lttng-counter-client.h"
34
34
 
35
 
#include "common/counter/smp.h"
 
35
#include "common/smp.h"
36
36
#include "common/counter/counter.h"
37
37
 
38
38
/*
2534
2534
 
2535
2535
int ustctl_get_nr_cpu_per_counter(void)
2536
2536
{
2537
 
        return lttng_counter_num_possible_cpus();
 
2537
        return num_possible_cpus();
2538
2538
}
2539
2539
 
2540
2540
struct ustctl_daemon_counter *