Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
[firefly-linux-kernel-4.4.55.git] / tools / perf / util / thread_map.c
index 292ae2c90e063d958da5f5859787c4c1c70ccab5..6ec3c5ca438f25c827dcfc1b7bde3491f8a5fe8c 100644 (file)
@@ -195,7 +195,8 @@ static struct thread_map *thread_map__new_by_pid_str(const char *pid_str)
        pid_t pid, prev_pid = INT_MAX;
        char *end_ptr;
        struct str_node *pos;
-       struct strlist *slist = strlist__new(false, pid_str);
+       struct strlist_config slist_config = { .dont_dupstr = true, };
+       struct strlist *slist = strlist__new(pid_str, &slist_config);
 
        if (!slist)
                return NULL;
@@ -265,13 +266,14 @@ static struct thread_map *thread_map__new_by_tid_str(const char *tid_str)
        pid_t tid, prev_tid = INT_MAX;
        char *end_ptr;
        struct str_node *pos;
+       struct strlist_config slist_config = { .dont_dupstr = true, };
        struct strlist *slist;
 
        /* perf-stat expects threads to be generated even if tid not given */
        if (!tid_str)
                return thread_map__new_dummy();
 
-       slist = strlist__new(false, tid_str);
+       slist = strlist__new(tid_str, &slist_config);
        if (!slist)
                return NULL;