projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: do not generate packet at destroy after stop
[lttng-modules.git]
/
lttng-probes.c
diff --git
a/lttng-probes.c
b/lttng-probes.c
index ee75e33d7881f9528043dd492a63351ef73714de..dd2b2ce79c17f3cf6a2d986be702f2a57ebee806 100644
(file)
--- a/
lttng-probes.c
+++ b/
lttng-probes.c
@@
-25,7
+25,7
@@
#include <linux/mutex.h>
#include <linux/seq_file.h>
#include <linux/mutex.h>
#include <linux/seq_file.h>
-#include
"lttng-events.h"
+#include
<lttng-events.h>
/*
* probe list is protected by sessions lock.
/*
* probe list is protected by sessions lock.
@@
-251,10
+251,12
@@
static
void *tp_list_start(struct seq_file *m, loff_t *pos)
{
struct lttng_probe_desc *probe_desc;
void *tp_list_start(struct seq_file *m, loff_t *pos)
{
struct lttng_probe_desc *probe_desc;
+ struct list_head *probe_list;
int iter = 0, i;
lttng_lock_sessions();
int iter = 0, i;
lttng_lock_sessions();
- list_for_each_entry(probe_desc, &_probe_list, head) {
+ probe_list = lttng_get_probe_list_head();
+ list_for_each_entry(probe_desc, probe_list, head) {
for (i = 0; i < probe_desc->nr_events; i++) {
if (iter++ >= *pos)
return (void *) probe_desc->event_desc[i];
for (i = 0; i < probe_desc->nr_events; i++) {
if (iter++ >= *pos)
return (void *) probe_desc->event_desc[i];
@@
-268,10
+270,12
@@
static
void *tp_list_next(struct seq_file *m, void *p, loff_t *ppos)
{
struct lttng_probe_desc *probe_desc;
void *tp_list_next(struct seq_file *m, void *p, loff_t *ppos)
{
struct lttng_probe_desc *probe_desc;
+ struct list_head *probe_list;
int iter = 0, i;
(*ppos)++;
int iter = 0, i;
(*ppos)++;
- list_for_each_entry(probe_desc, &_probe_list, head) {
+ probe_list = lttng_get_probe_list_head();
+ list_for_each_entry(probe_desc, probe_list, head) {
for (i = 0; i < probe_desc->nr_events; i++) {
if (iter++ >= *ppos)
return (void *) probe_desc->event_desc[i];
for (i = 0; i < probe_desc->nr_events; i++) {
if (iter++ >= *ppos)
return (void *) probe_desc->event_desc[i];
This page took
0.024212 seconds
and
4
git commands to generate.