projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo: 'Accomodate' -> 'Accommodate'
[lttng-tools.git]
/
src
/
common
/
kernel-ctl
/
kernel-ctl.c
diff --git
a/src/common/kernel-ctl/kernel-ctl.c
b/src/common/kernel-ctl/kernel-ctl.c
index 01af4a297652f7dff1e26202ca7a715741f66315..caae421fc357e3718dfecaab90fda19dee87c4a0 100644
(file)
--- a/
src/common/kernel-ctl/kernel-ctl.c
+++ b/
src/common/kernel-ctl/kernel-ctl.c
@@
-7,6
+7,7
@@
*
*/
*
*/
+#include "lttng/tracker.h"
#define _LGPL_SOURCE
#define __USE_LINUX_IOCTL_DEFS
#include <sys/ioctl.h>
#define _LGPL_SOURCE
#define __USE_LINUX_IOCTL_DEFS
#include <sys/ioctl.h>
@@
-221,32
+222,32
@@
int kernctl_list_tracker_pids(int fd)
}
static enum lttng_kernel_tracker_type get_kernel_tracker_type(
}
static enum lttng_kernel_tracker_type get_kernel_tracker_type(
- enum lttng_
tracker_type type
)
+ enum lttng_
process_attr process_attr
)
{
{
- switch (
type
) {
- case LTTNG_
TRACKER_P
ID:
+ switch (
process_attr
) {
+ case LTTNG_
PROCESS_ATTR_PROCESS_
ID:
return LTTNG_KERNEL_TRACKER_PID;
return LTTNG_KERNEL_TRACKER_PID;
- case LTTNG_
TRACKER_VP
ID:
+ case LTTNG_
PROCESS_ATTR_VIRTUAL_PROCESS_
ID:
return LTTNG_KERNEL_TRACKER_VPID;
return LTTNG_KERNEL_TRACKER_VPID;
- case LTTNG_
TRACKER_U
ID:
+ case LTTNG_
PROCESS_ATTR_USER_
ID:
return LTTNG_KERNEL_TRACKER_UID;
return LTTNG_KERNEL_TRACKER_UID;
- case LTTNG_
TRACKER_VU
ID:
+ case LTTNG_
PROCESS_ATTR_VIRTUAL_USER_
ID:
return LTTNG_KERNEL_TRACKER_VUID;
return LTTNG_KERNEL_TRACKER_VUID;
- case LTTNG_
TRACKER_G
ID:
+ case LTTNG_
PROCESS_ATTR_GROUP_
ID:
return LTTNG_KERNEL_TRACKER_GID;
return LTTNG_KERNEL_TRACKER_GID;
- case LTTNG_
TRACKER_VG
ID:
+ case LTTNG_
PROCESS_ATTR_VIRTUAL_GROUP_
ID:
return LTTNG_KERNEL_TRACKER_VGID;
default:
return LTTNG_KERNEL_TRACKER_UNKNOWN;
}
}
return LTTNG_KERNEL_TRACKER_VGID;
default:
return LTTNG_KERNEL_TRACKER_UNKNOWN;
}
}
-int kernctl_track_id(int fd, enum lttng_
tracker_type tracker_type
, int id)
+int kernctl_track_id(int fd, enum lttng_
process_attr process_attr
, int id)
{
struct lttng_kernel_tracker_args args;
args.id = id;
{
struct lttng_kernel_tracker_args args;
args.id = id;
- args.type = get_kernel_tracker_type(
tracker_type
);
+ args.type = get_kernel_tracker_type(
process_attr
);
if (args.type == LTTNG_KERNEL_TRACKER_UNKNOWN) {
errno = EINVAL;
return -1;
if (args.type == LTTNG_KERNEL_TRACKER_UNKNOWN) {
errno = EINVAL;
return -1;
@@
-254,12
+255,12
@@
int kernctl_track_id(int fd, enum lttng_tracker_type tracker_type, int id)
return LTTNG_IOCTL_CHECK(fd, LTTNG_KERNEL_SESSION_TRACK_ID, &args);
}
return LTTNG_IOCTL_CHECK(fd, LTTNG_KERNEL_SESSION_TRACK_ID, &args);
}
-int kernctl_untrack_id(int fd, enum lttng_
tracker_type tracker_type
, int id)
+int kernctl_untrack_id(int fd, enum lttng_
process_attr process_attr
, int id)
{
struct lttng_kernel_tracker_args args;
args.id = id;
{
struct lttng_kernel_tracker_args args;
args.id = id;
- args.type = get_kernel_tracker_type(
tracker_type
);
+ args.type = get_kernel_tracker_type(
process_attr
);
if (args.type == LTTNG_KERNEL_TRACKER_UNKNOWN) {
errno = EINVAL;
return -1;
if (args.type == LTTNG_KERNEL_TRACKER_UNKNOWN) {
errno = EINVAL;
return -1;
@@
-267,12
+268,12
@@
int kernctl_untrack_id(int fd, enum lttng_tracker_type tracker_type, int id)
return LTTNG_IOCTL_CHECK(fd, LTTNG_KERNEL_SESSION_UNTRACK_ID, &args);
}
return LTTNG_IOCTL_CHECK(fd, LTTNG_KERNEL_SESSION_UNTRACK_ID, &args);
}
-int kernctl_list_tracker_ids(int fd, enum lttng_
tracker_type tracker_type
)
+int kernctl_list_tracker_ids(int fd, enum lttng_
process_attr process_attr
)
{
struct lttng_kernel_tracker_args args;
args.id = -1;
{
struct lttng_kernel_tracker_args args;
args.id = -1;
- args.type = get_kernel_tracker_type(
tracker_type
);
+ args.type = get_kernel_tracker_type(
process_attr
);
if (args.type == LTTNG_KERNEL_TRACKER_UNKNOWN) {
errno = EINVAL;
return -1;
if (args.type == LTTNG_KERNEL_TRACKER_UNKNOWN) {
errno = EINVAL;
return -1;
This page took
0.025245 seconds
and
4
git commands to generate.