projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change lttng.h API char to const char
[lttng-tools.git]
/
liblttngctl
/
liblttngctl.c
diff --git
a/liblttngctl/liblttngctl.c
b/liblttngctl/liblttngctl.c
index 38c9945b9e8ab25191b4523b4aa8db9c718cf635..e693123b9c1c384b5d18f8f9eaa1d64984fe991d 100644
(file)
--- a/
liblttngctl/liblttngctl.c
+++ b/
liblttngctl/liblttngctl.c
@@
-268,7
+268,7
@@
end:
/*
* Start tracing for all trace of the session.
*/
/*
* Start tracing for all trace of the session.
*/
-int lttng_start_tracing(char *session_name)
+int lttng_start_tracing(c
onst c
har *session_name)
{
strncpy(lsm.session_name, session_name, NAME_MAX);
return ask_sessiond(LTTNG_START_TRACE, NULL);
{
strncpy(lsm.session_name, session_name, NAME_MAX);
return ask_sessiond(LTTNG_START_TRACE, NULL);
@@
-277,7
+277,7
@@
int lttng_start_tracing(char *session_name)
/*
* Stop tracing for all trace of the session.
*/
/*
* Stop tracing for all trace of the session.
*/
-int lttng_stop_tracing(char *session_name)
+int lttng_stop_tracing(c
onst c
har *session_name)
{
strncpy(lsm.session_name, session_name, NAME_MAX);
return ask_sessiond(LTTNG_STOP_TRACE, NULL);
{
strncpy(lsm.session_name, session_name, NAME_MAX);
return ask_sessiond(LTTNG_STOP_TRACE, NULL);
@@
-287,8
+287,8
@@
int lttng_stop_tracing(char *session_name)
* lttng_add_context
*/
int lttng_add_context(struct lttng_domain *domain,
* lttng_add_context
*/
int lttng_add_context(struct lttng_domain *domain,
- struct lttng_event_context *ctx, c
har *event_name, char *channel_name)
-
+ struct lttng_event_context *ctx, c
onst char *event_name,
+ const char *channel_name)
{
int ret;
{
int ret;
@@
-321,7
+321,7
@@
int lttng_add_context(struct lttng_domain *domain,
* lttng_enable_event
*/
int lttng_enable_event(struct lttng_domain *domain,
* lttng_enable_event
*/
int lttng_enable_event(struct lttng_domain *domain,
- struct lttng_event *ev, char *channel_name)
+ struct lttng_event *ev, c
onst c
har *channel_name)
{
int ret;
{
int ret;
@@
-354,8
+354,8
@@
int lttng_enable_event(struct lttng_domain *domain,
/*
* Disable an event in the kernel tracer.
*/
/*
* Disable an event in the kernel tracer.
*/
-int lttng_disable_event(struct lttng_domain *domain, char *name,
- char *channel_name)
+int lttng_disable_event(struct lttng_domain *domain, c
onst c
har *name,
+ c
onst c
har *channel_name)
{
int ret;
{
int ret;
@@
-388,7
+388,8
@@
int lttng_disable_event(struct lttng_domain *domain, char *name,
/*
* Enable recording for a channel for the kernel tracer.
*/
/*
* Enable recording for a channel for the kernel tracer.
*/
-int lttng_enable_channel(struct lttng_domain *domain, struct lttng_channel *chan)
+int lttng_enable_channel(struct lttng_domain *domain,
+ struct lttng_channel *chan)
{
int ret;
{
int ret;
@@
-412,7
+413,7
@@
int lttng_enable_channel(struct lttng_domain *domain, struct lttng_channel *chan
/*
* Disable recording for the channel for the kernel tracer.
*/
/*
* Disable recording for the channel for the kernel tracer.
*/
-int lttng_disable_channel(struct lttng_domain *domain, char *name)
+int lttng_disable_channel(struct lttng_domain *domain, c
onst c
har *name)
{
int ret;
{
int ret;
@@
-473,7
+474,7
@@
const char *lttng_get_readable_code(int code)
/*
* Create a brand new session using name.
*/
/*
* Create a brand new session using name.
*/
-int lttng_create_session(c
har *name,
char *path)
+int lttng_create_session(c
onst char *name, const
char *path)
{
strncpy(lsm.session_name, name, NAME_MAX);
strncpy(lsm.path, path, PATH_MAX);
{
strncpy(lsm.session_name, name, NAME_MAX);
strncpy(lsm.path, path, PATH_MAX);
@@
-483,7
+484,7
@@
int lttng_create_session(char *name, char *path)
/*
* Destroy session using name.
*/
/*
* Destroy session using name.
*/
-int lttng_destroy_session(char *name)
+int lttng_destroy_session(c
onst c
har *name)
{
strncpy(lsm.session_name, name, NAME_MAX);
return ask_sessiond(LTTNG_DESTROY_SESSION, NULL);
{
strncpy(lsm.session_name, name, NAME_MAX);
return ask_sessiond(LTTNG_DESTROY_SESSION, NULL);
@@
-510,7
+511,7
@@
int lttng_list_sessions(struct lttng_session **sessions)
/*
* Set session name for the current lsm.
*/
/*
* Set session name for the current lsm.
*/
-void lttng_set_session_name(char *name)
+void lttng_set_session_name(c
onst c
har *name)
{
strncpy(lsm.session_name, name, NAME_MAX);
}
{
strncpy(lsm.session_name, name, NAME_MAX);
}
This page took
0.024291 seconds
and
4
git commands to generate.