Repository navigation
Commit 03b4b11
mm: smaps*: extend smap_gather_stats to support specified beginning
Extend smap_gather_stats to support indicated beginning address at which
it should start gathering. To achieve the goal, we add a new parameter
@start assigned by the caller and try to refactor it for simplicity.
If @start is 0, it will use the range of @vma for gathering.
Signed-off-by: Chinwen Chang <chinwen.chang@mediatek.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Steven Price <steven.price@arm.com>
Cc: Michel Lespinasse <walken@google.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Daniel Jordan <daniel.m.jordan@oracle.com>
Cc: Daniel Kiss <daniel.kiss@arm.com>
Cc: Davidlohr Bueso <dbueso@suse.de>
Cc: Huang Ying <ying.huang@intel.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Jimmy Assarsson <jimmyassarsson@gmail.com>
Cc: Laurent Dufour <ldufour@linux.ibm.com>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Song Liu <songliubraving@fb.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Link: http://lkml.kernel.org/r/1597715898-3854-3-git-send-email-chinwen.chang@mediatek.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 07e5bfe commit 03b4b11
1 file changed
Lines changed: 22 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
724 | 730 | | |
725 | | - | |
| 731 | + | |
726 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
727 | 739 | | |
728 | 740 | | |
729 | 741 | | |
| |||
740 | 752 | | |
741 | 753 | | |
742 | 754 | | |
743 | | - | |
744 | | - | |
| 755 | + | |
| 756 | + | |
745 | 757 | | |
746 | 758 | | |
747 | 759 | | |
748 | | - | |
749 | | - | |
| 760 | + | |
750 | 761 | | |
751 | 762 | | |
752 | 763 | | |
753 | 764 | | |
754 | | - | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
755 | 769 | | |
756 | 770 | | |
757 | 771 | | |
| |||
803 | 817 | | |
804 | 818 | | |
805 | 819 | | |
806 | | - | |
| 820 | + | |
807 | 821 | | |
808 | 822 | | |
809 | 823 | | |
| |||
852 | 866 | | |
853 | 867 | | |
854 | 868 | | |
855 | | - | |
| 869 | + | |
856 | 870 | | |
857 | 871 | | |
858 | 872 | | |
| |||
0 commit comments