aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.headersinst
Commit message (Expand)AuthorAge
* kbuild: drop unifdef-y supportSam Ravnborg2010-08-14
* kbuild: fix "Argument list too long" error for "make headers_check",Sergei Poselenov2009-06-09
* kbuild: introduce destination-y for exported headersSam Ravnborg2009-04-11
* kbuild: install all headers when arch is changedSam Ravnborg2008-07-25
* kbuild: optimize headers_* targetsSam Ravnborg2008-07-25
* kbuild: only one call for include/ in make headers_*Sam Ravnborg2008-07-25
* kbuild: code refactoring in Makefile.headerinstSam Ravnborg2008-07-25
* kbuild: drop support of ALTARCH for headers_*Sam Ravnborg2008-07-25
* kbuild: always unifdef files in headers_install*Sam Ravnborg2008-07-25
* kbuild: use POSIX BRE in headers install targetMike Frysinger2007-07-17
* x86_64: fix headers_installDavid Woodhouse2007-07-06
* Make 'headerscheck' stop immediately on an errorDavid Woodhouse2007-05-22
* [PATCH] translate dashes in filenames for headers installMike Frysinger2007-01-30
* [PATCH] fix `make headers_install'David Woodhouse2006-10-17
* [PATCH] hdrcheck permission fixAndrew Morton2006-10-04
* Merge git://git.infradead.org/~dwmw2/khdrs-2.6Linus Torvalds2006-09-24
|\
| * Use dependencies for 'make headers_install'.David Woodhouse2006-09-24
* | kbuild: use in-kernel unifdefSam Ravnborg2006-09-25
|/
* [PATCH] Fix 'make headers_check' on biarch architecturesDavid Woodhouse2006-09-16
* Basic implementation of 'make headers_check'David Woodhouse2006-06-18
* Basic implementation of 'make headers_install'David Woodhouse2006-06-18
out the substruct name and the function pointer names struct_name = re.match("\t*\} (?P<struct_name>\w+);", line).group("struct_name"); struct_members = re.findall(r".+?\(\s*\*\s*(\w+)\s*\).+?;", struct_contents, flags=re.DOTALL) # Store the substruct as an entry substruct_names.append(struct_name); gops_members[struct_name] = struct_members; # Format members for member in struct_members: formatted_members.append(struct_name + "." + member); else: # Lone members (function pointers or stuff not in a substruct) match = re.match(".*\(\*(?P<function_name>\w+)\)\(", line); if match is not None: # It's a function pointer, keep track of it lone_members.append(match.group("function_name")); formatted_members.append(match.group("function_name")); else: # Not a function pointer, may also catch comments etc. non_function_pointer_members.append(line.strip()); line = gk20a_h.readline(); if args.gops_filename: # Interpret gops file with open(args.gops_filename) as gops: i = 0; # Option for csv output if args.csv: format_string = '{0},{1}'; else: format_string = '{0:<60} = {1}'; for line in gops: print(format_string.format(formatted_members[i], line[:-1])); i += 1; else: # Just print some stats on the gpu_ops struct total = 0; print("----- Lone Function Pointers -----"); print("Count =", len(lone_members)); total += len(lone_members); for line in lone_members: print(line); print("----- Substruct Counts -----"); for name in substruct_names: print(name, "=", len(gops_members[name])); total += len(gops_members[name]) print("\n Total =", total);