[for-next][PATCH 1/9] tracing: Use kstrdup_const instead of private implementation

2015-10-21 Thread Steven Rostedt
From: Rasmus Villemoes The kernel now has kstrdup_const/kfree_const for reusing .rodata (typically string literals) when possible; there's no reason to duplicate that logic in the tracing system. Moreover, as the comment above core_kernel_data states, it may not always return true for .rodata -

[for-next][PATCH 1/9] tracing: Use kstrdup_const instead of private implementation

2015-10-21 Thread Steven Rostedt
From: Rasmus Villemoes The kernel now has kstrdup_const/kfree_const for reusing .rodata (typically string literals) when possible; there's no reason to duplicate that logic in the tracing system. Moreover, as the comment above core_kernel_data states, it may not always