Lines Matching refs:the_cpu
203 extern struct cpu_type the_cpu;
204 struct cpu_type the_cpu; variable
1963 strcpy(the_cpu.cputype, "SandyBridge PMC"); in set_sandybridge()
1964 the_cpu.number = SANDY_BRIDGE_COUNT; in set_sandybridge()
1965 the_cpu.ents = sandy_bridge; in set_sandybridge()
1966 the_cpu.explain = explain_name_sb; in set_sandybridge()
1972 strcpy(the_cpu.cputype, "IvyBridge PMC"); in set_ivybridge()
1973 the_cpu.number = IVY_BRIDGE_COUNT; in set_ivybridge()
1974 the_cpu.ents = ivy_bridge; in set_ivybridge()
1975 the_cpu.explain = explain_name_ib; in set_ivybridge()
1982 strcpy(the_cpu.cputype, "HASWELL PMC"); in set_haswell()
1983 the_cpu.number = HASWELL_COUNT; in set_haswell()
1984 the_cpu.ents = haswell; in set_haswell()
1985 the_cpu.explain = explain_name_has; in set_haswell()
1992 strcpy(the_cpu.cputype, "HASWELL PMC"); in set_broadwell()
1993 the_cpu.number = BROADWELL_COUNT; in set_broadwell()
1994 the_cpu.ents = broadwell; in set_broadwell()
1995 the_cpu.explain = explain_name_broad; in set_broadwell()
2003 for(i=0 ; i< the_cpu.number; i++) { in set_expression()
2004 if (strcmp(name, the_cpu.ents[i].name) == 0) { in set_expression()
2006 expression = the_cpu.ents[i].func; in set_expression()
2007 command = the_cpu.ents[i].command; in set_expression()
2008 threshold = the_cpu.ents[i].thresh; in set_expression()
2009 if (the_cpu.ents[i].counters_required > max_pmc_counters) { in set_expression()
2011 the_cpu.ents[i].name, in set_expression()
2012 the_cpu.ents[i].counters_required, max_pmc_counters); in set_expression()
2025 the_cpu.cputype, name); in set_expression()
2041 for(i=0 ; i< the_cpu.number; i++) { in validate_expression()
2042 if (strcmp(name, the_cpu.ents[i].name) == 0) { in validate_expression()
2556 printf("For CPU's of type %s the following expressions are available:\n",the_cpu.cputype); in explain_all()
2558 for(i=0; i<the_cpu.number; i++){ in explain_all()
2559 printf("For -e %s ", the_cpu.ents[i].name); in explain_all()
2560 (*the_cpu.explain)(the_cpu.ents[i].name); in explain_all()
2892 (*the_cpu.explain)(name); in main()
2903 name = the_cpu.ents[test_at].name; in main()
2904 printf("***Test %s (threshold %s)****\n", name, the_cpu.ents[test_at].thresh); in main()
2907 if (test_at >= the_cpu.number) { in main()
2943 if (run_all && (test_at < the_cpu.number)) { in main()