aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/tracing_map.h
diff options
context:
space:
mode:
authorVedang Patel <vedang.patel@intel.com>2018-01-15 21:51:38 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2018-03-10 16:05:49 -0500
commitc193707dde77ace92a649cd59a17e105e2fbeaef (patch)
tree4469f19c58457806bb5a1ea7ed3508e140b19cea /kernel/trace/tracing_map.h
parentcbf4100efb8f279b6f35917b748b2239019c7a96 (diff)
tracing: Remove code which merges duplicates
We now have the logic to detect and remove duplicates in the tracing_map hash table. The code which merges duplicates in the histogram is redundant now. So, modify this code just to detect duplicates. The duplication detection code is still kept to ensure that any rare race condition which might cause duplicates does not go unnoticed. Link: http://lkml.kernel.org/r/55215cf59e2674391bdaf772fdafc4c393352b03.1516069914.git.tom.zanussi@linux.intel.com Signed-off-by: Vedang Patel <vedang.patel@intel.com> Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/tracing_map.h')
-rw-r--r--kernel/trace/tracing_map.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/trace/tracing_map.h b/kernel/trace/tracing_map.h
index 5b5bbf8ae550..de57887c0670 100644
--- a/kernel/trace/tracing_map.h
+++ b/kernel/trace/tracing_map.h
@@ -215,11 +215,6 @@ struct tracing_map {
215 * Element allocation occurs before tracing begins, when the 215 * Element allocation occurs before tracing begins, when the
216 * tracing_map_init() call is made by client code. 216 * tracing_map_init() call is made by client code.
217 * 217 *
218 * @elt_copy: At certain points in the lifetime of an element, it may
219 * need to be copied. The copy should include a copy of the
220 * client-allocated data, which can be copied into the 'to'
221 * element from the 'from' element.
222 *
223 * @elt_free: When a tracing_map_elt is freed, this function is called 218 * @elt_free: When a tracing_map_elt is freed, this function is called
224 * and allows client-allocated per-element data to be freed. 219 * and allows client-allocated per-element data to be freed.
225 * 220 *
@@ -233,8 +228,6 @@ struct tracing_map {
233 */ 228 */
234struct tracing_map_ops { 229struct tracing_map_ops {
235 int (*elt_alloc)(struct tracing_map_elt *elt); 230 int (*elt_alloc)(struct tracing_map_elt *elt);
236 void (*elt_copy)(struct tracing_map_elt *to,
237 struct tracing_map_elt *from);
238 void (*elt_free)(struct tracing_map_elt *elt); 231 void (*elt_free)(struct tracing_map_elt *elt);
239 void (*elt_clear)(struct tracing_map_elt *elt); 232 void (*elt_clear)(struct tracing_map_elt *elt);
240 void (*elt_init)(struct tracing_map_elt *elt); 233 void (*elt_init)(struct tracing_map_elt *elt);