Lines Matching refs:default_ps

447 	struct print_state default_ps = {};  in cmd_list()  local
449 void *ps = &default_ps; in cmd_list()
461 OPT_BOOLEAN(0, "raw-dump", &default_ps.name_only, "Dump raw events"), in cmd_list()
463 OPT_BOOLEAN('d', "desc", &default_ps.desc, in cmd_list()
465 OPT_BOOLEAN('v', "long-desc", &default_ps.long_desc, in cmd_list()
467 OPT_BOOLEAN(0, "details", &default_ps.detailed, in cmd_list()
469 OPT_BOOLEAN(0, "deprecated", &default_ps.deprecated, in cmd_list()
497 if (!default_ps.name_only) in cmd_list()
509 default_ps.desc = !default_ps.long_desc; in cmd_list()
510 default_ps.last_topic = strdup(""); in cmd_list()
511 assert(default_ps.last_topic); in cmd_list()
512 default_ps.visited_metrics = strlist__new(NULL, NULL); in cmd_list()
513 assert(default_ps.visited_metrics); in cmd_list()
515 default_ps.pmu_glob = strdup(unit_name); in cmd_list()
524 default_ps.pmu_glob = strdup(pmu->name); in cmd_list()
530 default_ps.metrics = true; in cmd_list()
531 default_ps.metricgroups = true; in cmd_list()
558 default_ps.metricgroups = false; in cmd_list()
559 default_ps.metrics = true; in cmd_list()
563 default_ps.metricgroups = true; in cmd_list()
564 default_ps.metrics = false; in cmd_list()
572 char *old_pmu_glob = default_ps.pmu_glob; in cmd_list()
574 default_ps.event_glob = strdup(argv[i]); in cmd_list()
575 if (!default_ps.event_glob) { in cmd_list()
582 default_ps.metrics = true; in cmd_list()
583 default_ps.metricgroups = true; in cmd_list()
585 zfree(&default_ps.event_glob); in cmd_list()
586 default_ps.pmu_glob = old_pmu_glob; in cmd_list()
592 default_ps.event_glob = s; in cmd_list()
602 default_ps.metrics = true; in cmd_list()
603 default_ps.metricgroups = true; in cmd_list()
611 free(default_ps.pmu_glob); in cmd_list()
612 free(default_ps.last_topic); in cmd_list()
613 free(default_ps.last_metricgroups); in cmd_list()
614 strlist__delete(default_ps.visited_metrics); in cmd_list()