Ian Rogers
233157785a
perf python: Correctly throw IndexError
...
Correctly throw IndexError for out-of-bound accesses to evlist:
Python 3.11.9 (main, Jun 19 2024, 00:38:48) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.insert(0, '/tmp/perf/python')
>>> import perf
>>> x=perf.parse_events('cycles')
>>> print(x)
evlist([cycles])
>>> x[2]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: Index out of range
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: Colin Ian King <colin.i.king@gmail.com>
Cc: Dapeng Mi <dapeng1.mi@linux.intel.com>
Cc: Howard Chu <howardchu95@gmail.com>
Cc: Ilya Leoshkevich <iii@linux.ibm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Veronika Molnarova <vmolnaro@redhat.com>
Cc: Weilin Wang <weilin.wang@intel.com>
Link: https://lore.kernel.org/r/20241119011644.971342-23-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2024-12-18 16:24:33 -03:00
..
2024-12-09 17:52:41 -03:00
2024-12-18 16:24:31 -03:00
2024-09-24 11:46:46 -07:00
2024-06-26 11:07:42 -07:00
2024-11-09 08:39:14 -08:00
2024-12-18 16:24:33 -03:00
2023-08-16 08:48:06 -03:00
2024-06-26 11:07:42 -07:00
2024-12-18 16:24:32 -03:00
2023-06-12 15:57:53 -03:00
2023-06-12 15:57:53 -03:00
2022-12-05 09:29:06 -03:00
2019-11-28 08:08:38 -03:00
2023-08-23 08:41:52 -03:00
2024-09-10 17:32:47 -03:00
2024-10-18 10:17:40 -07:00
2024-11-13 16:27:35 -03:00
2024-12-09 17:51:53 -03:00
2022-04-09 12:34:29 -03:00
2022-10-27 16:37:26 -03:00
2024-12-09 17:52:41 -03:00
2024-10-03 15:23:09 -07:00
2024-12-18 16:24:32 -03:00
2024-12-18 16:24:32 -03:00
2024-08-14 10:20:40 -03:00
2024-08-14 10:20:40 -03:00
2023-11-09 13:49:33 -03:00
2024-09-03 11:43:16 -03:00
2024-11-01 23:31:08 -07:00
2023-01-10 10:51:39 -03:00
2024-12-10 15:16:27 -03:00
2024-12-18 16:24:33 -03:00
2024-12-18 16:24:33 -03:00
2024-12-18 16:24:33 -03:00
2024-08-21 11:39:51 -03:00
2022-10-27 16:37:26 -03:00
2024-09-03 11:54:47 -03:00
2024-12-10 16:59:32 -03:00
2024-01-03 17:54:54 -03:00
2024-11-22 13:36:00 -08:00
2024-08-01 12:11:33 -03:00
2024-08-28 18:21:49 -03:00
2024-08-28 18:21:49 -03:00
2022-06-28 12:05:25 -03:00
2021-11-01 18:16:40 -03:00
2023-10-25 13:38:50 -07:00
2024-08-14 10:20:40 -03:00
2024-12-09 17:52:41 -03:00
2024-12-09 17:52:41 -03:00
2024-12-18 16:24:33 -03:00
2024-12-02 12:36:20 -08:00
2024-08-12 18:07:10 -03:00
2023-05-28 10:24:14 -03:00
2023-02-16 09:33:45 -03:00
2021-03-23 17:13:43 -03:00
2024-09-10 17:32:47 -03:00
2024-09-10 17:32:47 -03:00
2024-10-28 13:04:52 -03:00
2024-08-20 17:53:12 -03:00
2024-12-18 16:24:33 -03:00
2023-09-12 17:32:00 -03:00
2020-08-06 09:33:57 -03:00
2020-08-06 09:33:57 -03:00
2023-03-14 08:29:46 -03:00
2024-10-10 23:38:33 -07:00
2024-10-28 09:32:57 -07:00
2024-07-03 14:59:15 -07:00
2023-11-28 14:25:06 -03:00
2024-12-18 16:24:32 -03:00
2024-09-24 11:47:03 -07:00
2022-10-27 16:37:25 -03:00
2022-10-27 16:37:25 -03:00
2024-05-07 18:06:44 -03:00
2024-05-07 18:06:44 -03:00
2023-12-12 14:55:13 -03:00
2023-02-19 08:03:12 -03:00
2023-04-04 09:39:56 -03:00
2024-10-14 10:45:28 -07:00
2024-08-29 15:55:24 -03:00
2024-12-09 17:52:42 -03:00
2024-12-09 17:52:42 -03:00
2021-04-29 10:30:58 -03:00
2024-08-12 18:15:39 -03:00
2024-01-22 12:08:21 -08:00
2024-05-06 15:28:49 -03:00
2021-05-25 10:07:17 -03:00
2024-11-08 22:42:57 -08:00
2024-03-21 10:41:28 -03:00
2023-11-10 09:03:54 -03:00
2024-10-18 10:17:40 -07:00
2023-03-20 12:49:58 -03:00
2023-03-14 08:29:46 -03:00
2021-03-23 17:13:43 -03:00
2021-03-30 12:45:59 -03:00
2021-02-17 15:15:06 -03:00
2024-08-01 18:54:19 -03:00
2024-08-01 18:54:19 -03:00
2024-12-09 17:51:53 -03:00
2024-11-09 08:39:13 -08:00
2024-12-18 16:24:32 -03:00
2021-08-11 09:35:44 -03:00
2024-08-19 14:52:13 -03:00
2024-08-19 14:52:13 -03:00
2024-08-19 14:52:13 -03:00
2024-08-19 14:52:13 -03:00
2024-09-03 12:22:01 -03:00
2024-09-03 12:22:01 -03:00
2024-10-18 10:17:40 -07:00
2024-10-18 10:17:40 -07:00
2024-11-09 08:39:13 -08:00
2024-11-09 08:39:13 -08:00
2024-11-09 08:39:13 -08:00
2024-11-09 08:39:14 -08:00
2024-12-18 16:24:33 -03:00
2024-12-18 16:24:33 -03:00
2024-08-12 18:07:10 -03:00
2024-10-29 16:10:14 -07:00
2024-08-28 18:07:20 -03:00
2024-11-07 10:51:56 -08:00
2024-11-07 10:51:56 -08:00
2024-12-18 16:24:32 -03:00
2024-12-09 17:52:42 -03:00
2023-05-12 15:21:49 -03:00
2024-12-18 16:24:33 -03:00
2024-12-18 16:24:33 -03:00
2020-11-30 09:48:07 -03:00
2023-01-23 10:00:47 -03:00
2024-12-12 16:12:37 -03:00
2023-08-17 14:12:14 -03:00
2024-02-13 13:47:08 -08:00
2023-09-12 17:46:50 -03:00
2019-11-28 08:08:38 -03:00
2019-11-28 08:08:38 -03:00
2024-12-10 15:16:40 -03:00
2023-06-20 22:18:58 -07:00
2024-10-18 10:17:40 -07:00
2024-10-18 10:17:40 -07:00
2023-01-02 11:51:53 -03:00
2021-08-30 10:06:16 -03:00
2022-11-09 20:45:14 -08:00
2024-10-14 12:04:31 -07:00
2024-12-10 16:59:32 -03:00
2024-11-16 16:40:30 -03:00
2024-03-21 13:54:40 -03:00
2024-08-12 18:05:14 -03:00
2022-10-15 10:13:16 -03:00
2024-10-10 23:41:23 -07:00
2024-10-10 23:41:23 -07:00
2024-12-09 15:00:03 -08:00
2024-11-09 08:28:03 -08:00
2024-11-13 16:27:35 -03:00
2024-11-13 16:27:35 -03:00
2023-10-17 12:40:50 -07:00
2024-08-13 15:24:48 -03:00
2024-08-13 15:24:48 -03:00
2021-02-08 17:02:00 -03:00
2021-02-08 17:02:00 -03:00
2022-11-24 09:40:37 -03:00
2022-11-24 09:40:37 -03:00
2024-08-19 14:51:46 -03:00
2024-08-19 14:51:46 -03:00
2020-05-28 10:03:27 -03:00
2024-12-18 16:24:32 -03:00
2024-12-18 16:24:32 -03:00
2024-12-18 16:24:33 -03:00
2021-03-23 17:13:43 -03:00
2024-09-03 10:39:20 -03:00
2024-09-03 10:39:20 -03:00
2024-12-18 16:24:33 -03:00
2024-12-18 16:24:33 -03:00
2023-08-22 16:53:32 -03:00
2024-12-03 10:07:31 -08:00
2024-09-10 17:32:47 -03:00
2024-08-01 18:55:55 -03:00
2024-08-01 18:55:55 -03:00
2024-09-10 17:32:47 -03:00
2024-09-10 17:32:47 -03:00
2024-06-06 23:31:30 -07:00
2024-02-12 12:35:41 -08:00
2020-11-04 09:42:40 -03:00
2024-12-09 17:52:41 -03:00
2024-09-06 11:45:17 -03:00
2024-08-01 18:55:55 -03:00
2024-08-01 18:55:55 -03:00
2024-10-10 23:40:32 -07:00
2024-04-18 22:22:51 -03:00
2024-08-01 18:55:55 -03:00
2023-11-28 14:25:06 -03:00
2022-10-04 08:55:20 -03:00
2022-10-04 08:55:20 -03:00
2023-04-17 22:22:24 -03:00
2023-04-17 18:51:57 -03:00
2022-06-28 11:45:45 -03:00
2023-04-06 21:41:00 -03:00
2022-07-20 11:07:30 -03:00
2023-11-09 13:47:50 -03:00
2024-12-18 16:24:32 -03:00
2024-12-18 16:24:32 -03:00
2024-12-18 16:24:32 -03:00
2024-10-10 23:40:32 -07:00
2024-02-15 13:48:36 -08:00
2020-08-14 09:15:47 -03:00
2021-08-24 15:01:31 -03:00
2024-12-18 16:24:32 -03:00
2024-12-18 16:24:32 -03:00
2023-12-12 14:55:13 -03:00
2021-06-01 10:32:00 -03:00
2024-12-18 16:24:32 -03:00
2024-02-15 13:48:36 -08:00
2024-02-15 13:48:36 -08:00
2023-01-02 12:34:06 -03:00
2024-11-13 16:27:35 -03:00
2022-11-24 10:04:52 -03:00
2024-12-18 16:24:32 -03:00
2024-11-16 16:42:36 -03:00
2023-04-06 21:40:28 -03:00
2023-09-12 17:47:00 -03:00
2024-11-13 16:27:35 -03:00
2024-11-09 08:28:03 -08:00
2020-10-01 12:10:56 -03:00
2024-07-31 16:12:59 -03:00
2024-07-31 16:12:59 -03:00
2024-10-10 23:40:32 -07:00
2024-10-10 23:40:32 -07:00
2024-12-13 11:53:27 -03:00
2024-12-10 15:41:10 -03:00
2024-11-16 17:07:31 -03:00
2024-11-16 17:07:31 -03:00
2024-12-10 15:41:10 -03:00
2024-12-10 15:41:10 -03:00
2020-05-28 10:03:27 -03:00
2024-12-18 16:24:33 -03:00
2024-03-03 22:51:18 -08:00
2024-03-21 10:41:28 -03:00
2023-03-13 14:52:14 -03:00
2023-10-25 10:02:11 -07:00
2023-10-25 10:02:11 -07:00
2023-10-25 13:35:35 -07:00
2023-10-25 13:35:35 -07:00
2023-11-15 12:51:53 -05:00
2024-10-17 12:44:26 -07:00
2024-10-17 12:44:26 -07:00
2021-09-10 18:15:21 -03:00
2021-09-10 18:15:21 -03:00
2023-11-09 13:47:50 -03:00
2024-12-09 17:52:41 -03:00
2024-08-30 09:23:51 -03:00
2024-08-22 17:26:50 -03:00
2023-06-20 17:03:43 -07:00
2023-06-20 17:03:43 -07:00
2022-04-01 16:19:35 -03:00
2023-02-19 08:03:12 -03:00
2023-02-19 08:03:12 -03:00
2024-12-09 17:52:42 -03:00
2024-10-10 23:41:23 -07:00
2021-06-08 09:36:36 -03:00
2024-09-03 10:15:16 -03:00
2023-06-14 18:19:06 -03:00
2024-10-17 12:44:26 -07:00
2024-11-07 11:49:50 -08:00
2024-09-26 13:26:11 -07:00
2024-12-18 16:24:32 -03:00
2021-03-23 17:13:43 -03:00
2021-07-09 14:04:28 -03:00
2020-10-14 13:34:26 -03:00
2023-04-06 21:41:00 -03:00
2021-03-23 17:13:43 -03:00
2024-11-14 16:56:32 -03:00
2024-12-12 15:53:36 -03:00
2024-12-09 17:52:41 -03:00
2024-08-12 13:59:22 -03:00
2024-05-06 15:28:49 -03:00
2024-05-06 16:07:30 -03:00
2024-05-06 15:28:49 -03:00
2024-10-14 10:45:28 -07:00
2024-05-07 18:06:44 -03:00
2023-02-01 21:51:51 -03:00
2024-12-12 15:36:46 -03:00
2024-09-10 17:32:47 -03:00
2024-11-03 23:18:20 -08:00
2024-07-12 09:49:02 -07:00
2021-01-20 14:25:28 -03:00
2024-11-01 23:31:08 -07:00
2024-02-22 09:11:03 -08:00
2022-11-16 12:17:15 -03:00
2023-08-14 11:46:51 +02:00
2021-03-25 08:59:10 -03:00
2024-08-08 17:30:27 -03:00
2024-08-08 17:30:27 -03:00
2024-10-14 12:04:31 -07:00
2024-03-03 22:52:13 -08:00
2024-09-03 11:21:55 -03:00
2024-10-16 13:35:04 -07:00
2024-10-10 23:40:33 -07:00
2024-08-12 18:13:58 -03:00
2024-08-12 18:13:58 -03:00
2023-12-18 21:34:39 -03:00
2023-12-07 16:47:55 -03:00
2023-02-19 08:07:24 -03:00
2023-02-19 08:07:24 -03:00
2024-09-10 09:52:13 -03:00
2023-10-12 10:01:57 -07:00
2024-12-09 17:52:42 -03:00
2024-11-08 22:42:57 -08:00
2024-12-18 16:24:33 -03:00
2024-11-08 22:42:57 -08:00
2024-12-18 16:24:32 -03:00
2024-05-09 18:46:43 -03:00
2024-05-09 18:46:43 -03:00
2024-11-13 16:27:35 -03:00
2024-10-10 23:40:32 -07:00
2021-03-15 11:36:54 -03:00
2021-03-15 11:36:54 -03:00
2024-07-12 09:38:41 -07:00
2022-04-09 12:34:29 -03:00
2024-07-17 13:17:57 -07:00
2024-05-06 15:28:49 -03:00
2023-08-16 08:48:06 -03:00
2023-04-10 19:20:53 -03:00
2024-11-16 16:30:39 -03:00
2024-11-16 16:30:39 -03:00
2024-04-17 12:21:39 -03:00
2024-09-27 15:38:52 -03:00
2023-11-28 14:25:06 -03:00