[lkml]   [2017]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v2 02/40] tracing: Add support to detect and avoid duplicates
On Tue,  5 Sep 2017 16:57:14 -0500
Tom Zanussi <> wrote:

> From: Vedang Patel <>
> A duplicate in the tracing_map hash table is when 2 different entries
> have the same key and, as a result, the key_hash. This is possible due
> to a race condition in the algorithm. This race condition is inherent to
> the algorithm and not a bug. This was fine because, until now, we were
> only interested in the sum of all the values related to a particular
> key (the duplicates are dealt with in tracing_map_sort_entries()). But,
> with the inclusion of variables[1], we are interested in individual
> values. So, it will not be clear what value to choose when
> there are duplicates. So, the duplicates need to be removed.

> [1] -

FYI, something like this should have:


And avoid any non archiving system.

-- Steve

> Signed-off-by: Vedang Patel <>
> ---

 \ /
  Last update: 2017-09-06 20:33    [W:0.347 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site