projects
/
lttngtop.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add const for most of the babeltrace APi calls
[lttngtop.git]
/
src
/
cputop.c
diff --git
a/src/cputop.c
b/src/cputop.c
index d652b5b43e5bff161e48886945fc05cb3982a7a3..c561d47205dd8af3ba8dc192f7da3652c0fe2369 100644
(file)
--- a/
src/cputop.c
+++ b/
src/cputop.c
@@
-48,7
+48,7
@@
void update_cputop_data(unsigned long timestamp, int64_t cpu, int prev_pid,
enum bt_cb_ret handle_sched_switch(struct bt_ctf_event *call_data,
void *private_data)
{
enum bt_cb_ret handle_sched_switch(struct bt_ctf_event *call_data,
void *private_data)
{
- struct definition *scope;
+
const
struct definition *scope;
unsigned long timestamp;
uint64_t cpu_id;
char *prev_comm, *next_comm;
unsigned long timestamp;
uint64_t cpu_id;
char *prev_comm, *next_comm;
@@
-102,7
+102,7
@@
error:
enum bt_cb_ret handle_sched_process_free(struct bt_ctf_event *call_data,
void *private_data)
{
enum bt_cb_ret handle_sched_process_free(struct bt_ctf_event *call_data,
void *private_data)
{
- struct definition *scope;
+
const
struct definition *scope;
unsigned long timestamp;
char *comm;
int tid;
unsigned long timestamp;
char *comm;
int tid;
This page took
0.023595 seconds
and
4
git commands to generate.