projects
/
lttngtop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reactivate header counters
[lttngtop.git]
/
src
/
iostreamtop.c
diff --git
a/src/iostreamtop.c
b/src/iostreamtop.c
index 71843cb900137a2adb706a5124800c221724f391..35a58a414f8e6274ac7898e9e18d099bb75bb390 100644
(file)
--- a/
src/iostreamtop.c
+++ b/
src/iostreamtop.c
@@
-55,6
+55,8
@@
void add_file(struct processtop *proc, struct files *file, int fd)
}
file->fd = fd;
file->flag = __NR_open;
}
file->fd = fd;
file->flag = __NR_open;
+ lttngtop.nbfiles++;
+ lttngtop.nbnewfiles++;
}
/* TODO */
}
/* TODO */
@@
-85,7
+87,6
@@
void insert_file(struct processtop *proc, int fd)
tmp->fd = fd;
add_file(proc, tmp, fd);
} else {
tmp->fd = fd;
add_file(proc, tmp, fd);
} else {
-
tmp = g_ptr_array_index(proc->process_files_table, fd);
if (tmp == NULL) {
tmp = g_new0(struct files, 1);
tmp = g_ptr_array_index(proc->process_files_table, fd);
if (tmp == NULL) {
tmp = g_new0(struct files, 1);
@@
-102,10
+103,12
@@
void close_file(struct processtop *proc, int fd)
{
struct files *file;
{
struct files *file;
-
file = get_file(proc, fd);
file = get_file(proc, fd);
- if (file != NULL)
+ if (file != NULL)
{
file->flag = __NR_close;
file->flag = __NR_close;
+ lttngtop.nbfiles--;
+ }
+ lttngtop.nbclosedfiles++;
}
struct files *get_file(struct processtop *proc, int fd)
}
struct files *get_file(struct processtop *proc, int fd)
This page took
0.039259 seconds
and
4
git commands to generate.