Skip to content

[RFC] Kernel exclusion - #8

Open
frdeso wants to merge 2 commits into
lttng:masterfrom
frdeso:kernel_exclusion
Open

frdeso wants to merge 2 commits into
lttng:masterfrom
frdeso:kernel_exclusion

Conversation

@frdeso

@frdeso frdeso commented Apr 4, 2017

Copy link
Copy Markdown
Contributor

No description provided.

@jdesfossez jdesfossez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few stylistic comments, but otherwise it looks good to me !

Comment thread lttng-events.c
}

static
int lttng_match_enabler_exclusion(const char *desc_name,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mix of tab and spaces

Comment thread tests/probes/lttng-test.c Outdated
i = 0;
prev_is_space = 1;
while (i < len && str[i] != '\0') {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary new line

Comment thread tests/probes/lttng-test.c Outdated
count = 0;
i = 0;
prev_is_space = 1;
while (i < len && str[i] != '\0') {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be clearer like that:
for (i = 0; i < len && str[i] != '\0'; i++)

Comment thread tests/probes/lttng-test.c Outdated
break;
}

i++;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed if you use a for-loop instead of the while

Comment thread tests/probes/lttng-test.c Outdated
* method and the string from the user
*/
ret = -EINVAL;
for (i = 0; i < ARRAY_SIZE(test_methods); i++) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 spaces before ARRAY_SIZE

frdeso added 2 commits April 5, 2017 21:04
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
@frdeso
frdeso force-pushed the kernel_exclusion branch from b8d29c8 to 2c9e088 Compare April 6, 2017 01:08
@frdeso

frdeso commented Apr 6, 2017

Copy link
Copy Markdown
Contributor Author

Thank you for the feedback, I addressed the style issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants