Re: [PATCH V2 03/14] perf script: Make perf_script a local variable

From: David Ahern
Date: Wed Oct 23 2013 - 01:56:10 EST


On 10/22/13 8:34 AM, Adrian Hunter wrote:
-static int __cmd_script(struct perf_session *session)
+static int __cmd_script(struct perf_script *scr)

for naming consistency that should be *script.

{
int ret;

signal(SIGINT, sig_handler);

- ret = perf_session__process_events(session, &perf_script);
+ ret = perf_session__process_events(scr->session, &scr->tool);

if (debug_mode)
pr_err("Misordered timestamps: %" PRIu64 "\n", nr_unordered);
@@ -1273,6 +1264,21 @@ int cmd_script(int argc, const char **argv, const char *prefix __maybe_unused)
char *script_path = NULL;
const char **__argv;
int i, j, err;
+ struct perf_script perf_script = {

Ditto: struct perf_script script;


Otherwise the change looks fine to me.

Acked-by: David Ahern <dsahern@xxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/