Skip to contentSkip to conversation

perf libperf: Remove unused xyarray.c

PATCH Applied Ian Rogers 3 participants 3 messages Feb 12, 2021 perf events

lore
Share & tools
lore

Ian Rogers

author reviewer
#0 lore raw

PATCH 1/1 perf libperf: Remove unused xyarray.c

Migrated to libperf in:
commit 4b247fa7314c ("libperf: Adopt xyarray class from perf")

---
 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
deleted file mode 100644
index 86889ebc3514..000000000000
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Ian Rogers

Migrated to libperf in:
commit 4b247fa7314c ("libperf: Adopt xyarray class from perf")

thanks,
jirka

Quoted 49 lines
---
 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
deleted file mode 100644
index 86889ebc3514..000000000000
@@ -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
maintainer Applied
#2 lore raw

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:
commit 4b247fa7314c ("libperf: Adopt xyarray class from perf")

Thanks, applied.

- Arnaldo

Quoted 53 lines

thanks,
jirka

Quoted 49 lines
---
 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
deleted file mode 100644
index 86889ebc3514..000000000000
@@ -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