perf libperf: Remove unused xyarray.c
Ian Rogers
reviewerPATCH 1/1 perf libperf: Remove unused xyarray.c
Migrated to libperf in:
commit 4b247fa7314c ("libperf: Adopt xyarray class from perf")
Signed-off-by Ian Rogers <[email protected]>
--- tools/perf/util/xyarray.c | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 tools/perf/util/xyarray.c
tools/perf/util/xyarray.c deleted +0 -33
@@ -1,33 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#include "xyarray.h" -#include <stdlib.h> -#include <string.h> -#include <linux/zalloc.h> - -struct xyarray *xyarray__new (int xlen,int ylen,size_t entry_size) -{ -size_t row_size = ylen * entry_size; -struct xyarray *xy =zalloc (sizeof (*xy) + xlen * row_size); - -if (xy !=NULL ) { - xy->entry_size = entry_size; - xy->row_size = row_size; - xy->entries = xlen * ylen; - xy->max_x = xlen; - xy->max_y = ylen; - } - -return xy; -} - -void xyarray__reset (struct xyarray *xy) -{ -size_t n = xy->entries * xy->entry_size; - -memset (xy->contents,0 , n); -} - -void xyarray__delete (struct xyarray *xy) -{ -free (xy); -}
Signature · 1 line
2.30.0.478.g8a0d178c01-goog
Quoted 2 lines · Ian Rogers
Migrated to libperf in:
commit4b247fa7314c("libperf: Adopt xyarray class from perf")
Acked-by Jiri Olsa <[email protected]>
thanks,
jirka
Quoted 49 lines
Signed-off-by Ian Rogers <[email protected]>--- tools/perf/util/xyarray.c | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 tools/perf/util/xyarray.ctools/perf/util/xyarray.c deleted +0
-33@@ -1,33 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#include "xyarray.h" -#include <stdlib.h> -#include <string.h> -#include <linux/zalloc.h> - -struct xyarray *xyarray__new (int xlen,int ylen,size_t entry_size) -{ -size_t row_size = ylen * entry_size; -struct xyarray *xy =zalloc (sizeof (*xy) + xlen * row_size); - -if (xy !=NULL ) { - xy->entry_size = entry_size; - xy->row_size = row_size; - xy->entries = xlen * ylen; - xy->max_x = xlen; - xy->max_y = ylen; - } - -return xy; -} - -void xyarray__reset (struct xyarray *xy) -{ -size_t n = xy->entries * xy->entry_size; - -memset (xy->contents,0 , n); -} - -void xyarray__delete (struct xyarray *xy) -{ -free (xy); -}Signature · 1 line
2.30.0.478.g8a0d178c01-goog
Em Fri, Feb 12, 2021 at 09:33:58AM +0100, Jiri Olsa escreveu:
Quoted 5 lines · Ian Rogers
Quoted 2 lines
Migrated to libperf in:
commit4b247fa7314c("libperf: Adopt xyarray class from perf")Acked-by Jiri Olsa <[email protected]>
Thanks, applied.
- Arnaldo
Quoted 53 lines
thanks,
jirkaQuoted 49 lines
Signed-off-by Ian Rogers <[email protected]>--- tools/perf/util/xyarray.c | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 tools/perf/util/xyarray.ctools/perf/util/xyarray.c deleted +0
-33@@ -1,33 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -#include "xyarray.h" -#include <stdlib.h> -#include <string.h> -#include <linux/zalloc.h> - -struct xyarray *xyarray__new (int xlen,int ylen,size_t entry_size) -{ -size_t row_size = ylen * entry_size; -struct xyarray *xy =zalloc (sizeof (*xy) + xlen * row_size); - -if (xy !=NULL ) { - xy->entry_size = entry_size; - xy->row_size = row_size; - xy->entries = xlen * ylen; - xy->max_x = xlen; - xy->max_y = ylen; - } - -return xy; -} - -void xyarray__reset (struct xyarray *xy) -{ -size_t n = xy->entries * xy->entry_size; - -memset (xy->contents,0 , n); -} - -void xyarray__delete (struct xyarray *xy) -{ -free (xy); -}Signature · 1 line
2.30.0.478.g8a0d178c01-goog
Signature · 1 line
- Arnaldo